mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-30 15:14:14 +01:00
Try to get episode number from description
This commit is contained in:
parent
cdf394e7f5
commit
43fe2847b3
@ -281,6 +281,12 @@ class Svtplay(Service, MetadataThumbMixin):
|
|||||||
match = re.search(r"Avsnitt (\d+)", i["item"]["positionInSeason"])
|
match = re.search(r"Avsnitt (\d+)", i["item"]["positionInSeason"])
|
||||||
if match:
|
if match:
|
||||||
return match.group(1)
|
return match.group(1)
|
||||||
|
|
||||||
|
if "description" in data:
|
||||||
|
match = re.search(r"Del (\d+) av (\d+)", data["description"])
|
||||||
|
if match:
|
||||||
|
return match.group(1)
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def extrametadata(self, episode):
|
def extrametadata(self, episode):
|
||||||
|
Loading…
Reference in New Issue
Block a user