[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
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698
3 changed files with 9 additions and 12 deletions

View file

@ -119,7 +119,7 @@ jobs:
with: with:
tag_name: ${{ steps.bump_version.outputs.ytdlp_version }} tag_name: ${{ steps.bump_version.outputs.ytdlp_version }}
release_name: yt-dlp ${{ steps.bump_version.outputs.ytdlp_version }} release_name: yt-dlp ${{ steps.bump_version.outputs.ytdlp_version }}
commitish: ${{ steps.push_update.outputs.head_sha }} commitish: ${{ steps.push_release.outputs.head_sha }}
body: | body: |
#### [A description of the various files]((https://github.com/yt-dlp/yt-dlp#release-files)) are in the README #### [A description of the various files]((https://github.com/yt-dlp/yt-dlp#release-files)) are in the README

View file

@ -38,7 +38,7 @@
* Ensure directory exists when checking formats * Ensure directory exists when checking formats
* Ensure path for link files exists by [Zirro](https://github.com/Zirro) * Ensure path for link files exists by [Zirro](https://github.com/Zirro)
* Ensure same config file is not loaded multiple times * Ensure same config file is not loaded multiple times
* Fix 'postprocessor_hooks` * Fix `postprocessor_hooks`
* Fix `--break-on-archive` when pre-checking * Fix `--break-on-archive` when pre-checking
* Fix `--check-formats` for `mhtml` * Fix `--check-formats` for `mhtml`
* Fix `--load-info-json` of playlists with failed entries * Fix `--load-info-json` of playlists with failed entries
@ -110,10 +110,9 @@
* [youtube] Decrypt n-sig for URLs with `ratebypass` * [youtube] Decrypt n-sig for URLs with `ratebypass`
* [youtube] Minor improvement to format sorting * [youtube] Minor improvement to format sorting
* [cleanup] Add deprecation warnings * [cleanup] Add deprecation warnings
* [cleanup] Minor cleanup
* [cleanup] Misc cleanup
* [cleanup] Refactor `JSInterpreter._seperate` * [cleanup] Refactor `JSInterpreter._seperate`
* [Cleanup] Remove some unnecessary groups in regexes by [Ashish0804](https://github.com/Ashish0804) * [Cleanup] Remove some unnecessary groups in regexes by [Ashish0804](https://github.com/Ashish0804)
* [cleanup] Misc cleanup
### 2021.11.10.1 ### 2021.11.10.1
@ -1476,6 +1475,7 @@
**Note**: All uncredited changes above this point are authored by [pukkandan](https://github.com/pukkandan) **Note**: All uncredited changes above this point are authored by [pukkandan](https://github.com/pukkandan)
### Unreleased changes in [blackjack4494/yt-dlc](https://github.com/blackjack4494/yt-dlc)
* Updated to youtube-dl release 2020.11.26 by [pukkandan](https://github.com/pukkandan) * Updated to youtube-dl release 2020.11.26 by [pukkandan](https://github.com/pukkandan)
* Youtube improvements by [pukkandan](https://github.com/pukkandan) * Youtube improvements by [pukkandan](https://github.com/pukkandan)
* Implemented all Youtube Feeds (ytfav, ytwatchlater, ytsubs, ythistory, ytrec) and SearchURL * Implemented all Youtube Feeds (ytfav, ytwatchlater, ytsubs, ythistory, ytrec) and SearchURL

View file

@ -96,7 +96,6 @@ class MetadataParserPP(PostProcessor):
return f return f
# Deprecated
class MetadataFromFieldPP(MetadataParserPP): class MetadataFromFieldPP(MetadataParserPP):
@classmethod @classmethod
def to_action(cls, f): def to_action(cls, f):
@ -106,19 +105,17 @@ class MetadataFromFieldPP(MetadataParserPP):
return ( return (
cls.Actions.INTERPRET, cls.Actions.INTERPRET,
match.group('in').replace('\\:', ':'), match.group('in').replace('\\:', ':'),
match.group('out')) match.group('out'),
)
def __init__(self, downloader, formats): def __init__(self, downloader, formats):
super().__init__(self, downloader, [self.to_action(f) for f in formats]) super().__init__(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')
# Deprecated # Deprecated
class MetadataFromTitlePP(MetadataParserPP): class MetadataFromTitlePP(MetadataParserPP):
def __init__(self, downloader, titleformat): 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( self.deprecation_warning(
'yt_dlp.postprocessor.MetadataFromTitlePP is deprecated ' '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')