From c8a0a6d791501c7d15534405e7a70c6e3110a792 Mon Sep 17 00:00:00 2001 From: Avi Peretz Date: Sat, 22 Jun 2019 22:59:11 +0300 Subject: [PATCH] not fatal for now. --- youtube_dl/extractor/facebook.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py index 14cb54966..1021345bf 100644 --- a/youtube_dl/extractor/facebook.py +++ b/youtube_dl/extractor/facebook.py @@ -614,10 +614,13 @@ class FacebookAjax: @property def page_likes(self): - return parse_count( - self._extractor._search_regex(r'\/span>([\d,]+) likes', self.hover, 'uploader_likes', default=None) - ) - + try: + return parse_count( + self._extractor._search_regex(r'\/span>([\d,]+) likes', self.hover, 'uploader_likes', default=None) + ) + except: + return None + def _get_request_url(self, page_id): return update_url_query(self.HOVER_URL_TEMPLATE, {