diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py index 3b99383fa..0ccb3c1cf 100644 --- a/youtube_dl/extractor/facebook.py +++ b/youtube_dl/extractor/facebook.py @@ -460,7 +460,7 @@ class FacebookIE(InfoExtractor): r'datePublished":"(.+?)"', webpage, 'timestamp', default=None) timestamp = parse_iso8601(timestamp) - if timestamp is None: + else: timestamp = int_or_none( self._search_regex(r'data-utime=\\\"(\d+)\\\"', tahoe_data.secondary,'timestamp', default=None) or self._search_regex(r']+data-utime=["\'](\d+)', webpage, 'timestamp', default=None)