From f963c556106c7efa4538bcf902ec198d763ee51b Mon Sep 17 00:00:00 2001 From: tcely Date: Mon, 10 Feb 2025 08:52:09 -0500 Subject: [PATCH] Limit the `title` string to fit in the database column --- tubesync/sync/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubesync/sync/tasks.py b/tubesync/sync/tasks.py index 6f6bd800..d44eee0e 100644 --- a/tubesync/sync/tasks.py +++ b/tubesync/sync/tasks.py @@ -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: