fix: handle empty description for mutagen, #1124

This commit is contained in:
Simon 2026-02-28 17:46:39 +07:00
parent 2b316d1160
commit 7cb5c771ae
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 4 additions and 2 deletions

View File

@ -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()