Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added: hide thumbs for unwatched episodes option to show plot is off #7462

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions addons/resource.language.en_gb/resources/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -10981,7 +10981,7 @@ msgstr ""

#: system/settings/settings.xml
msgctxt "#20369"
msgid "Show plot for unwatched items"
msgid "Show spoilers for all unwatched items"
msgstr ""

msgctxt "#20370"
Expand Down Expand Up @@ -14612,10 +14612,10 @@ msgctxt "#36140"
msgid "Choose which temperature unit is used for displaying temperatures in the user interface."
msgstr ""

#. Description of setting "Videos -> Library -> Show plot for unwatched items" with label #20369
#. Description of setting "Videos -> Library -> Show spoilers for all unwatched items" with label #20369
#: system/settings/settings.xml
msgctxt "#36141"
msgid "Show plot information for unwatched media in the video library."
msgid "[Enabled] Shows plot information for movies and episodes plus episode thumbnails for all unwatched items.[CR][Disabled] Hides plot information for movies and episodes plus episode thumbnails for all unwatched items to prevent spoilers."
msgstr ""

#. Description of setting "Appearance -> International -> Speed unit" with label #14106
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions xbmc/video/VideoThumbLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,10 @@ bool CVideoThumbLoader::FillLibraryArt(CFileItem &item)
// For episodes and seasons, we want to set fanart for that of the show
if (!item.HasArt("fanart") && tag.m_iIdShow >= 0)
{
if (tag.m_type == MediaTypeEpisode && tag.m_playCount == 0 &&
!CSettings::Get().GetBool("videolibrary.showunwatchedplots"))
item.SetArt("thumb","DefaultEpisodeHidden.png");

ArtCache::const_iterator i = m_showArt.find(tag.m_iIdShow);
if (i == m_showArt.end())
{
Expand Down