1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 00:25:08 +00:00

[cleanup Fix some typos

* `MetadataFromFieldPP` is not deprecated!
* Wrong args to `MetadataFromFieldPP`
* Some mistakes in change log
* Type in build.yml causing release tag to be placed on wrong commit
This commit is contained in:
pukkandan
2021-12-01 10:12:25 +05:30
parent 814dfb7e25
commit a804f6d89c
3 changed files with 9 additions and 12 deletions

View File

@ -96,7 +96,6 @@ class MetadataParserPP(PostProcessor):
return f
# Deprecated
class MetadataFromFieldPP(MetadataParserPP):
@classmethod
def to_action(cls, f):
@ -106,19 +105,17 @@ class MetadataFromFieldPP(MetadataParserPP):
return (
cls.Actions.INTERPRET,
match.group('in').replace('\\:', ':'),
match.group('out'))
match.group('out'),
)
def __init__(self, downloader, formats):
super().__init__(self, downloader, [self.to_action(f) for f in formats])
self.deprecation_warning(
'yt_dlp.postprocessor.MetadataFromFieldPP is deprecated '
'and may be removed in a future version. Use yt_dlp.postprocessor.MetadataParserPP instead')
super().__init__(downloader, [self.to_action(f) for f in formats])
# Deprecated
class MetadataFromTitlePP(MetadataParserPP):
def __init__(self, downloader, titleformat):
super().__init__(self, downloader, [(self.Actions.INTERPRET, 'title', titleformat)])
super().__init__(downloader, [(self.Actions.INTERPRET, 'title', titleformat)])
self.deprecation_warning(
'yt_dlp.postprocessor.MetadataFromTitlePP is deprecated '
'and may be removed in a future version. Use yt_dlp.postprocessor.MetadataParserPP instead')
'and may be removed in a future version. Use yt_dlp.postprocessor.MetadataFromFieldPP instead')