Hi,

I don't even remember the last time I used youtube-dl, but I know it didn't work
and random people already complained that back to me as well.

I'm ok with it going away, nothing would be lost here.

On 20:23 Wed 21 Feb     , Stuart Henderson wrote:
> On 2024/02/21 15:45, Jose Maldonado wrote:
> > 
> > Hi!, ports list!
> > 
> > Reviewing some things with yt-dlp I have seen that in our port tree we
> > still have a mention of youtube-dl, more specifically the version
> > www/youtube-dl-2021.12.17p1 (its latest version).
> > 
> > It seemed strange to me, so I decided to install and test it thinking
> > that it was patched in some way to keep it working. It is not the case.
> > The port does not work, and as we know the development of youtube-dl is
> > abandoned, in favor of yt-dlp.
> > 
> > The same thing happens with other ports related to youtube-dl
> > 
> > 1) audio/yt-audio: abandoned since 2020, depends on youtube-dl and
> > therefore does not work.
> 
> I think this is enough, the flags seem compatible:
> 
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/audio/yt-audio/Makefile,v
> diff -u -p -r1.10 Makefile
> --- Makefile  13 Nov 2022 15:27:39 -0000      1.10
> +++ Makefile  21 Feb 2024 20:18:31 -0000
> @@ -3,7 +3,7 @@ COMMENT =             youtube-dl wrapper to manage 
>  MODPY_EGG_VERSION =  0.1
>  DISTNAME =           yt-audio-${MODPY_EGG_VERSION}
>  CATEGORIES =         audio
> -REVISION =           4
> +REVISION =           5
>  
>  MAINTAINER =         Paul Irofti <p...@irofti.net>
>  
> @@ -12,7 +12,7 @@ PERMIT_PACKAGE =    Yes
>  
>  MODULES =            lang/python
>  
> -RUN_DEPENDS =                www/youtube-dl \
> +RUN_DEPENDS =                www/yt-dlp \
>                       graphics/ffmpeg
>  
>  MODPY_PI =           Yes
> Index: patches/patch-yt_audio_common_py
> ===================================================================
> RCS file: patches/patch-yt_audio_common_py
> diff -N patches/patch-yt_audio_common_py
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ patches/patch-yt_audio_common_py  21 Feb 2024 20:18:31 -0000
> @@ -0,0 +1,33 @@
> +Index: yt_audio/common.py
> +--- yt_audio/common.py.orig
> ++++ yt_audio/common.py
> +@@ -11,9 +11,9 @@ class Common:
> +     """
> + 
> +     DEFAULT_ARGUMENT_VALUES = {
> +-        'download_command': 'youtube-dl -x -q --print-json --audio-format 
> mp3 --audio-quality 0 '
> ++        'download_command': 'yt-dlp -x -q --print-json --audio-format mp3 
> --audio-quality 0 '
> +                             '--add-metadata --embed-thumbnail -o "$OUTPUT$" 
> $URL$',
> +-        'playlist_info_command': 'youtube-dl --flat-playlist -J 
> $PLAYLIST_URL$',
> ++        'playlist_info_command': 'yt-dlp --flat-playlist -J $PLAYLIST_URL$',
> +         'output_format': '%%(title)s.%%(ext)s',
> +         'ffprobe_command': 'ffprobe -v quiet -print_format json 
> -show_format -hide_banner "$PATH$"',
> +         'output_directory': str(PurePath(Path.home(), "Music"))
> +@@ -88,7 +88,7 @@ class Common:
> + 
> +         Parameters:
> +         ==========
> +-        > download_command (string): youtube-dl download command
> ++        > download_command (string): yt-dlp download command
> + 
> +         > title_count (int): no. of titles to download
> +         """
> +@@ -203,7 +203,7 @@ class Common:
> +     def check_dependencies(self):
> +         _dependencies = ["ffmpeg -version|avconv -version",
> +                          "ffprobe -version|avprobe -version",
> +-                         "youtube-dl --version",
> ++                         "yt-dlp --version",
> +                          ]
> +         for _dep in _dependencies:
> +             try:
> 
> 
> 
> > 2) multimedia/py-pafy: abandoned since 2019, same situation as the
> > previous port.
> 
> A bit more complex as it uses the Python API. Needs s/youtube_dl/yt_dlp/
> but also accounting for other API changes (at least dislikes are no longer
> supported).
> 

Reply via email to