Skip to content

Commit

Permalink
[instagram] Fix AttributeError on user stories extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
wlritchi authored and mikf committed Oct 30, 2022
1 parent 23e1d7c commit c5f4a2d
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 @@ -515,10 +515,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 c5f4a2d

Please sign in to comment.