diff options
author | garret1317 <garret@airmail.cc> | 2024-11-22 11:45:41 +0000 |
---|---|---|
committer | garret1317 <garret@airmail.cc> | 2024-11-22 11:49:50 +0000 |
commit | dc2c2e2413ce4c698dae3141f94a9fdd3f9207c0 (patch) | |
tree | 8eddeddb47bcef5cacc4e814e70fd3d0c4ff80a4 /yt_dlp_plugins/extractor | |
parent | 8805fd0326aff58332c626107625e80a597b6e45 (diff) | |
download | yt-dlp-rajiko-dc2c2e2413ce4c698dae3141f94a9fdd3f9207c0.tar.gz yt-dlp-rajiko-dc2c2e2413ce4c698dae3141f94a9fdd3f9207c0.tar.bz2 yt-dlp-rajiko-dc2c2e2413ce4c698dae3141f94a9fdd3f9207c0.zip |
fix broken time calculation in PersonsIE
the .broadcast_day_start() was trying to run on the datetime.timedelta,
not the RadikoTime that we calculate
so it just
ERROR: 'datetime.timedelta' object has no attribute 'broadcast_day_start'
Diffstat (limited to 'yt_dlp_plugins/extractor')
-rw-r--r-- | yt_dlp_plugins/extractor/radiko.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py index 6b8a4c3..c6cea37 100644 --- a/yt_dlp_plugins/extractor/radiko.py +++ b/yt_dlp_plugins/extractor/radiko.py @@ -705,7 +705,7 @@ class RadikoPersonIE(InfoExtractor): now = rtime.RadikoTime.now(tz=rtime.JST) - min_start = now - datetime.timedelta(days=30).broadcast_day_start() + min_start = (now - datetime.timedelta(days=30)).broadcast_day_start() # we set the earliest time as the earliest we can get (or at least, that it's possible to get), # so, the start of the broadcast day 30 days ago # that way we can get everything we can actually download, including stuff that aired at eg "26:00" |