mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +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"])
|
||||
if match:
|
||||
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
|
||||
|
||||
def extrametadata(self, episode):
|
||||
|
Loading…
Reference in New Issue
Block a user