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

lemonwhale: convert into new video fetcher

This commit is contained in:
Johan Andersson 2014-06-02 21:43:02 +02:00
parent e87c236c51
commit 4c83522225

View File

@ -9,7 +9,7 @@ from svtplay_dl.utils.urllib import unquote_plus
from svtplay_dl.service import Service
from svtplay_dl.utils import get_http_data
from svtplay_dl.log import log
from svtplay_dl.fetcher.http import download_http
from svtplay_dl.fetcher.http import HTTP
class Lemonwhale(Service):
supported_domains = ['svd.se']
@ -40,7 +40,6 @@ class Lemonwhale(Service):
mediafiles = videofile.find("{http://www.lemonwhale.com/xml11}MediaFiles")
high = mediafiles.find("{http://www.lemonwhale.com/xml11}VideoURLHigh")
if high.text:
download_http(options, high.text)
else:
yield HTTP(options, high.text, 720)
file = mediafiles.find("{http://www.lemonwhale.com/xml11}VideoURL").text
download_http(options, file)
yield HTTP(options, file, 480)