1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

svtplay: another videoid from the url

This commit is contained in:
Johan Andersson 2016-01-10 20:35:31 +01:00
parent e895e02d70
commit 00114f6750

View File

@ -101,6 +101,11 @@ class Svtplay(Service, OpenGraphThumbMixin):
match = re.search("/video/([0-9]+)/", parse.path)
if match:
return match.group(1)
match = re.search("/videoEpisod-([^/]+)/", parse.path)
if match:
self._urldata = None
self._url = "http://www.svtplay.se/video/%s/" % match.group(1)
return match.group(1)
return None
def find_all_episodes(self, options):