[instagram] categorize single highlight URLs as 'highlights'

They were categorized as 'stories' before.

(fixes #1222)
This commit is contained in:
Mike Fährmann 2021-01-08 15:56:27 +01:00
parent 1c9435e0df
commit 98e0d21383
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -609,8 +609,10 @@ class InstagramStoriesExtractor(InstagramExtractor):
request_interval = 1.0
def __init__(self, match):
InstagramExtractor.__init__(self, match)
self.highlight_id, self.user = match.groups()
if self.highlight_id:
self.subcategory = InstagramHighlightsExtractor.subcategory
InstagramExtractor.__init__(self, match)
def posts(self):
if self.highlight_id: