Skip to content

Commit

Permalink
[instagram] Fix AttributeError on user stories extraction (#3123)
Browse files Browse the repository at this point in the history
  • Loading branch information
wlritchi authored Oct 30, 2022
1 parent 7a9cb6d commit 0f9dfb7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gallery_dl/extractor/instagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,10 +500,14 @@ class InstagramStoriesExtractor(InstagramExtractor):

def __init__(self, match):
h1, self.user, m1, h2, m2 = match.groups()
if not self.user:

if self.user:
self.highlight_id = None
else:
self.subcategory = InstagramHighlightsExtractor.subcategory
self.highlight_id = ("highlight:" + h1 if h1 else
binascii.a2b_base64(h2).decode())

self.media_id = m1 or m2
InstagramExtractor.__init__(self, match)

Expand Down

0 comments on commit 0f9dfb7

Please sign in to comment.