mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-06-16 15:55:08 +00:00
[ie/bandcamp:weekly] Fix metadata extraction (#16941)
Fix bug in a541df1ea5a593abf3ceaf94ed806e4b52a2c459 Authored by: bashonly
This commit is contained in:
parent
b05b408d10
commit
9055188250
@ -420,10 +420,11 @@ class BandcampWeeklyIE(BandcampIE): # XXX: Do not subclass from concrete IE
|
|||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '224',
|
'id': '224',
|
||||||
'ext': 'mp3',
|
'ext': 'mp3',
|
||||||
'title': 'Magic Moments, 2017-04-04',
|
'title': 'Bandcamp Weekly, 2017-04-04',
|
||||||
|
'episode': 'Magic Moments',
|
||||||
'description': 'md5:5d48150916e8e02d030623a48512c874',
|
'description': 'md5:5d48150916e8e02d030623a48512c874',
|
||||||
'thumbnail': 'https://f4.bcbits.com/img/9982549_0.jpg',
|
'thumbnail': 'https://f4.bcbits.com/img/9982549_0.jpg',
|
||||||
'series': 'Magic Moments',
|
'series': 'Bandcamp Weekly',
|
||||||
'episode_id': '224',
|
'episode_id': '224',
|
||||||
'release_timestamp': 1491264000,
|
'release_timestamp': 1491264000,
|
||||||
'release_date': '20170404',
|
'release_date': '20170404',
|
||||||
@ -450,12 +451,13 @@ class BandcampWeeklyIE(BandcampIE): # XXX: Do not subclass from concrete IE
|
|||||||
format_id = traverse_obj(stream_url, ({parse_qs}, 'enc', -1))
|
format_id = traverse_obj(stream_url, ({parse_qs}, 'enc', -1))
|
||||||
encoding, _, bitrate_str = (format_id or '').partition('-')
|
encoding, _, bitrate_str = (format_id or '').partition('-')
|
||||||
|
|
||||||
series_title = show_data.get('title')
|
series_title = show_data.get('subtitle')
|
||||||
release_timestamp = unified_timestamp(show_data.get('date'))
|
release_timestamp = unified_timestamp(show_data.get('date'))
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': show_id,
|
'id': show_id,
|
||||||
'episode_id': show_id,
|
'episode_id': show_id,
|
||||||
|
'episode': show_data.get('title'),
|
||||||
'title': join_nonempty(series_title, strftime_or_none(release_timestamp, '%Y-%m-%d'), delim=', '),
|
'title': join_nonempty(series_title, strftime_or_none(release_timestamp, '%Y-%m-%d'), delim=', '),
|
||||||
'series': series_title,
|
'series': series_title,
|
||||||
'thumbnail': format_field(show_data, 'imageId', 'https://f4.bcbits.com/img/%s_0.jpg', default=None),
|
'thumbnail': format_field(show_data, 'imageId', 'https://f4.bcbits.com/img/%s_0.jpg', default=None),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user