pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/yt-dlp yt-dlp: Update to 2022.8.8
details: https://anonhg.NetBSD.org/pkgsrc/rev/0515dd31604f
branches: trunk
changeset: 382955:0515dd31604f
user: leot <leot%pkgsrc.org@localhost>
date: Tue Aug 09 18:11:59 2022 +0000
description:
yt-dlp: Update to 2022.8.8
pkgsrc changes:
- Remove patch-yt__dlp_extractor_arte.py, was a backport from upstream, it
should be no longer needed.
Changes:
### 2022.08.08
* **Remove Python 3.6 support**
* Determine merge container better
* Framework for embed detection
* Merge youtube-dl: Up to commit adb5294
* `--compat-option no-live-chat` should disable danmaku
* Fix misleading DRM message
* Import ctypes only when necessary
* Minor bugfixes
* Reject entire playlists faster with `--match-filter`
* Remove filtered entries from `-J`
* Standardize retry mechanism
* Validate `--merge-output-format`
* [downloader] Add average speed to final progress line
* [extractor] Add field `audio_channels`
* [extractor] Support multiple archive ids for one video
* [ffmpeg] Set `ffmpeg_location` in a contextvar
* [FFmpegThumbnailsConvertor] Fix conversion from GIF
* [MetadataParser] Don't set `None` when the field didn't match
* [outtmpl] Smarter replacing of unsupported characters
* [outtmpl] Treat empty values as None in filenames
* [utils] sanitize_open: Allow any IO stream as stdout
* [build, devscripts] Add devscript to set a build variant
* [build] Improve build process
* [build] Update pyinstaller
* [devscripts] Create `utils` and refactor
* [docs] Clarify `best*`
* [docs] Fix bug report issue template
* [docs] Fix capitalization in references
* [cleanup, mhtml] Use imghdr
* [cleanup, utils] Consolidate known media extensions
* [cleanup] Misc fixes and cleanup
* [extractor/angel] Add extractor
* [extractor/dplay] Add MotorTrend extractor
* [extractor/harpodeon] Add extractor
* [extractor/holodex] Add extractor
* [extractor/kompas] Add extracto
* [extractor/rai] Add raisudtirol extractor by [nixxo](https://github.com/nixxo)
* [extractor/tempo] Add extractor by [HobbyistDev](https://github.com/HobbyistDev)
* [extractor/youtube] Fixes for third party client detection
* [extractor/youtube] Add `live_status=post_live`
* [extractor/youtube] Extract more format info
* [extractor/youtube] Parse translated subtitles only when requested
* [extractor/youtube, extractor/twitch] Allow waiting for channels to become live
* [extractor/youtube, webvtt] Extract auto-subs from livestream VODs
* [extractor/AbemaTVTitle] Implement paging
* [extractor/archiveorg] Improve handling of formats
* [extractor/arte] Fix title extraction
* [extractor/arte] Move to v2 API
* [extractor/bbc] Fix news articles
* [extractor/camtasia] Separate into own extractor
* [extractor/cloudflarestream] Fix video_id padding
* [extractor/crunchyroll] Fix conversion of thumbnail from GIF
* [extractor/crunchyroll] Handle missing metadata correctly
* [extractor/crunchyroll:beta] Extract timestamp and fix tests
* [extractor/crunchyroll:beta] Use streams API
* [extractor/doodstream] Support more domains
* [extractor/ESPN] Extract duration
* [extractor/FIFA] Change API endpoint
* [extractor/globo:article] Remove false positives
* [extractor/Go] Extract timestamp
* [extractor/hidive] Fix cookie login when netrc is also given
* [extractor/html5] Separate into own extractor
* [extractor/ina] Improve extractor
* [extractor/NaverNow] Change endpoint
* [extractor/ninegag] Extract uploader
* [extractor/NovaPlay] Fix extractor
* [extractor/orf:radio] Rewrite extractors
* [extractor/patreon] Fix and improve extractors
* [extractor/rai] Fix RaiNews extraction
* [extractor/redbee] Unify and update extractors
* [extractor/stripchat] Fix _VALID_URL
* [extractor/tubi] Exclude playlists from playlist entries
* [extractor/tviplayer] Improve `_VALID_URL`
* [extractor/twitch] Extract chapters for single chapter VODs
* [extractor/vgtv] Support tv.vg.no
* [extractor/vidio] Support embed link
* [extractor/vk] Fix extractor
* [extractor/WASDTV:record] Fix `_VALID_URL`
* [extractor/xfileshare] Add Referer
* [extractor/YahooJapanNews] Fix extractor
* [extractor/yandexmusic] Extract higher quality format
* [extractor/zee5] Update Device ID
diffstat:
net/yt-dlp/Makefile | 5 +-
net/yt-dlp/PLIST | 41 +-
net/yt-dlp/distinfo | 9 +-
net/yt-dlp/patches/patch-yt__dlp_extractor_arte.py | 426 ---------------------
4 files changed, 34 insertions(+), 447 deletions(-)
diffs (truncated from 597 to 300 lines):
diff -r f7f2c89e81ea -r 0515dd31604f net/yt-dlp/Makefile
--- a/net/yt-dlp/Makefile Tue Aug 09 17:56:31 2022 +0000
+++ b/net/yt-dlp/Makefile Tue Aug 09 18:11:59 2022 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.17 2022/08/07 06:51:25 wiz Exp $
+# $NetBSD: Makefile,v 1.18 2022/08/09 18:11:59 leot Exp $
-DISTNAME= yt-dlp-2022.7.18
+DISTNAME= yt-dlp-2022.8.8
CATEGORIES= net
-PKGREVISION= 1
MASTER_SITES= ${MASTER_SITE_PYPI:=y/yt-dlp/}
# \TODO: create symlink, as mpv makes use of youtube-dl?
# CONFLICTS= youtube-dl-[0-9]*
diff -r f7f2c89e81ea -r 0515dd31604f net/yt-dlp/PLIST
--- a/net/yt-dlp/PLIST Tue Aug 09 17:56:31 2022 +0000
+++ b/net/yt-dlp/PLIST Tue Aug 09 18:11:59 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.10 2022/08/07 06:45:27 wiz Exp $
+@comment $NetBSD: PLIST,v 1.11 2022/08/09 18:11:59 leot Exp $
bin/yt-dlp
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
@@ -30,9 +30,6 @@
${PYSITELIB}/yt_dlp/compat/_legacy.py
${PYSITELIB}/yt_dlp/compat/_legacy.pyc
${PYSITELIB}/yt_dlp/compat/_legacy.pyo
-${PYSITELIB}/yt_dlp/compat/asyncio.py
-${PYSITELIB}/yt_dlp/compat/asyncio.pyc
-${PYSITELIB}/yt_dlp/compat/asyncio.pyo
${PYSITELIB}/yt_dlp/compat/compat_utils.py
${PYSITELIB}/yt_dlp/compat/compat_utils.pyc
${PYSITELIB}/yt_dlp/compat/compat_utils.pyo
@@ -42,9 +39,6 @@
${PYSITELIB}/yt_dlp/compat/imghdr.py
${PYSITELIB}/yt_dlp/compat/imghdr.pyc
${PYSITELIB}/yt_dlp/compat/imghdr.pyo
-${PYSITELIB}/yt_dlp/compat/re.py
-${PYSITELIB}/yt_dlp/compat/re.pyc
-${PYSITELIB}/yt_dlp/compat/re.pyo
${PYSITELIB}/yt_dlp/cookies.py
${PYSITELIB}/yt_dlp/cookies.pyc
${PYSITELIB}/yt_dlp/cookies.pyo
@@ -183,6 +177,9 @@
${PYSITELIB}/yt_dlp/extractor/amp.py
${PYSITELIB}/yt_dlp/extractor/amp.pyc
${PYSITELIB}/yt_dlp/extractor/amp.pyo
+${PYSITELIB}/yt_dlp/extractor/angel.py
+${PYSITELIB}/yt_dlp/extractor/angel.pyc
+${PYSITELIB}/yt_dlp/extractor/angel.pyo
${PYSITELIB}/yt_dlp/extractor/animeondemand.py
${PYSITELIB}/yt_dlp/extractor/animeondemand.pyc
${PYSITELIB}/yt_dlp/extractor/animeondemand.pyo
@@ -414,6 +411,9 @@
${PYSITELIB}/yt_dlp/extractor/cammodels.py
${PYSITELIB}/yt_dlp/extractor/cammodels.pyc
${PYSITELIB}/yt_dlp/extractor/cammodels.pyo
+${PYSITELIB}/yt_dlp/extractor/camtasia.py
+${PYSITELIB}/yt_dlp/extractor/camtasia.pyc
+${PYSITELIB}/yt_dlp/extractor/camtasia.pyo
${PYSITELIB}/yt_dlp/extractor/camwithher.py
${PYSITELIB}/yt_dlp/extractor/camwithher.pyc
${PYSITELIB}/yt_dlp/extractor/camwithher.pyo
@@ -951,6 +951,9 @@
${PYSITELIB}/yt_dlp/extractor/generic.py
${PYSITELIB}/yt_dlp/extractor/generic.pyc
${PYSITELIB}/yt_dlp/extractor/generic.pyo
+${PYSITELIB}/yt_dlp/extractor/genericembeds.py
+${PYSITELIB}/yt_dlp/extractor/genericembeds.pyc
+${PYSITELIB}/yt_dlp/extractor/genericembeds.pyo
${PYSITELIB}/yt_dlp/extractor/gettr.py
${PYSITELIB}/yt_dlp/extractor/gettr.pyc
${PYSITELIB}/yt_dlp/extractor/gettr.pyo
@@ -1017,6 +1020,9 @@
${PYSITELIB}/yt_dlp/extractor/groupon.py
${PYSITELIB}/yt_dlp/extractor/groupon.pyc
${PYSITELIB}/yt_dlp/extractor/groupon.pyo
+${PYSITELIB}/yt_dlp/extractor/harpodeon.py
+${PYSITELIB}/yt_dlp/extractor/harpodeon.pyc
+${PYSITELIB}/yt_dlp/extractor/harpodeon.pyo
${PYSITELIB}/yt_dlp/extractor/hbo.py
${PYSITELIB}/yt_dlp/extractor/hbo.pyc
${PYSITELIB}/yt_dlp/extractor/hbo.pyo
@@ -1053,6 +1059,9 @@
${PYSITELIB}/yt_dlp/extractor/hketv.py
${PYSITELIB}/yt_dlp/extractor/hketv.pyc
${PYSITELIB}/yt_dlp/extractor/hketv.pyo
+${PYSITELIB}/yt_dlp/extractor/holodex.py
+${PYSITELIB}/yt_dlp/extractor/holodex.pyc
+${PYSITELIB}/yt_dlp/extractor/holodex.pyo
${PYSITELIB}/yt_dlp/extractor/hotnewhiphop.py
${PYSITELIB}/yt_dlp/extractor/hotnewhiphop.pyc
${PYSITELIB}/yt_dlp/extractor/hotnewhiphop.pyo
@@ -1215,6 +1224,9 @@
${PYSITELIB}/yt_dlp/extractor/kinopoisk.py
${PYSITELIB}/yt_dlp/extractor/kinopoisk.pyc
${PYSITELIB}/yt_dlp/extractor/kinopoisk.pyo
+${PYSITELIB}/yt_dlp/extractor/kompas.py
+${PYSITELIB}/yt_dlp/extractor/kompas.pyc
+${PYSITELIB}/yt_dlp/extractor/kompas.pyo
${PYSITELIB}/yt_dlp/extractor/konserthusetplay.py
${PYSITELIB}/yt_dlp/extractor/konserthusetplay.pyc
${PYSITELIB}/yt_dlp/extractor/konserthusetplay.pyo
@@ -1770,9 +1782,6 @@
${PYSITELIB}/yt_dlp/extractor/paramountplus.py
${PYSITELIB}/yt_dlp/extractor/paramountplus.pyc
${PYSITELIB}/yt_dlp/extractor/paramountplus.pyo
-${PYSITELIB}/yt_dlp/extractor/parliamentliveuk.py
-${PYSITELIB}/yt_dlp/extractor/parliamentliveuk.pyc
-${PYSITELIB}/yt_dlp/extractor/parliamentliveuk.pyo
${PYSITELIB}/yt_dlp/extractor/parlview.py
${PYSITELIB}/yt_dlp/extractor/parlview.pyc
${PYSITELIB}/yt_dlp/extractor/parlview.pyo
@@ -1998,6 +2007,9 @@
${PYSITELIB}/yt_dlp/extractor/rds.py
${PYSITELIB}/yt_dlp/extractor/rds.pyc
${PYSITELIB}/yt_dlp/extractor/rds.pyo
+${PYSITELIB}/yt_dlp/extractor/redbee.py
+${PYSITELIB}/yt_dlp/extractor/redbee.pyc
+${PYSITELIB}/yt_dlp/extractor/redbee.pyo
${PYSITELIB}/yt_dlp/extractor/redbulltv.py
${PYSITELIB}/yt_dlp/extractor/redbulltv.pyc
${PYSITELIB}/yt_dlp/extractor/redbulltv.pyo
@@ -2046,9 +2058,6 @@
${PYSITELIB}/yt_dlp/extractor/rozhlas.py
${PYSITELIB}/yt_dlp/extractor/rozhlas.pyc
${PYSITELIB}/yt_dlp/extractor/rozhlas.pyo
-${PYSITELIB}/yt_dlp/extractor/rtbf.py
-${PYSITELIB}/yt_dlp/extractor/rtbf.pyc
-${PYSITELIB}/yt_dlp/extractor/rtbf.pyo
${PYSITELIB}/yt_dlp/extractor/rte.py
${PYSITELIB}/yt_dlp/extractor/rte.pyc
${PYSITELIB}/yt_dlp/extractor/rte.pyo
@@ -2163,6 +2172,9 @@
${PYSITELIB}/yt_dlp/extractor/shared.py
${PYSITELIB}/yt_dlp/extractor/shared.pyc
${PYSITELIB}/yt_dlp/extractor/shared.pyo
+${PYSITELIB}/yt_dlp/extractor/sharevideos.py
+${PYSITELIB}/yt_dlp/extractor/sharevideos.pyc
+${PYSITELIB}/yt_dlp/extractor/sharevideos.pyo
${PYSITELIB}/yt_dlp/extractor/shemaroome.py
${PYSITELIB}/yt_dlp/extractor/shemaroome.pyc
${PYSITELIB}/yt_dlp/extractor/shemaroome.pyo
@@ -2400,6 +2412,9 @@
${PYSITELIB}/yt_dlp/extractor/telewebion.py
${PYSITELIB}/yt_dlp/extractor/telewebion.pyc
${PYSITELIB}/yt_dlp/extractor/telewebion.pyo
+${PYSITELIB}/yt_dlp/extractor/tempo.py
+${PYSITELIB}/yt_dlp/extractor/tempo.pyc
+${PYSITELIB}/yt_dlp/extractor/tempo.pyo
${PYSITELIB}/yt_dlp/extractor/tennistv.py
${PYSITELIB}/yt_dlp/extractor/tennistv.pyc
${PYSITELIB}/yt_dlp/extractor/tennistv.pyo
diff -r f7f2c89e81ea -r 0515dd31604f net/yt-dlp/distinfo
--- a/net/yt-dlp/distinfo Tue Aug 09 17:56:31 2022 +0000
+++ b/net/yt-dlp/distinfo Tue Aug 09 18:11:59 2022 +0000
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.14 2022/08/07 06:51:25 wiz Exp $
+$NetBSD: distinfo,v 1.15 2022/08/09 18:11:59 leot Exp $
-BLAKE2s (yt-dlp-2022.7.18.tar.gz) = 21f5ddc9cfacd7cf69cce09e618ae56709466b29df9d4f778d5df488b3950444
-SHA512 (yt-dlp-2022.7.18.tar.gz) = 07552c1b698326152c154ff83fc08b03637234ff448e6b5dd6776c0f37d2a4d892a5c89131c4c9ec8a8c479577018ffbdf7f53538e3dc41497c0fd131c90538a
-Size (yt-dlp-2022.7.18.tar.gz) = 2348854 bytes
-SHA1 (patch-yt__dlp_extractor_arte.py) = fe748588454347fb8172cfa0838938ee65cef1d1
+BLAKE2s (yt-dlp-2022.8.8.tar.gz) = 8b4510170833224409632c8a5fba56aea86e44b709213b1eb2f588ecacd9f767
+SHA512 (yt-dlp-2022.8.8.tar.gz) = bef1f1110c97f0c8338e94fc2671849cbfe086eb7dba974c623dde2beec29a17dd0c9972603a5af530a07e0721a00e56c6437a2b5d82b39630e3f4f49b51b00b
+Size (yt-dlp-2022.8.8.tar.gz) = 2361172 bytes
diff -r f7f2c89e81ea -r 0515dd31604f net/yt-dlp/patches/patch-yt__dlp_extractor_arte.py
--- a/net/yt-dlp/patches/patch-yt__dlp_extractor_arte.py Tue Aug 09 17:56:31 2022 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,426 +0,0 @@
-$NetBSD: patch-yt__dlp_extractor_arte.py,v 1.1 2022/08/07 06:51:25 wiz Exp $
-
-Fix arte support.
-https://github.com/yt-dlp/yt-dlp/pull/3302
-
---- yt_dlp/extractor/arte.py.orig 2022-07-18 00:04:11.000000000 +0000
-+++ yt_dlp/extractor/arte.py
-@@ -1,185 +1,190 @@
- import re
-
- from .common import InfoExtractor
--from ..compat import (
-- compat_str,
--)
- from ..utils import (
- ExtractorError,
-+ GeoRestrictedError,
- int_or_none,
-+ parse_iso8601,
- parse_qs,
-- qualities,
- strip_or_none,
-- try_get,
-- unified_strdate,
-+ traverse_obj,
- url_or_none,
- )
-
-
- class ArteTVBaseIE(InfoExtractor):
- _ARTE_LANGUAGES = 'fr|de|en|es|it|pl'
-- _API_BASE = 'https://api.arte.tv/api/player/v1'
-+ _API_BASE = 'https://api.arte.tv/api/player/v2'
-
-
- class ArteTVIE(ArteTVBaseIE):
- _VALID_URL = r'''(?x)
-- https?://
-+ (?:https?://
- (?:
- (?:www\.)?arte\.tv/(?P<lang>%(langs)s)/videos|
- api\.arte\.tv/api/player/v\d+/config/(?P<lang_2>%(langs)s)
- )
-- /(?P<id>\d{6}-\d{3}-[AF])
-+ |arte://program)
-+ /(?P<id>\d{6}-\d{3}-[AF]|LIVE)
- ''' % {'langs': ArteTVBaseIE._ARTE_LANGUAGES}
- _TESTS = [{
- 'url': 'https://www.arte.tv/en/videos/088501-000-A/mexico-stealing-petrol-to-survive/',
-+ 'only_matching': True,
-+ }, {
-+ 'url': 'https://www.arte.tv/pl/videos/100103-000-A/usa-dyskryminacja-na-porodowce/',
- 'info_dict': {
-- 'id': '088501-000-A',
-+ 'id': '100103-000-A',
-+ 'title': 'USA: Dyskryminacja na porodówce',
-+ 'description': 'md5:242017b7cce59ffae340a54baefcafb1',
-+ 'alt_title': 'ARTE Reportage',
-+ 'upload_date': '20201103',
-+ 'duration': 554,
-+ 'thumbnail': r're:https://api-cdn\.arte\.tv/.+940x530',
-+ 'timestamp': 1604417980,
- 'ext': 'mp4',
-- 'title': 'Mexico: Stealing Petrol to Survive',
-- 'upload_date': '20190628',
- },
-+ 'params': {'skip_download': 'm3u8'}
- }, {
-- 'url': 'https://www.arte.tv/pl/videos/100103-000-A/usa-dyskryminacja-na-porodowce/',
-+ 'url': 'https://api.arte.tv/api/player/v2/config/de/100605-013-A',
- 'only_matching': True,
- }, {
-- 'url': 'https://api.arte.tv/api/player/v2/config/de/100605-013-A',
-+ 'url': 'https://api.arte.tv/api/player/v2/config/de/LIVE',
- 'only_matching': True,
- }]
-
-+ _GEO_BYPASS = True
-+
-+ _LANG_MAP = { # ISO639 -> French abbreviations
-+ 'fr': 'F',
-+ 'de': 'A',
-+ 'en': 'E[ANG]',
-+ 'es': 'E[ESP]',
-+ 'it': 'E[ITA]',
-+ 'pl': 'E[POL]',
-+ # XXX: probably means mixed; <https://www.arte.tv/en/videos/107710-029-A/dispatches-from-ukraine-local-journalists-report/>
-+ # uses this code for audio that happens to be in Ukrainian, but the manifest uses the ISO code 'mul' (mixed)
-+ 'mul': 'EU',
-+ }
-+
-+ _VERSION_CODE_RE = re.compile(r'''(?x)
-+ V
-+ (?P<original_voice>O?)
-+ (?P<vlang>[FA]|E\[[A-Z]+\]|EU)?
-+ (?P<audio_desc>AUD|)
-+ (?:
-+ (?P<has_sub>-ST)
-+ (?P<sdh_sub>M?)
-+ (?P<sub_lang>[FA]|E\[[A-Z]+\]|EU)
-+ )?
-+ ''')
-+
-+ # all obtained by exhaustive testing
-+ _COUNTRIES_MAP = {
-+ 'DE_FR': {
-+ 'BL', 'DE', 'FR', 'GF', 'GP', 'MF', 'MQ', 'NC',
-+ 'PF', 'PM', 'RE', 'WF', 'YT',
-+ },
-+ # with both of the below 'BE' sometimes works, sometimes doesn't
-+ 'EUR_DE_FR': {
-+ 'AT', 'BL', 'CH', 'DE', 'FR', 'GF', 'GP', 'LI',
-+ 'MC', 'MF', 'MQ', 'NC', 'PF', 'PM', 'RE', 'WF',
-+ 'YT',
-+ },
-+ 'SAT': {
-+ 'AD', 'AT', 'AX', 'BG', 'BL', 'CH', 'CY', 'CZ',
-+ 'DE', 'DK', 'EE', 'ES', 'FI', 'FR', 'GB', 'GF',
-+ 'GR', 'HR', 'HU', 'IE', 'IS', 'IT', 'KN', 'LI',
-+ 'LT', 'LU', 'LV', 'MC', 'MF', 'MQ', 'MT', 'NC',
-+ 'NL', 'NO', 'PF', 'PL', 'PM', 'PT', 'RE', 'RO',
-+ 'SE', 'SI', 'SK', 'SM', 'VA', 'WF', 'YT',
-+ },
-+ }
-+
- def _real_extract(self, url):
- mobj = self._match_valid_url(url)
- video_id = mobj.group('id')
- lang = mobj.group('lang') or mobj.group('lang_2')
Home |
Main Index |
Thread Index |
Old Index