mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 15:26:06 +00:00
add error handling
This commit is contained in:
parent
bf07a47132
commit
af4473e27f
3 changed files with 35 additions and 31 deletions
|
|
@ -2011,12 +2011,11 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
var vn = string.Empty;
|
||||
|
||||
var hasArt = !string.IsNullOrWhiteSpace(state.AlbumCoverPath);
|
||||
hasArt = false;
|
||||
|
||||
if (hasArt)
|
||||
{
|
||||
albumCoverInput = " -i \"" + state.AlbumCoverPath + "\"";
|
||||
mapArgs = " -map 0:a -map 1:v -c:v copy";
|
||||
mapArgs = " -map 0:a -map 1:v -c:1:v copy";
|
||||
metadata = " -metadata:s:v title=\"Album cover\" -metadata:s:v comment=\"Cover(Front)\"";
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue