[instagram] fix "AttributeError: 'videos_dash'" (#8561)

fixes regression introduced in ab3e34e9c3
This commit is contained in:
Mike Fährmann
2025-11-15 16:13:20 +01:00
parent f6e67116f2
commit 6ee7096558

View File

@@ -64,6 +64,8 @@ class InstagramExtractor(Extractor):
if videos := self.config("videos", True):
self.videos_dash = videos_dash = (videos != "merged")
videos_headers = {"User-Agent": "Mozilla/5.0"}
else:
self.videos_dash = False
previews = self.config("previews", False)
max_posts = self.config("max-posts")