diff --git a/www/yt-dlp/Makefile b/www/yt-dlp/Makefile index e62b73cbb714..816d71e01259 100644 --- a/www/yt-dlp/Makefile +++ b/www/yt-dlp/Makefile @@ -1,47 +1,48 @@ PORTNAME= yt-dlp DISTVERSION= 2023.07.06 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${DISTVERSION}/ DISTNAME= ${PORTNAME} DIST_SUBDIR= ${PORTNAME}/${DISTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= Command-line program for downloading videos from various platforms WWW= https://github.com/yt-dlp/yt-dlp LICENSE= UNLICENSE LICENSE_FILE= ${WRKSRC}/LICENSE PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}brotli>0:archivers/py-brotli@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}certifi>0:security/py-certifi@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}mutagen>0:audio/py-mutagen@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pycryptodomex>0:security/py-pycryptodomex@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}websockets>0:devel/py-websockets@${PY_FLAVOR} BUILD_DEPENDS= ${PY_DEPENDS} RUN_DEPENDS= ${PY_DEPENDS} USES= gmake python shebangfix SHEBANG_GLOB= devscripts/*.py MAKE_ARGS= PYTHON=${PYTHON_CMD} NO_ARCH= yes OPTIONS_DEFINE= FFMPEG RTMPDUMP SYMLINK OPTIONS_DEFAULT= FFMPEG RTMPDUMP SYMLINK OPTIONS_SUB= yes FFMPEG_RUN_DEPENDS= ffprobe:multimedia/ffmpeg RTMPDUMP_DESC= Use rtmpdump to download rtmp video streams RTMPDUMP_RUN_DEPENDS= rtmpdump:multimedia/rtmpdump SYMLINK_DESC= Install youtube-dl symbolic link for executable SYMLINK_CONFLICTS= youtube_dl post-install-SYMLINK-on: @${RLN} ${STAGEDIR}${PREFIX}/bin/yt-dlp ${STAGEDIR}${PREFIX}/bin/youtube-dl .include diff --git a/www/yt-dlp/files/patch-yt__dlp_extractor_arte.py b/www/yt-dlp/files/patch-yt__dlp_extractor_arte.py new file mode 100644 index 000000000000..60b653370f9a --- /dev/null +++ b/www/yt-dlp/files/patch-yt__dlp_extractor_arte.py @@ -0,0 +1,13 @@ +- patch from https://github.com/yt-dlp/yt-dlp/issues/8156 + +--- yt_dlp/extractor/arte.py.orig 2022-05-18 03:37:32 UTC ++++ yt_dlp/extractor/arte.py +@@ -169,7 +169,7 @@ def _real_extract(self, url): + ))) + + short_label = traverse_obj(stream_version, 'shortLabel', expected_type=str, default='?') +- if stream['protocol'].startswith('HLS'): ++ if 'HLS' in stream['protocol']: + fmts, subs = self._extract_m3u8_formats_and_subtitles( + stream['url'], video_id=video_id, ext='mp4', m3u8_id=stream_version_code, fatal=False) + for fmt in fmts: