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

[videodb]: keep empty series if hideemptyseries=true #5643

Merged
merged 1 commit into from Nov 7, 2014

Conversation

anaconda
Copy link
Contributor

@anaconda anaconda commented Nov 3, 2014

As of now (advanced setting) videolibrary.hideemptyseries seems to be quite useless as empty TV shows get always deleted when cleaning the library.

I do think it makes sense to keep empty TV shows based on that setting, otherwise there's no much to hide...

I delete episodes after I watch them, this causes the TV show to be deleted from the database and re-scraped every week. On devices like a Raspberry Pi this operation is not really instant.

I've been using this for months and I've been a more happy person since then...

(Hint: ?w=1)

@anaconda
Copy link
Contributor Author

anaconda commented Nov 3, 2014

Oh, just found these:
http://trac.xbmc.org/ticket/15475 (Keep empty tv-shows in library - even after clean (was apparently possible pre gotham))
#5183 @Montellese

@Montellese
Copy link
Member

Yeah as you found out I ran into this problem from the other direction i.e. I was confused why an empty tvshow wasn't removed.
This change should fix http://trac.xbmc.org/ticket/15475. It won't fix my problem but I've setup my library from scratch since then so I don't run into that problem anymore.

So this is fine with me.

@Montellese Montellese added Type: Fix non-breaking change which fixes an issue Helix labels Nov 4, 2014
@Montellese Montellese self-assigned this Nov 4, 2014
@MartijnKaijser
Copy link
Member

@topfs2
jenkins build this please

@anaconda
Copy link
Contributor Author

anaconda commented Nov 4, 2014

Updated commit message to mention the ticket (added "Fixes #15475"). That was the only change.

Jenkins status before rebase: http://jenkins.kodi.tv/job/BuildMulti-PR/1716/

@MartijnKaijser MartijnKaijser added this to the Helix 14.0-beta2 milestone Nov 4, 2014
@MartijnKaijser
Copy link
Member

@Montellese did you by any chance test this?

@Montellese
Copy link
Member

Nope but it basically just prevents deleting tvshows that don't have any episodes during library cleaning if videolibrary.hideemptyseries is set in advancedsettings.xml.

MartijnKaijser added a commit that referenced this pull request Nov 7, 2014
[videodb]: keep empty series if hideemptyseries=true
@MartijnKaijser MartijnKaijser merged commit 04f920f into xbmc:master Nov 7, 2014
@anaconda anaconda deleted the videodb-keep-hideemptyseries branch November 7, 2014 13:22
@kib
Copy link
Member

kib commented Nov 7, 2014

I am sorry i did not see this earlier, but this doesn't fix 15475 at all
It actually does the complete opposite.

The idea from 15475 is that empty series are shown in the GUI. What would the use be to only not delete them when they are hidden in the GUI ? Just to prevent the rescrape ?

@Montellese
Copy link
Member

What do you mean with "complete opposite"? It changes the behaviour to not delete tvshows that are empty if videolibrary.hideemptyseries is set in advancedsettings.xml. So everyone with this option enabled should be better off. Everyone with this option disabled has the same behaviour as before.

From what I understood the main concern was that the shows were completely deleted and had to be rescraped (which might result in different artwork etc). This is prevented by this change.

@kib
Copy link
Member

kib commented Nov 7, 2014

The initial trac ticket and subsequent IRC discussion was about someone who actually wants to see his tvshows even if there are no episodes in them (to see fanart, show info, etc)

Only keeping the show when it is hidden does not solve this, so the trac ticket should not be closed.

You say 'everyone with this option disabled has the same behaviour as before' which is not true. In gotham empty show folders were not deleted and showed up in skin views - this is why the 'hide empty series' was created for those people who did not want to show them.

@Montellese
Copy link
Member

I just realized that @kib is right and this is wrong. I thought the advanced setting was "keep empty tvshows" but it's "hide empty tvshows" and it's not obvious what "hide" means. It could mean

  • hide them but keep them in the library
  • hide them because I don't care about them (so they can also be removed from the library)

So IMO this needs a different approach. Personally I have the advanced setting set to true because if I remove all episodes I also don't care about the tvshow anymore so I'd also want it to be removed from the library. This is not possible anymore and it feels wrong.

We would probably need a setting with more choices like

  • don't keep empty tvshows
  • keep empty tvshows but don't show them
  • keep empty tvshows and also show them

Then I could choose "don't keep empty tvshows" while people like @kib could choose "keep empty tvshows and also show them". Did I miss any other possible cases?

@kib: do you agree that we should revert this?

@anaconda
Copy link
Contributor Author

anaconda commented Nov 8, 2014

It is documented as "hide empty series in the video library": http://kodi.wiki/view/Advancedsettings.xml#videolibrary
To me that seems to imply that empty series are kept but not shown when browsing the video library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Fix non-breaking change which fixes an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants