Explorar o código

[XHamsterIE] Fix HD video detection

rzhxeo %!s(int64=11) %!d(string=hai) anos
pai
achega
8ca6b8fba1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/extractor/xhamster.py

+ 1 - 1
youtube_dl/extractor/xhamster.py

@@ -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)