Skip to content

Commit

Permalink
Bring back the option to disable custom thumbs. I'm an idiot.
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmohan committed Sep 8, 2020
1 parent 74fecc9 commit 867acc4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions ShokoJellyfin/Configuration/PluginConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class PluginConfiguration : BasePluginConfiguration

public bool UseTvDbSeasonOrdering { get; set; }

// public bool UseShokoThumbnails { get; set; }
public bool UseShokoThumbnails { get; set; }

public bool HideArtStyleTags { get; set; }

Expand Down Expand Up @@ -47,7 +47,7 @@ public PluginConfiguration()
ApiKey = "";
UpdateWatchedStatus = false;
UseTvDbSeasonOrdering = false;
// UseShokoThumbnails = true;
UseShokoThumbnails = true;
HideArtStyleTags = false;
HideSourceTags = false;
HideMiscTags = false;
Expand Down
12 changes: 6 additions & 6 deletions ShokoJellyfin/Configuration/configPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
<input is="emby-checkbox" type="checkbox" id="UseTvDbSeasonOrdering" />
<span>Use season ordering from TvDB. Also makes the shows merge-friendly.</span>
</label>
<!-- <label class="checkboxContainer">-->
<!-- <input is="emby-checkbox" type="checkbox" id="UseShokoThumbnails" />-->
<!-- <span>Use thumbnails from Shoko</span>-->
<!-- </label>-->
<label class="checkboxContainer">
<input is="emby-checkbox" type="checkbox" id="UseShokoThumbnails" />
<span>Use thumbnails from Shoko</span>
</label>
<label class="checkboxContainer">
<input is="emby-checkbox" type="checkbox" id="HideArtStyleTags" />
<span>Hide art style related tags</span>
Expand Down Expand Up @@ -99,7 +99,7 @@
document.querySelector('#ApiKey').value = config.ApiKey;
document.querySelector('#UpdateWatchedStatus').checked = config.UpdateWatchedStatus;
document.querySelector('#UseTvDbSeasonOrdering').checked = config.UseTvDbSeasonOrdering;
// document.querySelector('#UseShokoThumbnails').checked = config.UseShokoThumbnails;
document.querySelector('#UseShokoThumbnails').checked = config.UseShokoThumbnails;
document.querySelector('#HideArtStyleTags').checked = config.HideArtStyleTags;
document.querySelector('#HideSourceTags').checked = config.HideSourceTags;
document.querySelector('#HideMiscTags').checked = config.HideMiscTags;
Expand All @@ -125,7 +125,7 @@
config.ApiKey = document.querySelector('#ApiKey').value;
config.UpdateWatchedStatus = document.querySelector('#UpdateWatchedStatus').checked;
config.UseTvDbSeasonOrdering = document.querySelector('#UseTvDbSeasonOrdering').checked;
// config.UseShokoThumbnails = document.querySelector('#UseShokoThumbnails').checked;
config.UseShokoThumbnails = document.querySelector('#UseShokoThumbnails').checked;
config.HideArtStyleTags = document.querySelector('#HideArtStyleTags').checked;
config.HideSourceTags = document.querySelector('#HideSourceTags').checked;
config.HideMiscTags = document.querySelector('#HideMiscTags').checked;
Expand Down
3 changes: 1 addition & 2 deletions ShokoJellyfin/Providers/ImageProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ public async Task<IEnumerable<RemoteImageInfo>> GetImages(BaseItem item, Cancell

try
{
// Doesn't seem like Jellyfin can generate thumbs by itself. Keep this option always enabled for now.
// if (item is Episode && !Plugin.Instance.Configuration.UseShokoThumbnails) return list;
if (item is Episode && !Plugin.Instance.Configuration.UseShokoThumbnails) return list;

var id = item.GetProviderId("Shoko");

Expand Down

0 comments on commit 867acc4

Please sign in to comment.