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

mtvnn: dont urlparse the path

This commit is contained in:
Johan Andersson 2015-09-02 19:46:55 +02:00
parent bb47a5d1fa
commit 45a5c0ee38

View File

@ -35,8 +35,7 @@ class Mtvnn(Service, OpenGraphThumbMixin):
return
swfurl = mediagen.find("{http://search.yahoo.com/mrss/}player").attrib["url"]
parse = urlparse(swfurl)
options.other = "-W %s://%s%s" % (parse.scheme, parse.hostname, self.http.check_redirect(swfurl))
options.other = "-W %s" % self.http.check_redirect(swfurl)
contenturl = mediagen.find("{http://search.yahoo.com/mrss/}content").attrib["url"]
content = self.http.request("get", contenturl).content