Browse Source

still trying to track down the live radio duration bug

main
fluffy 5 months ago
parent
commit
f0d03f92c1
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      beatbot.py

+ 1
- 0
beatbot.py View File

@@ -42,6 +42,7 @@ def format_details(yt_id, snippet):
else:
duration = ''
details = youtube.get_details(yt_id)
LOGGER.info("details: %s", details)
if details and 'duration' in details:
delta = isodate.parse_duration(details['duration'])
hours, rem = divmod(delta.seconds, 3600)


Loading…
Cancel
Save