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
Add contextmenu option to remove resume points #12708
Conversation
Some things that might be weird:
|
What about fixing the stuff not working before merging features that only work half way? |
I always click on the video I want to remove the resume point from, choose "Start from beginning" and then immediately stop the video again. That way I can reset the resume point and keep the watched status. But TBH the only time I have to do that is after testing something which requires me to play a video. |
@ksooo @Montellese And yes, I would probably only do that for tests too. The user that contacted me said this "An example would be, you just want to watch that one scene again." To be clear, no hard feelings if we don't want this in core. |
No, I was referring to this PR here. I wanted to suggest not to merge this PR if we already know about "Some things that might be weird" after merging, but to fix the "weird" things first. |
Yes, I will have another iteration on this. Wasn't expecting it to get merged after 15mins anyway. Wanted to see if anyone will shoot it down first or if I missed something that was already there. |
Cool, thanks. |
Still struggling to find an event to refresh the item in all our frontends. It even seems like home screen has that problem in more places, it's just not as obvious. So for e.g. watching something and aborting in the middle should imidiatly add it to the home screens "in progress movies". |
@razzeee You need to use announcer (see how the other methods in CVideoDatabase are done). Then the directory provides will pick up on it. I would just change DeleteResumeBookMark to take a CFileItem and do it there. |
I tried using the annoncer, but I probably haven't had the right event then. Will have a look at |
9b89488
to
cec6cc8
Compare
Thanks @tamland Works like a charm now. Adresses both mentioned problems. I've tested this with movies, episodes and files outside of the library. All work fine as far as I can tell. |
jenkins build this please |
So jenkins likes this. I would like to get reviews and/or info if we want this :) |
Please do not merge. This needs some more love to get this working for PVR recordings. |
@ksooo Thanks for checking |
I will try to do the rework needed to get pvr recordings working as well. You can cherry pick this, then. |
@razzeee feel free to cherry-pick: ksooo@ebdd1c4 Works well with normal videos and pvr recordings now. |
cec6cc8
to
42bfba8
Compare
@Razzee code is ready to get merged, imo. Functionwise, I think this is a useful feature. I like it. |
jenkins build this please |
👍 I wanted to runtime test your changes again (build forever yesterday night and I needed to go to bed). But you probably did that and your implementation is way better anyway :) |
@Razzee: xbmc/video/jobs/VideoLibraryResetResumepointJob.cpp Currently it doesn't build. |
Ooops. My fault. Just a typo. I introduced the new files and @razzeee cherryicked my commit. |
@razzeee shall I fix my commit and you cherrypick again or do you want to fix it directly on your PR? |
42bfba8
to
5e81a2d
Compare
Should be fixed. I also just tested again and it works like a charm. Will merge this if jenkins is happy :) |
@MilhouseVH try again, I just fixed my commit. |
Nothing changed here - are you force pushing? |
Yes, it needs a capital P, as it is here: |
@MilhouseVH I know what the problem is and I fixed it, but @razzeee needs to cherrypick again!!! |
Ah ok sorry! :) |
… also for PVR recordings.
5e81a2d
to
61dd70e
Compare
All good now. |
Okay, let's bring this to an end. ;-) |
Description
Adds a new contextmenu item for videos which enables users to remove a resume point.
Not 100% sure about the wording, so if anybody has an better idea, let me know.
Motivation and Context
I basically got a forum PM asking for this inside script.trakt. As you can't remove a resume point without loosing all your watched data. Before this PR you needed to "Mark as unwatched", which gets rid of all view counts and the view date.
How Has This Been Tested?
Locally on windows 64
Types of change
Checklist: