Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
fix: unhashed themes will be re-added (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Dec 20, 2023
1 parent 323a4e2 commit 99d6720
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Jellyfin.Plugin.Themerr/ThemerrManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,11 @@ public void ProcessMovieTheme(Movie movie)

var youtubeThemeUrl = GetYoutubeThemeUrl(themerrDbUrl, movieTitle);

if (string.IsNullOrEmpty(youtubeThemeUrl) || youtubeThemeUrl == existingYoutubeThemeUrl)
// skip if no youtube theme url in ThemerrDB or
// if the youtube themes match AND the theme_md5 is unknown
if (string.IsNullOrEmpty(youtubeThemeUrl) ||
(youtubeThemeUrl == existingYoutubeThemeUrl &&
!string.IsNullOrEmpty(GetExistingThemerrDataValue("theme_md5", themerrDataPath))))
{
return;
}
Expand Down

0 comments on commit 99d6720

Please sign in to comment.