[instagram] fix regex for '/saved' URLs (fixes #1251)

The URL pattern erroneously had two '([^/?#]+)' capture groups,
which would split any username into 'usernam' for the first group
and 'e' for the ignored second group.
pull/1258/head
Mike Fährmann 4 years ago
parent c008cb5100
commit 1fc16cb8c5
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -424,7 +424,7 @@ class InstagramChannelExtractor(InstagramExtractor):
class InstagramSavedExtractor(InstagramExtractor):
"""Extractor for ProfilePage saved media"""
subcategory = "saved"
pattern = USER_PATTERN + r"([^/?#]+)/saved"
pattern = USER_PATTERN + r"/saved"
test = ("https://www.instagram.com/instagram/saved/",)
def posts(self):

Loading…
Cancel
Save