mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-10-20 17:28:42 +00:00
[core] Parse release_year
from release_date
(#8524)
Closes #7263 Authored by: seproDev
This commit is contained in:
@@ -24,7 +24,6 @@ class MonstercatIE(InfoExtractor):
|
||||
'title': 'The Secret Language of Trees',
|
||||
'id': '742779548009',
|
||||
'thumbnail': 'https://www.monstercat.com/release/742779548009/cover',
|
||||
'release_year': 2023,
|
||||
'release_date': '20230711',
|
||||
'album': 'The Secret Language of Trees',
|
||||
'album_artist': 'BT',
|
||||
@@ -71,7 +70,6 @@ class MonstercatIE(InfoExtractor):
|
||||
'thumbnail': f'https://www.monstercat.com/release/{url_id}/cover',
|
||||
'album_artist': try_call(
|
||||
lambda: get_element_by_class('h-normal text-uppercase mb-desktop-medium mb-smallish', html)),
|
||||
'release_year': int_or_none(date[:4]) if date else None,
|
||||
'release_date': date,
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user