aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/common.py
diff options
context:
space:
mode:
authorsepro <4618135+seproDev@users.noreply.github.com>2023-11-26 03:12:05 +0100
committerGitHub <noreply@github.com>2023-11-26 02:12:05 +0000
commit1732eccc0a40256e076bf0435a29f0f1d8419280 (patch)
tree744fa8377e8c7a9ba85b7ec70b6cc26ed5bc867e /yt_dlp/extractor/common.py
parenta0b19d319a6ce8b7059318fa17a34b144fde1785 (diff)
[core] Parse `release_year` from `release_date` (#8524)
Closes #7263 Authored by: seproDev
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r--yt_dlp/extractor/common.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index 507ef34cf..b179f4038 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -286,6 +286,9 @@ class InfoExtractor:
If it is not clear whether to use timestamp or this, use the former
release_date: The date (YYYYMMDD) when the video was released in UTC.
If not explicitly set, calculated from release_timestamp
+ release_year: Year (YYYY) as integer when the video or album was released.
+ To be used if no exact release date is known.
+ If not explicitly set, calculated from release_date.
modified_timestamp: UNIX timestamp of the moment the video was last modified.
modified_date: The date (YYYYMMDD) when the video was last modified in UTC.
If not explicitly set, calculated from modified_timestamp
@@ -427,7 +430,6 @@ class InfoExtractor:
and compilations).
disc_number: Number of the disc or other physical medium the track belongs to,
as an integer.
- release_year: Year (YYYY) when the album was released.
composer: Composer of the piece
The following fields should only be set for clips that should be cut from the original video: