1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

generic: catch embed svt videos.

This commit is contained in:
Johan Andersson 2013-11-14 22:43:39 +01:00
parent 50aab78454
commit 8535e6f106

View File

@ -49,7 +49,7 @@ class Generic(object):
''' Videos embed in sites '''
def get(self, url):
data = get_http_data(url)
match = re.search(r"src=\"(http://www.svt.se/wd.*)\" frameborder", data)
match = re.search(r"src=\"(http://www.svt.se/wd.*)\" height", data)
stream = None
if match:
url = match.group(1)