1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

fixed tests

This commit is contained in:
Luca Russo 2024-11-18 22:32:26 +01:00
parent 35d55174aa
commit 7bf02779b5
2 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -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",