Skip to content

Commit

Permalink
title for seasons
Browse files Browse the repository at this point in the history
  • Loading branch information
oonqt committed Apr 16, 2020
1 parent 63fd5e3 commit 920c455
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Emby.Notifications.Discord/Notifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
using MediaBrowser.Model.IO;
using System.IO;
using System.Timers;
using MediaBrowser.Controller.Providers;

namespace Emby.Notifications.Discord
{
Expand Down Expand Up @@ -150,6 +149,8 @@ private void CheckForMetadata(object sender, ElapsedEventArgs eventArgs)
if (LibraryType == "Episode")
{
titleText = $"{item.Parent.Parent.Name} {(item.ParentIndexNumber != null ? $"S{formatIndex(item.ParentIndexNumber)}" : "")}{(item.IndexNumber != null ? $"E{formatIndex(item.IndexNumber)}" : "")} {item.Name}";
} else if (LibraryType == "Season") {
titleText = $"{item.Parent.Parent.Name} {item.Name}";
}
else
{
Expand Down

0 comments on commit 920c455

Please sign in to comment.