From 7bf02779b557c3c7dd8f2cd618b0d4221671b741 Mon Sep 17 00:00:00 2001 From: Luca Russo Date: Mon, 18 Nov 2024 22:32:26 +0100 Subject: [PATCH] fixed tests --- gallery_dl/extractor/facebook.py | 4 ++-- test/results/facebook.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gallery_dl/extractor/facebook.py b/gallery_dl/extractor/facebook.py index 28a141fc..14077c60 100644 --- a/gallery_dl/extractor/facebook.py +++ b/gallery_dl/extractor/facebook.py @@ -182,7 +182,7 @@ class FacebookExtractor(Extractor): )) first_video_raw = text.extr( - video_page, '"playlist":"\\u003C?xml', '\\/Period>\\u003C\\/MPD>' + video_page, '"permalink_url"', '\\/Period>\\u003C\\/MPD>' ) audio = { @@ -412,7 +412,7 @@ class FacebookProfileExtractor(FacebookExtractor): subcategory = "profile" pattern = ( BASE_PATTERN + - r"/(?!(?:media|photo|watch|.*?/photos|.*?/posts|.*?/videos)/)" + r"/(?!media/|photo/|watch/|.*?/photos/|.*?/posts/|.*?/videos/)" r"(?:profile.php\?id=|people/[^/?&]+/)?([^/?&]+)" ) example = "https://www.facebook.com/USERNAME" diff --git a/test/results/facebook.py b/test/results/facebook.py index 8d551f20..9b0a2334 100644 --- a/test/results/facebook.py +++ b/test/results/facebook.py @@ -75,7 +75,7 @@ __tests__ = ( "#count" : 1, "date" : datetime.datetime(2024, 4, 19, 17, 25, 48), - "name" : "451734618_986951969754568_3078978443536682653_n", + "name" : "462125225_400524393116630_7457168924362807384_n", "id" : "1165557851291824", "url" : str, "user_id" : "100064860875397",