1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 12:15:40 +01:00

sr: Find URLs with either playepisode= or playaudio= params

Fixes #295
This commit is contained in:
Olof Johansson 2015-11-23 18:46:17 +01:00
parent f606775eb6
commit 50eba055a5

View File

@ -25,7 +25,7 @@ class Sr(Service, OpenGraphThumbMixin):
yield ServiceError("Excluding video")
return
match = re.search(r'href="(/sida/[\.\/=a-z0-9&;\?]+playaudio=\d+)"', data)
match = re.search(r'href="(/sida/[\.\/=a-z0-9&;\?]+play(?:audio|episode)=\d+)"', data)
if not match:
yield ServiceError("Can't find audio info")
return