mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-17 15:02:34 +02:00
Fixed: Added x/h265 to renamer.
This commit is contained in:
parent
aae3970865
commit
724981db57
@ -446,8 +446,7 @@ private void AddMediaInfoTokens(Dictionary<String, Func<TokenMatch, String>> tok
|
|||||||
switch (episodeFile.MediaInfo.VideoCodec)
|
switch (episodeFile.MediaInfo.VideoCodec)
|
||||||
{
|
{
|
||||||
case "AVC":
|
case "AVC":
|
||||||
// TODO: What to do if the original SceneName is hashed?
|
if (episodeFile.SceneName.IsNotNullOrWhiteSpace() && Path.GetFileNameWithoutExtension(episodeFile.SceneName).Contains("h264"))
|
||||||
if (!episodeFile.SceneName.IsNullOrWhiteSpace() && Path.GetFileNameWithoutExtension(episodeFile.SceneName).Contains("h264"))
|
|
||||||
{
|
{
|
||||||
mediaInfoVideo = "h264";
|
mediaInfoVideo = "h264";
|
||||||
}
|
}
|
||||||
@ -457,6 +456,17 @@ private void AddMediaInfoTokens(Dictionary<String, Func<TokenMatch, String>> tok
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "V_MPEGH/ISO/HEVC":
|
||||||
|
if (episodeFile.SceneName.IsNotNullOrWhiteSpace() && Path.GetFileNameWithoutExtension(episodeFile.SceneName).Contains("h265"))
|
||||||
|
{
|
||||||
|
mediaInfoVideo = "h265";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mediaInfoVideo = "x265";
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
mediaInfoVideo = episodeFile.MediaInfo.VideoCodec;
|
mediaInfoVideo = episodeFile.MediaInfo.VideoCodec;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user