aboutsummaryrefslogtreecommitdiffstats
path: root/devscripts
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2023-06-21 09:21:20 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2023-06-21 09:21:20 +0530
commitad54c9130e793ce433bf9da334fa80df9f3aee58 (patch)
tree859a37aa6647ac90e619ba85aa5db58a0c733ae9 /devscripts
parentdb3ad8a67661d7b234a6954d9c6a4a9b1749f5eb (diff)
downloadhypervideo-pre-ad54c9130e793ce433bf9da334fa80df9f3aee58.tar.lz
hypervideo-pre-ad54c9130e793ce433bf9da334fa80df9f3aee58.tar.xz
hypervideo-pre-ad54c9130e793ce433bf9da334fa80df9f3aee58.zip
[cleanup] Misc
Closes #6288, Closes #7197, Closes #7265, Closes #7353, Closes #5773 Authored by: mikf, freezboltz, pukkandan
Diffstat (limited to 'devscripts')
-rw-r--r--devscripts/changelog_override.json27
-rw-r--r--devscripts/cli_to_api.py4
-rw-r--r--devscripts/make_changelog.py14
3 files changed, 36 insertions, 9 deletions
diff --git a/devscripts/changelog_override.json b/devscripts/changelog_override.json
index e5c9d1aa2..73225bdb9 100644
--- a/devscripts/changelog_override.json
+++ b/devscripts/changelog_override.json
@@ -8,5 +8,32 @@
"action": "add",
"when": "776d1c3f0c9b00399896dd2e40e78e9a43218109",
"short": "[priority] **YouTube throttling fixes!**"
+ },
+ {
+ "action": "remove",
+ "when": "2e023649ea4e11151545a34dc1360c114981a236"
+ },
+ {
+ "action": "add",
+ "when": "01aba2519a0884ef17d5f85608dbd2a455577147",
+ "short": "[priority] YouTube: Improved throttling and signature fixes"
+ },
+ {
+ "action": "change",
+ "when": "c86e433c35fe5da6cb29f3539eef97497f84ed38",
+ "short": "[extractor/niconico:series] Fix extraction (#6898)",
+ "authors": ["sqrtNOT"]
+ },
+ {
+ "action": "change",
+ "when": "69a40e4a7f6caa5662527ebd2f3c4e8aa02857a2",
+ "short": "[extractor/youtube:music_search_url] Extract title (#7102)",
+ "authors": ["kangalio"]
+ },
+ {
+ "action": "change",
+ "when": "8417f26b8a819cd7ffcd4e000ca3e45033e670fb",
+ "short": "Add option `--color` (#6904)",
+ "authors": ["Grub4K"]
}
]
diff --git a/devscripts/cli_to_api.py b/devscripts/cli_to_api.py
index b8b7cbcf1..2aa51eb6e 100644
--- a/devscripts/cli_to_api.py
+++ b/devscripts/cli_to_api.py
@@ -19,11 +19,11 @@ def parse_patched_options(opts):
'extract_flat': False,
'concat_playlist': 'never',
})
- yt_dlp.options.__dict__['create_parser'] = lambda: patched_parser
+ yt_dlp.options.create_parser = lambda: patched_parser
try:
return yt_dlp.parse_options(opts)
finally:
- yt_dlp.options.__dict__['create_parser'] = create_parser
+ yt_dlp.options.create_parser = create_parser
default_opts = parse_patched_options([]).ydl_opts
diff --git a/devscripts/make_changelog.py b/devscripts/make_changelog.py
index 1b7e251ee..2fcdc06d7 100644
--- a/devscripts/make_changelog.py
+++ b/devscripts/make_changelog.py
@@ -44,7 +44,7 @@ class CommitGroup(enum.Enum):
return {
name: group
for group, names in {
- cls.PRIORITY: {''},
+ cls.PRIORITY: {'priority'},
cls.CORE: {
'aes',
'cache',
@@ -68,7 +68,7 @@ class CommitGroup(enum.Enum):
'misc',
'test',
},
- cls.EXTRACTOR: {'extractor', 'extractors'},
+ cls.EXTRACTOR: {'extractor'},
cls.DOWNLOADER: {'downloader'},
cls.POSTPROCESSOR: {'postprocessor'},
}.items()
@@ -323,7 +323,7 @@ class CommitRange:
logger.debug(f'Ignored {when!r}, not in commits {self._start!r}')
continue
- override_hash = override.get('hash')
+ override_hash = override.get('hash') or when
if override['action'] == 'add':
commit = Commit(override.get('hash'), override['short'], override.get('authors') or [])
logger.info(f'ADD {commit}')
@@ -337,7 +337,7 @@ class CommitRange:
elif override['action'] == 'change':
if override_hash not in self._commits:
continue
- commit = Commit(override_hash, override['short'], override['authors'])
+ commit = Commit(override_hash, override['short'], override.get('authors') or [])
logger.info(f'CHANGE {self._commits[commit.hash]} -> {commit}')
self._commits[commit.hash] = commit
@@ -348,7 +348,7 @@ class CommitRange:
for commit in self:
upstream_re = self.UPSTREAM_MERGE_RE.search(commit.short)
if upstream_re:
- commit.short = f'[upstream] Merged with youtube-dl {upstream_re.group(1)}'
+ commit.short = f'[core/upstream] Merged with youtube-dl {upstream_re.group(1)}'
match = self.MESSAGE_RE.fullmatch(commit.short)
if not match:
@@ -394,10 +394,10 @@ class CommitRange:
return CommitGroup.CORE, None, ()
prefix, _, details = prefix.partition('/')
- prefix = prefix.strip().lower()
+ prefix = prefix.strip()
details = details.strip()
- group = CommitGroup.get(prefix)
+ group = CommitGroup.get(prefix.lower())
if group is CommitGroup.PRIORITY:
prefix, _, details = details.partition('/')