Selaa lähdekoodia

[voicerepublic] Extract author using _html_search_meta

Duncan 10 vuotta sitten
vanhempi
sitoutus
f900dc3fb9
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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),
         }