Explorar o código

Redtube changed player config, new place to get thumb URL

MikeCol %!s(int64=11) %!d(string=hai) anos
pai
achega
530ed178b7
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      youtube_dl/extractor/redtube.py

+ 1 - 3
youtube_dl/extractor/redtube.py

@@ -35,9 +35,7 @@ class RedTubeIE(InfoExtractor):
             r'<h1 class="videoTitle[^"]*">(.+?)</h1>',
             webpage, u'title')
 
-        video_thumbnail = self._html_search_regex(
-            r'playerInnerHTML.+?<img\s+src="(.+?)"',
-            webpage, u'thumbnail', fatal=False)
+        video_thumbnail = self._og_search_thumbnail(webpage)
 
         # No self-labeling, but they describe themselves as
         # "Home of Videos Porno"