Skip to content

Commit

Permalink
Merge pull request #5 from KJ-Cox/master
Browse files Browse the repository at this point in the history
Dynamic value for ClearArt on video Pause Screen
  • Loading branch information
andrewjswan committed May 13, 2024
2 parents efa61b9 + 1ad7dc9 commit bdcc1c5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions FanartHandler/FanartSelectedOther.cs
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,13 @@ public void AddSelectedSeriesPropertys(string SelectedItem)
{
return;
}

// If imdb number then it's a movie playing
if (SelectedItem.StartsWith("tt") && char.IsDigit(SelectedItem.Last()))
{
ClearSelectedSeriesPropertys();
return;
}

string strTVDBID = Utils.GetProperty("#Trakt.Show.TvdbId");
if (string.IsNullOrEmpty(strTVDBID))
Expand Down
8 changes: 8 additions & 0 deletions FanartHandler/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2690,6 +2690,14 @@ public static void GetSelectedItem(ref string SelectedItem, ref string SelectedA
}
}
}
else if (iActiveWindow == 2005) // VideoFullScreen
{
SelectedItem = Utils.GetProperty("#Play.Current.IMDBNumber"); // Movies
if (string.IsNullOrEmpty(SelectedItem))
{
SelectedItem = Utils.GetProperty("#Play.Current.Title"); // TVSeries
}
}
else
{
SelectedItem = Utils.GetProperty("#selecteditem");
Expand Down

0 comments on commit bdcc1c5

Please sign in to comment.