From a831c2ea9041557fdcd4abed0a449ef7bbca13e2 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Fri, 19 Aug 2022 04:58:54 +0530 Subject: [PATCH] [cleanup] Misc --- Changelog.md | 4 ++-- README.md | 2 +- yt_dlp/YoutubeDL.py | 1 + yt_dlp/extractor/youtube.py | 2 +- yt_dlp/extractor/zattoo.py | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Changelog.md b/Changelog.md index 7d16b8a8f..304a23eaf 100644 --- a/Changelog.md +++ b/Changelog.md @@ -19,8 +19,7 @@ * [extractor] Fix format sorting of `channels` * [ffmpeg] Disable avconv unless `--prefer-avconv` * [ffmpeg] Smarter detection of ffprobe filename -* [patreon] Ignore erroneous media attachments by [coletdjnz](https://github.com/coletdjnz) -* [postprocessor/embedthumbnail] Detect `libatomicparsley.so` +* [embedthumbnail] Detect `libatomicparsley.so` * [ThumbnailsConvertor] Fix conversion after `fixup_webp` * [utils] Fix `get_compatible_ext` * [build] Fix changelog @@ -30,6 +29,7 @@ * [cleanup] Misc fixes and cleanup * [extractor/moview] Add extractor by [HobbyistDev](https://github.com/HobbyistDev) * [extractor/parler] Add extractor by [palewire](https://github.com/palewire) +* [extractor/patreon] Ignore erroneous media attachments by [coletdjnz](https://github.com/coletdjnz) * [extractor/truth] Add extractor by [palewire](https://github.com/palewire) * [extractor/aenetworks] Add formats parameter by [jacobtruman](https://github.com/jacobtruman) * [extractor/crunchyroll] Improve `_VALID_URL`s diff --git a/README.md b/README.md index 31793b54e..9db693994 100644 --- a/README.md +++ b/README.md @@ -329,7 +329,7 @@ You will need the build tools `python` (3.6+), `zip`, `make` (GNU), `pandoc`\* a After installing these, simply run `make`. -You can also run `make yt-dlp` instead to compile only the binary without updating any of the additional files. (The dependencies marked with **\*** are not needed for this) +You can also run `make yt-dlp` instead to compile only the binary without updating any of the additional files. (The build tools marked with **\*** are not needed for this) ### Standalone Py2Exe Builds (Windows) diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 7f6dc6027..c2b306d70 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -444,6 +444,7 @@ class YoutubeDL: * index: Section number (Optional) force_keyframes_at_cuts: Re-encode the video when downloading ranges to get precise cuts noprogress: Do not print the progress bar + live_from_start: Whether to download livestreams videos from the start The following parameters are not used by YoutubeDL itself, they are used by the downloader (see yt_dlp/downloader/common.py): diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index c624d8c8c..fd62d716a 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -868,7 +868,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor): else None), 'live_status': ('is_upcoming' if scheduled_timestamp is not None else 'was_live' if 'streamed' in time_text.lower() - else 'is_live' if overlay_style is not None and overlay_style == 'LIVE' or 'live now' in badges + else 'is_live' if overlay_style == 'LIVE' or 'live now' in badges else None), 'release_timestamp': scheduled_timestamp, 'availability': self._availability(needs_premium='premium' in badges, needs_subscription='members only' in badges) diff --git a/yt_dlp/extractor/zattoo.py b/yt_dlp/extractor/zattoo.py index 1e38812aa..572a1d0f2 100644 --- a/yt_dlp/extractor/zattoo.py +++ b/yt_dlp/extractor/zattoo.py @@ -320,7 +320,7 @@ class ZattooRecordingsIE(ZattooBaseIE): class NetPlusTVBaseIE(ZattooPlatformBaseIE): - _NETRC = 'netplus' + _NETRC_MACHINE = 'netplus' _HOST = 'netplus.tv' _API_HOST = 'www.%s' % _HOST