mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Fix:Download episode from rss feed with very long description #1893
This commit is contained in:
parent
fc6ff016a7
commit
9fc352a5a4
@ -137,6 +137,10 @@ module.exports.downloadPodcastEpisode = (podcastEpisodeDownload) => {
|
|||||||
|
|
||||||
for (const tag in taggings) {
|
for (const tag in taggings) {
|
||||||
if (taggings[tag]) {
|
if (taggings[tag]) {
|
||||||
|
if (taggings[tag].length > 10000) {
|
||||||
|
Logger.warn(`[ffmpegHelpers] Episode download tag "${tag}" is too long (${taggings[tag].length} characters) - trimming it down`)
|
||||||
|
taggings[tag] = taggings[tag].slice(0, 10000)
|
||||||
|
}
|
||||||
ffmpeg.addOption('-metadata', `${tag}=${taggings[tag]}`)
|
ffmpeg.addOption('-metadata', `${tag}=${taggings[tag]}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user