git: eecfadf692c4 - main - www/yt-dlp: Fix download from arte.tv

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 20 Sep 2023 07:33:03 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=eecfadf692c4ad6a7bc05b3492c8d5915da5efcd

commit eecfadf692c4ad6a7bc05b3492c8d5915da5efcd
Author:     Martin Neubauer <m.ne@gmx.net>
AuthorDate: 2023-09-20 07:32:03 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-09-20 07:32:57 +0000

    www/yt-dlp: Fix download from arte.tv
    
    PR:             273958
---
 www/yt-dlp/Makefile                              |  1 +
 www/yt-dlp/files/patch-yt__dlp_extractor_arte.py | 13 +++++++++++++
 2 files changed, 14 insertions(+)

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,5 +1,6 @@
 PORTNAME=	yt-dlp
 DISTVERSION=	2023.07.06
+PORTREVISION=	1
 CATEGORIES=	www
 MASTER_SITES=	https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${DISTVERSION}/
 DISTNAME=	${PORTNAME}
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: