]> jfr.im git - yt-dlp.git/commitdiff
[cleanup] Fix linter and some typos
authorpukkandan <redacted>
Sat, 3 Jul 2021 16:23:13 +0000 (21:53 +0530)
committerpukkandan <redacted>
Sat, 3 Jul 2021 21:34:25 +0000 (03:04 +0530)
Related: https://github.com/ytdl-org/youtube-dl/pull/29398

.github/ISSUE_TEMPLATE/1_broken_site.md
.github/ISSUE_TEMPLATE/4_bug_report.md
.github/ISSUE_TEMPLATE_tmpl/1_broken_site.md
.github/ISSUE_TEMPLATE_tmpl/4_bug_report.md
CONTRIBUTING.md
Changelog.md
README.md
yt_dlp/YoutubeDL.py
yt_dlp/extractor/mtv.py

index f60f287b013c6d1d45732a27f8064219dcfc330d..8b458517e6e6cb7164f107161b35c0daafce6a83 100644 (file)
@@ -42,7 +42,7 @@ ## Verbose log
 Add the `-v` flag to your command line you run yt-dlp with (`yt-dlp -v <your command line>`), copy the WHOLE output and insert it below. It should look similar to this:
  [debug] System config: []
  [debug] User config: []
- [debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
+ [debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKc']
  [debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
  [debug] yt-dlp version 2021.06.23
  [debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2
index 25452a0a106da6e925adedf91e5d3418e364559b..bf636c7cb2ab642b4a411cce3e3ea0f1217e78a8 100644 (file)
@@ -44,7 +44,7 @@ ## Verbose log
 Add the `-v` flag to your command line you run yt-dlp with (`yt-dlp -v <your command line>`), copy the WHOLE output and insert it below. It should look similar to this:
  [debug] System config: []
  [debug] User config: []
- [debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
+ [debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKc']
  [debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
  [debug] yt-dlp version 2021.06.23
  [debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2
index 9d346d162294e7af683d891661e6e8c5a38ec218..6da13a7b504dd4c512107974ab6ce4015f2c6bef 100644 (file)
@@ -42,7 +42,7 @@ ## Verbose log
 Add the `-v` flag to your command line you run yt-dlp with (`yt-dlp -v <your command line>`), copy the WHOLE output and insert it below. It should look similar to this:
  [debug] System config: []
  [debug] User config: []
- [debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
+ [debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKc']
  [debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
  [debug] yt-dlp version %(version)s
  [debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2
index 043489941dc16c308debb3a5f234f1306b483bb9..af1774462419ef33422e0ba3317859a239b5690d 100644 (file)
@@ -44,7 +44,7 @@ ## Verbose log
 Add the `-v` flag to your command line you run yt-dlp with (`yt-dlp -v <your command line>`), copy the WHOLE output and insert it below. It should look similar to this:
  [debug] System config: []
  [debug] User config: []
- [debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
+ [debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKc']
  [debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
  [debug] yt-dlp version %(version)s
  [debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2
index 58ab3a4b8947d5dbadf5f8be1e4bb0868868afec..ef18bb4bc8ccc0e03dcd7b678fbfa40f09f1ae85 100644 (file)
@@ -3,7 +3,7 @@
 $ youtube-dl -v <your command line>
 [debug] System config: []
 [debug] User config: []
-[debug] Command-line args: [u'-v', u'https://www.youtube.com/watch?v=BaW_jenozKcj']
+[debug] Command-line args: [u'-v', u'https://www.youtube.com/watch?v=BaW_jenozKc']
 [debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
 [debug] youtube-dl version 2015.12.06
 [debug] Git HEAD: 135392e
index 90180927a97d2a06c9ff612bf4921ef6f46a5ead..147b421a773167b4465af8ae65508f440e385bef 100644 (file)
@@ -24,7 +24,7 @@ ### 2021.06.23
 * Merge youtube-dl: Upto [commit/379f52a](https://github.com/ytdl-org/youtube-dl/commit/379f52a4954013767219d25099cce9e0f9401961)
 * **Add option `--throttled-rate`** below which video data is re-extracted
 * [fragment] **Merge during download for `-N`**, and refactor `hls`/`dash`
-* [websockets] Add `WebSocketFragmentFD`by [nao20010128nao](https://github.com/nao20010128nao), [pukkandan](https://github.com/pukkandan)
+* [websockets] Add `WebSocketFragmentFD` by [nao20010128nao](https://github.com/nao20010128nao), [pukkandan](https://github.com/pukkandan)
 * Allow `images` formats in addition to video/audio
 * [downloader/mhtml] Add new downloader for slideshows/storyboards by [fstirlitz](https://github.com/fstirlitz)
 * [youtube] Temporary **fix for age-gate**
index 52f85909a40cd163ab67fb7d8eda08b7e650603b..086e94366fcc6dc6b6cc486b192f455a8adc6cae 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1015,7 +1015,7 @@ # OUTPUT TEMPLATE
 
 Each aforementioned sequence when referenced in an output template will be replaced by the actual value corresponding to the sequence name. Note that some of the sequences are not guaranteed to be present since they depend on the metadata obtained by a particular extractor. Such sequences will be replaced with placeholder value provided with `--output-na-placeholder` (`NA` by default).
 
-For example for `-o %(title)s-%(id)s.%(ext)s` and an mp4 video with title `yt-dlp test video` and id `BaW_jenozKcj`, this will result in a `yt-dlp test video-BaW_jenozKcj.mp4` file created in the current directory.
+For example for `-o %(title)s-%(id)s.%(ext)s` and an mp4 video with title `yt-dlp test video` and id `BaW_jenozKc`, this will result in a `yt-dlp test video-BaW_jenozKc.mp4` file created in the current directory.
 
 For numeric sequences you can use numeric related formatting, for example, `%(view_count)05d` will result in a string with view count padded with zeros up to 5 characters, like in `00042`.
 
@@ -1327,13 +1327,15 @@ # Set "comment" field in video metadata using description instead of webpage_url
 
 # EXTRACTOR ARGUMENTS
 
-Some extractors accept additional arguments which can be passed using `--extractor-args KEY:ARGS`. `ARGS` is a `;` (colon) seperated string of `ARG=VAL1,VAL2`. Eg: `--extractor-args youtube:skip=dash,hls`
+Some extractors accept additional arguments which can be passed using `--extractor-args KEY:ARGS`. `ARGS` is a `;` (semicolon) seperated string of `ARG=VAL1,VAL2`. Eg: `--extractor-args youtube:skip=dash,hls`
 
 The following extractors use this feature:
 * **youtube**
     * `skip`: `hls` or `dash` (or both) to skip download of the respective manifests
-    * `player_client`: `web`(default) or `android` (force use the android client fallbacks for video extraction)
-    * `player_skip`: `configs`- skip requests if applicable for client configs and use defaults
+    * `player_client`: `web` (default) or `android` (force use the android client fallbacks for video extraction)
+    * `player_skip`: `configs` - skip requests if applicable for client configs and use defaults
+
+NOTE: These options may be changed/removed in the future without concern for backward compatibility
 
 # PLUGINS
 
index 87b339b9903e176d76d231c14ef9d08a96d81eb5..d1f6d2ed1c66a47876a2f27c9daa8da440f753ed 100644 (file)
@@ -3049,11 +3049,7 @@ def list_formats(self, info_dict):
         self.to_screen(
             '[info] Available formats for %s:' % info_dict['id'])
         self.to_stdout(render_table(
-                header_line,
-                table,
-                delim=new_format,
-                extraGap=(0 if new_format else 1),
-                hideEmpty=new_format))
+            header_line, table, delim=new_format, extraGap=(0 if new_format else 1), hideEmpty=new_format))
 
     def list_thumbnails(self, info_dict):
         thumbnails = list(info_dict.get('thumbnails'))
index 510f1439e5a7e618ff619a9a770db892f6edae03..303f71cf828ba21153d6a1f97dadd0bedbe53763 100644 (file)
@@ -249,6 +249,7 @@ def _get_videos_info_from_url(self, url, video_id, use_hls=True):
             if info:
                 entries.append(info)
 
+        # TODO: should be multi-video
         return self.playlist_result(
             entries, playlist_title=title, playlist_description=description)