Skip to content

Commit

Permalink
[ytdl] update 'parse_bytes' location (#3256)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Nov 19, 2022
1 parent 226d778 commit 985fd39
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gallery_dl/ytdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ def parse_command_line(module, argv):

ytdlp = (module.__name__ == "yt_dlp")
std_headers = module.std_headers
parse_bytes = module.FileDownloader.parse_bytes

try:
parse_bytes = module.parse_bytes
except AttributeError:
parse_bytes = module.FileDownloader.parse_bytes

# HTTP headers
if opts.user_agent is not None:
Expand Down

0 comments on commit 985fd39

Please sign in to comment.