forked from kenzuya/unshackle
fix(chapters): drop duplicate timestamps in the EXAMPLE template and docs
Log a get_chapters failure at debug level on the API tracks route.
This commit is contained in:
@@ -4290,7 +4290,8 @@ async def session_tracks_handler(
|
||||
try:
|
||||
chapters = await asyncio.to_thread(service_instance.get_chapters, title)
|
||||
session.chapters_by_title[str(title_id)] = chapters if chapters else []
|
||||
except (Exception, SystemExit):
|
||||
except (Exception, SystemExit) as e:
|
||||
log.debug("get_chapters failed for title %s: %s", title_id, e)
|
||||
session.chapters_by_title[str(title_id)] = []
|
||||
|
||||
snapshot = await asyncio.to_thread(capture, tracks, config.serve.get("compression_level", 1))
|
||||
|
||||
Reference in New Issue
Block a user