1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-01 22:47:59 +00:00

[XHamsterIE] Fix HD video detection

This commit is contained in:
rzhxeo 2013-12-07 21:39:32 +01:00
parent c4d9e6731a
commit 8ca6b8fba1

View file

@ -46,7 +46,7 @@ class XHamsterIE(InfoExtractor):
return mobj.group('server')+'/key='+mobj.group('file') return mobj.group('server')+'/key='+mobj.group('file')
def is_hd(webpage): def is_hd(webpage):
return webpage.find('<div class=\'icon iconHD\'>') != -1 return webpage.find('<div class=\'icon iconHD\'') != -1
mobj = re.match(self._VALID_URL, url) mobj = re.match(self._VALID_URL, url)