Compare commits

..

2 Commits

Author SHA1 Message Date
bashonly
9ed1d0ffee
more lenient url pattern 2024-01-22 06:21:26 +00:00
bashonly
b8bcccb020
add tests 2024-01-22 05:48:48 +00:00

View File

@ -893,7 +893,7 @@ class FacebookReelIE(InfoExtractor):
class FacebookAdsIE(InfoExtractor):
_VALID_URL = r'https?://(?:[\w-]+\.)?facebook\.com/ads/library/\?id=(?P<id>\d+)'
_VALID_URL = r'https?://(?:[\w-]+\.)?facebook\.com/ads/library/?\?(?:[^#]+&)?id=(?P<id>\d+)'
IE_NAME = 'facebook:ads'
_TESTS = [{
@ -923,6 +923,12 @@ class FacebookAdsIE(InfoExtractor):
'like_count': int,
},
'playlist_count': 3,
}, {
'url': 'https://es-la.facebook.com/ads/library/?id=901230958115569',
'only_matching': True,
}, {
'url': 'https://m.facebook.com/ads/library/?id=901230958115569',
'only_matching': True,
}]
_FORMATS_MAP = {