Limit the title string to fit in the database column
This commit is contained in:
1 parent
488294475a
commit
f963c55610
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user