-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
[database] - add setting for hiding watched movies/episodes in recently added lists #5747
Conversation
yep look like this nailed it what user requests intended.
|
You nailed the bikeshed points (+ the translation of course :D) |
yay, bikeshedding. As I prefer blue it would be nice to add a contextual comment to all new labels, not just the settings description. Thanks. Let me add that if the setting "hide watched" in the sideblade of Confluence is enabled for the movie library, this already affects the "recently added" library node. With having this overruled by the new global setting users might get confused that the sideblade settings no longer has an effect (untested - but as I don't see this condition treated in your code changes I assume that's the case). IMO it might be sufficient to respect the library setting also on home screen widget. |
Not ideal and restricts recently added movies view to unwatched only: I see that GetRecentlyAddedMoviesNav is being called to set those home window properties for LatestMovie. GetRecentlyAddedMoviesNav is probably separately called for the movie list view So the call for the window properties to GetRecentlyAddedMoviesNav can pass a parameter based on the system settings (e.g. "unwatchedOnly = true), whereas the call to GetRecentlyAddedMoviesNav for the recently added directory view can always pass "unwatchedOnly = false". |
Haven't looked at the code yet but since it only touches
|
@Montellese but CDirectoryNodeRecentlyAddedMovies::GetContent(CFileItemList& items) calls it (is this not the thing we talk about?) |
This would also influence the list returned to json-rpc (which is bad imo) - so i go for a different approach which only influences the recentlyaddedjob |
1508ff4
to
19929e7
Compare
Updated. I tend to also merge the 2 settings - at least if no one comes up with a valid reason why someone would like to see the already atched recently added episodes but wants to hide those from the movie list... |
Looks good. Don't forget about albums (same logic). |
@Memphiz: You're right. I thought we replaced the "Recently Added Foo" nodes with smartplaylist-based filter nodes but they still use |
Code changes look good but the settings name/description doesn't make it obvious that we are only talking about the recently added list on the home screen. |
The stupid thing is that enabling the recently added widgets is a skin setting but this one needs to be in core. Its not really intuitive from a user pov. |
playcount is not available in the musicdatabase / albumsview ... @Montellese this would need what? (i guess version bump + migration path or so?) |
19929e7
to
3442487
Compare
updated:
as said albums is a pita @piejanssens wanna take this over? ^^ |
Yeah I also dislike the fact that this setting only makes sense if the skin uses the builtin recently added functionality. If a skin doesn't use it or relies on some other way to get the items the setting is useless and confusing. |
Build failure on OpenELEC/Pi:
Can I ask a really dumb question - assuming this only affects the widgets on the Home screen, why isn't this being handled by the skin.widgets addon itself? |
@MilhouseVH: Because we are talking about confluence which doesn't use the skin.widgets addon but uses the builtin RecentlyAdded skin labels. |
there are two options. do it proper in core like this PR or rip it completely out of core and put it in a "team" maintained addon (skin.widgets wouldn't be my first choice). Using an Add-on is way way slower due to python+json-rpc. |
Oh wow, I thought it did! Told you it was a dumb question :) |
3442487
to
dbf7d6a
Compare
compilation fixed |
Ok, have tested this and it's working in reverse - the Homescreen is only showing watched items! The "Recently Added" view is showing all items, so that's good. |
#. Label of setting "Videos -> Library -> Hide watched videos in recently added list (home screen)." | ||
#: system/settings/settings.xml | ||
msgctxt "#20470" | ||
msgid "Hide watched videos in recently added list (home screen)." |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@MilhouseVH: Yup the WHERE condition is wrong and should be Are we aiming to get this in for Helix? Because I'm uncomfortable with the additional setting as it might be confusing. Another approach that could get rid of the whole recently added in core (if it's fast enough) would be to use the |
It's a bit weird having a setting in Video Library also affect how recently added Music is shown - would it not be better/more logical to have a separate Music Library setting? Edit: Oh hold on - this is musicvideos not Music? Hmmm. |
Music videos are part of the video library so that's correct. |
I think we should move the settings over to the skin. We can add it to the default skins now and skinners will update their skin whenever they want to benefit from the increased performance. A skin without homescreen tiles doesn't have to use it. Update: as it's currently implemented by Memphiz it looks solid: good description saying that it depends on the skin that is being used. Thus no room for surprises. |
dbf7d6a
to
4d2ee22
Compare
Oh I didn't know there was no play count on album level. I see that the widgets addon is also just returning all recently added. We could either apply the same logic using the param played/unplayed in GetRecentlyAddedAlbums and check that playcount of all songs belonging to that album must be 0 if unplayed param is used or change the core player and set/change a playCount on album level which is going to open another discussion (playCount +1 when first song is played/90% is played/all songs played). BUT... Personally I don't care about unplayed recent albums on the homescreen because we use music in a different way. I don't want to watch a movie two times in a row or in the same week, but with music it's fine and so in that sense it might even be desired not to filter played albums from the homescreen... |
Yep exactly. This makes no sense for music at all ... |
@piejanssens i got an email with a comment from you but don't see it here strange |
Yeah I removed it out of humongous shame. Couldn't see the effect after compiling, turned out I wasn't using the correct branch from your fork.. :) Meanwhile compiled and tested -- WORKS GREAT Thanks man. |
Could this be rebased (I'd like to use it in an x86 build), perhaps even merged? Popcornmix has a version of this PR in his RPi newclock4 branch which I've been including in my test builds for quite a while now, and this feature works very well. |
Time to push the button on this one? It works great. |
What's going on with this PR? Close it or use it? |
movies/episodes/musicvideos in the recently added lists of the home screen
movies/episodes/musicvideos in recently added job (should influence homescreen of skins only)
3b849bf
to
506d78c
Compare
Rebased - well this is as good as it gets from my seide. @Montellese & @MartijnKaijser for decision. |
The code changes look ok. But my concerns regarding adding a setting which only applies depending on how skins are written are still there. |
mine too - but i don't see a way to make it generic and skin independend. Skins can always do stuff which is not ment to be like that though. |
In my humble opinion this should be a change to Confluence only otherwise you'll end up with people reporting that it doesn't work when using other skins. As far as I'm aware there aren't any other Kodi settings that are skin specific like this. I also thought there was discussion some time ago about doing away with the home window info labels. |
very little skins still use the built-in 'recently added job' to present recently added items on their homescreen. most have switched to an addon or other methods to provide that info. it's not worth to add a setting for it imo. |
@ronie Are you replying to me or the thread? |
+1 for handling it somewhere else tbh. The builtin is more used for remote controls i guess who also could do this kind of filtering on their own. |
just my thoughts in general. |
The PR is closed but if the appropriate place to implement this feature is in Confluence, was there a feature request created to have a chance to have this feature available in the future ? |
@ronie has this changed now? does estuary use the job and does this make sense again all of a sudden? |
3 x no ;-) |
Pardon me for not reading comment backlog of 2 years, but why is this not a feature that get's implemented in estuary? |
That's a question best asked on the Kodi forums because it will, no doubt, result in too many replies on github. |
This is the c++ alternative to #5745
Not sure if i got the intention right. Not even sure why i joined that party tbh.
This basically adds 2 settings "Hide watched movies in recently added list." and "Hide watched episodes in recently added list." to the videos->Library section which does exactly that (and yes - this setting influences all recently added lists for movies/episodes - not only the ones on the home screen).
@MartijnKaijser let me know if this hits the feature request (i was kinda sick to read it completely and have the feeling that the bikeshedding didn't happen yet - so lets start it).
I* as its a feature... (this is btw not even compile tested yet ...)