mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-16 20:31:25 +01:00
Compare commits
No commits in common. "482a971bc2decdb72d2f3dea949a82a5baf4219d" and "2598790093e47121a21937e527ecfb91393f59d7" have entirely different histories.
482a971bc2
...
2598790093
|
@ -1762,11 +1762,11 @@ Metadata fields | From
|
|||
`description`, `synopsis` | `description`
|
||||
`purl`, `comment` | `webpage_url`
|
||||
`track` | `track_number`
|
||||
`artist` | `artist`, `creator`, `uploader` or `uploader_id`
|
||||
`composer` | `composer`
|
||||
`genre` | `genre`
|
||||
`artist` | `artists`, `creator`, `uploader` or `uploader_id`
|
||||
`composer` | `composers`
|
||||
`genre` | `genres`
|
||||
`album` | `album`
|
||||
`album_artist` | `album_artist`
|
||||
`album_artist` | `album_artists`
|
||||
`disc` | `disc_number`
|
||||
`show` | `series`
|
||||
`season_number` | `season_number`
|
||||
|
|
|
@ -24,7 +24,6 @@ import traceback
|
|||
import unicodedata
|
||||
|
||||
from .cache import Cache
|
||||
|
||||
from .compat import functools, urllib # isort: split
|
||||
from .compat import compat_os_name, compat_shlex_quote, urllib_req_to_req
|
||||
from .cookies import LenientSimpleCookie, load_cookies
|
||||
|
@ -2649,10 +2648,8 @@ class YoutubeDL:
|
|||
'genre': 'genres',
|
||||
}
|
||||
for deprecated_field, new_field in deprecated_multivalue_fields.items():
|
||||
if deprecated_value := info_dict.get(deprecated_field):
|
||||
info_dict[new_field] = re.split(r', ?', deprecated_value)
|
||||
elif new_value := info_dict.get(new_field):
|
||||
info_dict[deprecated_field] = new_value.join(', ')
|
||||
if info_dict.get(deprecated_field):
|
||||
info_dict[new_field] = re.split(r', ?', info_dict[deprecated_field])
|
||||
|
||||
def _raise_pending_errors(self, info):
|
||||
err = info.pop('__pending_error', None)
|
||||
|
|
|
@ -755,11 +755,11 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
|
|||
add(('description', 'synopsis'), 'description')
|
||||
add(('purl', 'comment'), 'webpage_url')
|
||||
add('track', 'track_number')
|
||||
add('artist', ('artist', 'creator', 'uploader', 'uploader_id'))
|
||||
add('composer', 'composer')
|
||||
add('genre', 'genre')
|
||||
add('artist', ('artists', 'creator', 'uploader', 'uploader_id'))
|
||||
add('composer', 'composers')
|
||||
add('genre', 'genres')
|
||||
add('album')
|
||||
add('album_artist', 'album_artist')
|
||||
add('album_artist', 'album_artists')
|
||||
add('disc', 'disc_number')
|
||||
add('show', 'series')
|
||||
add('season_number')
|
||||
|
|
Loading…
Reference in New Issue
Block a user