Przeglądaj źródła

[voicerepublic] Extract author using _html_search_meta

Duncan 10 lat temu
rodzic
commit
f900dc3fb9
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      youtube_dl/extractor/voicerepublic.py

+ 1 - 1
youtube_dl/extractor/voicerepublic.py

@@ -51,5 +51,5 @@ class VoiceRepublicIE(InfoExtractor):
             'url': self._og_search_url(webpage),
             'thumbnail': thumbnail,
             'description': self._og_search_description(webpage),
-            'creator': self._search_regex(r'<meta content=\'([^\']*?)\' name=\'author\'>', webpage, 'author', fatal=False),
+            'creator': self._html_search_meta('author', webpage),
         }