fix: resolve AttributeError when accessing sqlite3.Row in api_get_channel_videos
All checks were successful
Docker Build / build (push) Successful in 12s
All checks were successful
Docker Build / build (push) Successful in 12s
This commit is contained in:
parent
568601181d
commit
b7ca75b57e
1 changed files with 1 additions and 1 deletions
|
|
@ -1479,7 +1479,7 @@ def api_get_channel_videos():
|
||||||
"filename": Path(row['symlink']).name if row['symlink'] else meta.get('title'),
|
"filename": Path(row['symlink']).name if row['symlink'] else meta.get('title'),
|
||||||
"source_path": meta.get('filesystem_path'),
|
"source_path": meta.get('filesystem_path'),
|
||||||
"ta_source": meta.get('channel_name', channel_name),
|
"ta_source": meta.get('channel_name', channel_name),
|
||||||
"is_live": bool(row['is_live']) if 'is_live' in [k[0] for k in row.description] else False
|
"is_live": bool(row['is_live']) if 'is_live' in row.keys() else False
|
||||||
})
|
})
|
||||||
|
|
||||||
return jsonify(videos)
|
return jsonify(videos)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue