Skip to content

Commit

Permalink
www/yt-dlp: Fix download from arte.tv
Browse files Browse the repository at this point in the history
PR:		273958
  • Loading branch information
Martin Neubauer authored and yurivict committed Sep 20, 2023
1 parent f80bbd5 commit eecfadf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions 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}
Expand Down
13 changes: 13 additions & 0 deletions 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:

0 comments on commit eecfadf

Please sign in to comment.