diff options
author | garret <garret@airmail.cc> | 2023-11-10 19:10:24 +0000 |
---|---|---|
committer | garret <garret@airmail.cc> | 2023-11-10 19:10:34 +0000 |
commit | 9d23a683e95709ca3e709e5dd8c29a5a091f4145 (patch) | |
tree | 01f2b7bd150b155b5ab5024d38ce2a25844dbaf7 /yt_dlp_plugins/extractor/radiko.py | |
parent | ef54501b5111981b3d04f804c275404b690064af (diff) | |
download | yt-dlp-rajiko-9d23a683e95709ca3e709e5dd8c29a5a091f4145.tar.gz yt-dlp-rajiko-9d23a683e95709ca3e709e5dd8c29a5a091f4145.tar.bz2 yt-dlp-rajiko-9d23a683e95709ca3e709e5dd8c29a5a091f4145.zip |
make time classes inherit from datetime.datetime
so now it's just datetime.datetime with custom input and a few new funcs
instead of actually having a datetime.datetime internally and jankily
kind-of-exposing it
doesn't really affect things currently, but it makes something i want to
do possible (and it's generally just the better way of doing it)
Co-Authored-By: 9382 <omnomaidan@gmail.com>
Diffstat (limited to 'yt_dlp_plugins/extractor/radiko.py')
-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 0f44a7b..8ab8cad 100644 --- a/yt_dlp_plugins/extractor/radiko.py +++ b/yt_dlp_plugins/extractor/radiko.py @@ -778,7 +778,7 @@ class RadikoTimeFreeIE(_RadikoBaseIE): artist = traverse_obj(track, ("artist", "name")) or track.get("artist_name") chapters.append({ "title": join_nonempty(artist, track.get("title"), delim=" - "), - "start_time": (datetime.datetime.fromisoformat(track.get("displayed_start_time")) - start.datetime).total_seconds(), + "start_time": (datetime.datetime.fromisoformat(track.get("displayed_start_time")) - start).total_seconds(), }) return chapters |