Limit the title string to fit in the database column

This commit is contained in:
tcely authored and GitHub committed 2025-02-10 08:52:09 -05:00
1 parent 488294475a
commit f963c55610
1 file changed
+1 -1
+1 -1
View File
@@ -215,7 +215,7 @@ def index_source_task(source_id):
media = Media(key=key)
media.source = source
media.duration = float(video.get(fields('duration', media), 0)) or None
media.title = str(video.get(fields('title', media), ''))
media.title = str(video.get(fields('title', media), ''))[:200]
timestamp = video.get(fields('timestamp', media), None)
if timestamp is not None:
try: