A feature-rich command-line audio/video downloader
Fix some linter and typos
pukkandana7191c6f577e
diff --git a/README.md b/README.mdindex 9b2267a86a..9abf993b61 100644--- a/README.md+++ b/README.md@@ -9,11 +9,10 @@ A command-line program to download videos from YouTube and many other [video pla[](https://github.com/yt-dlp/yt-dlp/releases/latest)[](LICENSE)[](https://yt-dlp.readthedocs.io)-[](https://discord.gg/H5MNcFW63r)-+[](https://discord.gg/H5MNcFW63r)[](https://github.com/yt-dlp/yt-dlp/commits)[](https://github.com/yt-dlp/yt-dlp/commits)-[](https://github.com/yt-dlp/yt-dlp/releases/latest)+[](https://github.com/yt-dlp/yt-dlp/releases/latest)[](https://pypi.org/project/yt-dlp)</div>@@ -1063,7 +1062,7 @@ You can change the criteria for being considered the `best` by using `-S` (`--fo- `lang`: Language preference as given by the extractor- `quality`: The quality of the format as given by the extractor- `source`: Preference of the source as given by the extractor- - `proto`: Protocol used for download (`https`/`ftps` > `http`/`ftp` > `m3u8-native` > `m3u8` > `http-dash-segments` > other > `mms`/`rtsp` > unknown > `f4f`/`f4m`)+ - `proto`: Protocol used for download (`https`/`ftps` > `http`/`ftp` > `m3u8_native` > `m3u8` > `http_dash_segments` > other > `mms`/`rtsp` > unknown > `f4f`/`f4m`)- `vcodec`: Video Codec (`av01` > `vp9.2` > `vp9` > `h265` > `h264` > `vp8` > `h263` > `theora` > other > unknown)- `acodec`: Audio Codec (`opus` > `vorbis` > `aac` > `mp4a` > `mp3` > `ac3` > `dts` > other > unknown)- `codec`: Equivalent to `vcodec,acodec`diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.pyindex 6ae36638be..b910a26a88 100644--- a/test/test_YoutubeDL.py+++ b/test/test_YoutubeDL.py@@ -311,8 +311,8 @@ class TestFormatSelection(unittest.TestCase):self.assertRaises(ExtractorError, ydl.process_ie_result, info_dict.copy())def test_youtube_format_selection(self):+ # FIXME: Rewrite in accordance with the new format sorting optionsreturn- # disabled for now - this needs some changesorder = ['38', '37', '46', '22', '45', '35', '44', '18', '34', '43', '6', '5', '17', '36', '13',diff --git a/yt_dlp/extractor/crunchyroll.py b/yt_dlp/extractor/crunchyroll.pyindex d670c12c1e..d6c3f4f93c 100644--- a/yt_dlp/extractor/crunchyroll.py+++ b/yt_dlp/extractor/crunchyroll.py@@ -428,7 +428,7 @@ Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Textr'<div class="showmedia-trailer-notice">(.+?)</div>',webpage, 'trailer-notice', default='')if note_m:- raise ExtractorError(note_m)+ raise ExtractorError(note_m, expected=True)mobj = re.search(r'Page\.messaging_box_controller\.addItems\(\[(?P<msg>{.+?})\]\)', webpage)if mobj:diff --git a/yt_dlp/extractor/viu.py b/yt_dlp/extractor/viu.pyindex 92422f1978..3292d553e8 100644--- a/yt_dlp/extractor/viu.py+++ b/yt_dlp/extractor/viu.py@@ -14,6 +14,7 @@ from ..compat import (from ..utils import (ExtractorError,int_or_none,+ try_get,smuggle_url,unsmuggle_url,)@@ -344,7 +345,7 @@ class ViuOTTIE(InfoExtractor):video_id, 'Downloading stream info', query=query, headers=headers)try:stream_data = self._detect_error(stream_data)['stream']- except (ExtractorError, KeyError): # if still not working, give up+ except (ExtractorError, KeyError): # if still not working, give upself._raise_login_required()if not stream_data: