Skip to content

Commit

Permalink
Update nag logic
Browse files Browse the repository at this point in the history
Update emby api
  • Loading branch information
bakes82 committed Jul 13, 2022
1 parent b25394c commit 488f2b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Emby.HEVCTranscodeKiller/Emby.HEVCTranscodeKiller.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="MediaBrowser.Server.Core" Version="4.7.1" />
<PackageReference Include="MediaBrowser.Server.Core" Version="4.7.3" />
<PackageReference Include="System.Memory" Version="4.5.5" />
</ItemGroup>

Expand Down
8 changes: 4 additions & 4 deletions Emby.HEVCTranscodeKiller/ServerEntryPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ public void Run()
/// <param name="e"></param>
private void PlaybackStart(object sender, PlaybackProgressEventArgs e)
{
if (Plugin.Instance.Configuration.EnableAudioTranscodeNags ||
Plugin.Instance.Configuration.EnableVideoTranscodeNags)
NagSessionHelper.AddSessionToList(e.Session.Id, Log, true);

Log.Info($"Kill Audio: {Plugin.Instance.Configuration.EnableKillingOfAudio}, Kill Video: {Plugin.Instance.Configuration.EnableKillingOfVideo}");
if (e.Session.TranscodingInfo != null)
{
if (Plugin.Instance.Configuration.EnableAudioTranscodeNags && e.Session.TranscodingInfo.IsAudioDirect == false||
Plugin.Instance.Configuration.EnableVideoTranscodeNags && e.Session.TranscodingInfo.IsVideoDirect == false)
NagSessionHelper.AddSessionToList(e.Session.Id, Log, true);

var mediaSourceItem = e.Session.FullNowPlayingItem.GetMediaSources(false, false, new LibraryOptions())
.SingleOrDefault(x => string.Equals(x.Id, e.MediaSourceId,
StringComparison.OrdinalIgnoreCase));
Expand Down

0 comments on commit 488f2b5

Please sign in to comment.