Skip to content

Commit

Permalink
fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
zWolfrost committed Jan 30, 2025
1 parent 76208d7 commit c791c10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gallery_dl/extractor/discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def extract_channel(self, channel_id, safe=False):
elif channel_type in (15, 16):
yield from self.extract_channel_threads(channel_id)
elif channel_type in (4,):
for channel in self.server_channels_metadata.values():
for channel in self.server_channels_metadata.copy().values():
if channel["parent_id"] == channel_id:
yield from self.extract_channel(
channel["channel_id"], safe=True
Expand Down Expand Up @@ -261,7 +261,7 @@ def items(self):

self.build_server_and_channels(server_id)

for channel in self.server_channels_metadata.values():
for channel in self.server_channels_metadata.copy().values():
if channel["channel_type"] in (0, 5, 15, 16):
yield from self.extract_channel(
channel["channel_id"], safe=True
Expand Down

0 comments on commit c791c10

Please sign in to comment.