mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
urplay: support for downloading lastest X episodes
This commit is contained in:
parent
fe39ba2a82
commit
dde85fb7fb
@ -66,4 +66,12 @@ class Urplay(Service, OpenGraphThumbMixin):
|
|||||||
url = "http://urplay.se%s" % match.group(1).replace("&", "&")
|
url = "http://urplay.se%s" % match.group(1).replace("&", "&")
|
||||||
xml = ET.XML(get_http_data(url)[1])
|
xml = ET.XML(get_http_data(url)[1])
|
||||||
|
|
||||||
return sorted(x.text for x in xml.findall(".//item/link"))
|
episodes = [x.text for x in xml.findall(".//item/link")]
|
||||||
|
episodes_new = []
|
||||||
|
n = 0
|
||||||
|
for i in episodes:
|
||||||
|
if n == options.all_last:
|
||||||
|
break
|
||||||
|
episodes_new.append(i)
|
||||||
|
n += 1
|
||||||
|
return episodes_new
|
Loading…
Reference in New Issue
Block a user