mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 15:38:19 -07:00
Subtitle Fix
Added fix for subtitles per https://discordapp.com/channels/623392507828371476/626268797472604160/695001638628360212 Fixes error: ` Stream map '0:s' matches no streams. To ignore this, add a trailing '?' to the map. `
This commit is contained in:
parent
74c5b19251
commit
06e28fa832
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ function plugin(file) {
|
|||
//mitigate errors due to embeded pictures
|
||||
try {
|
||||
if ((file.ffProbeData.streams[i].codec_name.toLowerCase() == "png" || file.ffProbeData.streams[i].codec_name.toLowerCase() == "bmp" || file.ffProbeData.streams[i].codec_name.toLowerCase() == "mjpeg") && file.ffProbeData.streams[i].codec_type.toLowerCase() == "video" ) {
|
||||
map = `-map 0:v:0 -map 0:a -map 0:s`
|
||||
map = `-map 0:v:0 -map 0:a -map 0:s?`
|
||||
}
|
||||
}
|
||||
catch (err) { }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue