Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Errors from missing videos in playlists don't seem to be handled gracefully. #288

Open
deepjyoti30 opened this issue Dec 3, 2023 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@deepjyoti30
Copy link
Owner

Maybe it's a known issue, but errors from missing videos in playlists don't seem to be handled gracefully.

A playlist including, for example, this missing song https://music.youtube.com/watch?v=N_fGELxp10w fails and aborts with subsequent items in the playlist

Traceback (most recent call last):
  File "/home/user/.local/bin/ytmdl", line 8, in <module>
    sys.exit(entry())
  File "/home/user/.local/lib/python3.10/site-packages/ytmdl/main.py", line 614, in entry
    extract_data()
  File "/home/user/.local/lib/python3.10/site-packages/ytmdl/main.py", line 607, in extract_data
    main(args)
  File "/home/user/.local/lib/python3.10/site-packages/ytmdl/main.py", line 238, in main
    song_name, verify_name = extract_song_name(args)
  File "/home/user/.local/lib/python3.10/site-packages/ytmdl/main.py", line 530, in extract_song_name
    song_name, verify_title = yt.get_title(args.url, args.ytdl_config)
  File "/home/user/.local/lib/python3.10/site-packages/ytmdl/yt.py", line 409, in get_title
    title = __get_title_from_yt(url, ytdl_config)
  File "/home/user/.local/lib/python3.10/site-packages/ytmdl/yt.py", line 368, in __get_title_from_yt
    return stringutils.remove_yt_words(data["title"])
TypeError: 'NoneType' object is not subscriptable

This is the case even with the following flags, --download-archive dl.txt --quiet --on-meta-error youtube --ignore-errors --nolocal
It's also the case with the following flags included in the yt-dlp config --no-abort-on-error --ignore-errors

Originally posted by @Firerouge in #255 (comment)

@deepjyoti30 deepjyoti30 added the bug Something isn't working label Dec 3, 2023
@deepjyoti30 deepjyoti30 added this to the Next Release milestone Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant