Start filling out content urls

This commit is contained in:
2023-01-09 00:29:55 -05:00
parent 657b194dc7
commit 28bd9ad504
9 changed files with 104 additions and 15 deletions

View File

@ -0,0 +1,7 @@
def convert_to_seconds(run_time: str) -> int:
"""Jellyfin sends run time as 00:00:00 string. We want the run time to
actually be in seconds so we'll convert it"""
if ":" in run_time:
run_time_list = run_time.split(":")
run_time = (int(run_time_list[1]) * 60) + int(run_time_list[2])
return int(run_time)