azihassan / youtube-d

A fast command-line Youtube downloader
MIT License
6 stars 0 forks source link

Gracefully handle playability status #73

Closed azihassan closed 5 months ago

azihassan commented 6 months ago

Some videos require logging in to play. While this isn't supported by youtube-d, it should still fail with a descriptive error message instead of generic errors like "Failed to parse encryption steps". The status is available in a "playabilityStatus" field that's buried somewhere within the body tag:

image