]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[facebook] Improve uploader extraction (closes #20250)
authorSergey M․ <dstftw@gmail.com>
Tue, 5 Mar 2019 18:27:22 +0000 (01:27 +0700)
committerSergey M․ <dstftw@gmail.com>
Tue, 5 Mar 2019 18:27:22 +0000 (01:27 +0700)
youtube_dl/extractor/facebook.py

index 74954049dc79e6e9d0682a73550c52a4d010a06d..789dd79d5474ea8f7c9d18df244c686076e3e646 100644 (file)
@@ -424,7 +424,7 @@ class FacebookIE(InfoExtractor):
         uploader = clean_html(get_element_by_id(
             'fbPhotoPageAuthorName', webpage)) or self._search_regex(
             r'ownerName\s*:\s*"([^"]+)"', webpage, 'uploader',
-            fatal=False) or self._og_search_title(webpage, fatal=False)
+            default=None) or self._og_search_title(webpage, fatal=False)
         timestamp = int_or_none(self._search_regex(
             r'<abbr[^>]+data-utime=["\'](\d+)', webpage,
             'timestamp', default=None))