1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 13:44:14 +01:00

Try to get episode number from description

This commit is contained in:
tor 2021-04-02 21:33:05 +00:00 committed by Johan Andersson
parent cdf394e7f5
commit 43fe2847b3

View File

@ -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):