Skip to content

Commit

Permalink
fixed regex
Browse files Browse the repository at this point in the history
  • Loading branch information
zWolfrost committed Aug 30, 2024
1 parent c04224c commit e89982c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gallery_dl/extractor/facebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ class FacebookProfileExtractor(FacebookExtractor):
"""Base class for Facebook Profile Photos Set extractors"""
subcategory = "profile"
pattern = (
BASE_PATTERN + r"/(?:profile.php\?id=|people/[^/|?|&]+/)?([^/|?|&]+)"
BASE_PATTERN + r"/(?!(?:media|photo|watch)/)"
r"(?:profile.php\?id=|people/[^/|?|&]+/)?([^/|?|&]+)"
)
example = "https://www.facebook.com/USERNAME"

Expand Down

0 comments on commit e89982c

Please sign in to comment.