Skip to content
Snippets Groups Projects
Commit 5e53132a authored by David Trattnig's avatar David Trattnig
Browse files

refactor: remove nanoseconds conversion

parent 2f6307cc
No related branches found
No related tags found
1 merge request!35ORM-less scheduling
......@@ -252,13 +252,7 @@ class ApiFetcher(threading.Thread):
title=entry.file.metadata.title,
)
# Convert nanoseconds to seconds
# TODO remove after tank is using seconds for duration
duration: float = None
if entry.duration:
duration = SU.nano_to_seconds(entry.duration)
item = PlaylistItem(entry.uri, duration, 100, metadata)
item = PlaylistItem(entry.uri, entry.duration, 100, metadata)
# "Hidden Functionality" to feed engine with M3U playlists
# via Tank's "Stream" playlist item type
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment