muammar / mkchromecast

Cast macOS and Linux Audio/Video to your Google Cast and Sonos Devices
http://mkchromecast.com
Other
2.19k stars 136 forks source link

Deprecate youtube-dl for yt-dlp #432

Open drjaska opened 7 months ago

drjaska commented 7 months ago

youtube-dl project has mostly died and the development continues under a fork project yt-dlp. I would urge this project to migrate over.

[Even Debian has recognized this and deprecated youtube-dl for yt-dlp in latest Stable release, Debian 12.(https://www.debian.org/releases/bookworm/mips64el/release-notes/ch-information.en.html#youtube-dl)

youtube-dl (2021.12.17-2) unstable; urgency=low

  The youtube-dl project has been forked, and new development is
  happening under the yt-dlp project. We plan to completely remove
  the youtube-dl package after the Debian 12 (bookworm) release.

  For the bookworm release, we're turning youtube-dl into an empty
  package that depends on yt-dlp. Most package dependencies in Debian
  are already aware of yt-dlp and will happily use it if available. However,
  *USER SCRIPTS WILL BREAK AND NEED TO BE MANUALLY UPDATED BY ADMINS & USERS!*
  We are not providing any kind of wrapper script, symlink, or wrapper
  module due to behavioral changes and namespace issues between the two
  programs.

  In the vast majority of cases, you can simply replace "youtube-dl"
  with "yt-dlp" in scripts. However, if you were using a bunch of
  arguments, had config files, were using the downloaded files in other
  programs/scripts, or just want to revert behavior, be sure to read the
  yt-dlp man page section "Differences in default behavior". Passing the
  argument "--compat-options youtube-dl" to yt-dlp may be enough to
  revert behavior, but yt-dlp will still have some subtle differences.

  Be sure to test your scripts thoroughly with yt-dlp!

 -- Andres Salomon <dilinger@debian.org>  Tue, 03 Jan 2023 17:21:53 -0500
xsdg commented 6 months ago

This was already reported, but inside of a different issue, so thanks for creating a new issue for this. This is planned (but again, will need to wait until mkchromecast is back on a more solid foundation)

drjaska commented 5 months ago

It would also be nice to get support for flags, currently I am overriding youtube-dl with this script in ~/bin/youtube-dl which is used instead of any system distributed youtube-dl executables because ~/bin is very early on in my PATH environment variable on Linux.

#!/bin/sh -eu

yt-dlp --sponsorblock-remove default "$@"