From 7cb5c771ae1d7991c3f70dcd912be4355a9453ca Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 28 Feb 2026 17:46:39 +0700 Subject: [PATCH] fix: handle empty description for mutagen, #1124 --- backend/video/src/index.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/video/src/index.py b/backend/video/src/index.py index 949250df..00250d17 100644 --- a/backend/video/src/index.py +++ b/backend/video/src/index.py @@ -469,8 +469,10 @@ class YoutubeVideo(YouTubeItem, YoutubeSubtitle): video = MP4(file_path) video["\xa9nam"] = [title] # title video["\xa9ART"] = [artist] # artist - video["desc"] = [description] # description - video["ldes"] = [description] # synopsis + if description: + video["desc"] = [description] # description + video["ldes"] = [description] # synopsis + video["----:com.tubearchivist:ta"] = [to_embed.encode("utf-8")] video.save()