Loggytronic Forum

VOMP => VOMP for Raspberry Pi => Topic started by: glotzi on October 21, 2012, 20:02:34

Title: Mark watched recordings as watched
Post by: glotzi on October 21, 2012, 20:02:34
Hi there,

it seems that vompclient does not mark or display recordings as watched in any way. This is a little bit annoying, because a have a lot of recordings for my kids and I can't distinguish between watched and unwatched recordings. Is this a bug or a missing feature?
Title: Re: Mark watched recordings as watched
Post by: MartenR on October 22, 2012, 07:11:26
I think a missing feature, it was always like this on the mvp I think.

Marten
Title: Re: Mark watched recordings as watched
Post by: glotzi on October 22, 2012, 07:42:39
Ok, I'm willing to implement this. Is the information whether a recording is watched or not, available on the client side?
I hope the protocal does not have to change.
Title: Re: Mark watched recordings as watched
Post by: MartenR on October 22, 2012, 09:05:21
I do not know, a protocoll change is very likely.
But a thing, that I do not understand, vomp should transmit the current position for the resume position.
May be you can use this information, the protocoll should support this, but may be not in the recordings listing.

Marten
Title: Re: Mark watched recordings as watched
Post by: glotzi on October 22, 2012, 19:25:23
Ok, I had a look into vdr source code and there the resume position will also be used for marking unwatched recordings.  I attached a git patch, which displays an asterisk behind all unwatched recordings. Marten, I hope you will accept it.
Title: Re: Mark watched recordings as watched
Post by: MartenR on October 23, 2012, 12:47:20
Looks, ok at first sight, but it loads the info for every recording.
For raspberrypi this is probably ok, because we have a lot of memory.
For the mediamvp, that might be a problem.
Maybe do the following,

Check in isNew, if recinfo is already present before.
If not, drop the recinfo in the end.
But cache the result "isnew" and do not get a new recinfo from server,
if recinfo or a cache isnew is present.
In the moment you are getting the recinfo, everytime the list is drawn, this can be very often.

If you solve these issues, then I can include it.

Marten
Title: Re: Mark watched recordings as watched
Post by: glotzi on October 23, 2012, 21:23:41
Ok, here 2nd try. You need both patches for applying.
Title: Re: Mark watched recordings as watched
Post by: MartenR on October 24, 2012, 06:00:56
Sorry, you need also a second bool to indicate, if the isnew flag was previously loaded.
Your current implementation reloads the info every time.
The second thing is recinfo is declared static, so you must also check additional to recInfo != NULL, if recinfofor is equal to this.
See comment in header file.

Marten
Title: Re: Mark watched recordings as watched
Post by: glotzi on October 24, 2012, 06:54:32
Quote from: MartenR on October 24, 2012, 06:00:56Sorry, you need also a second bool to indicate, if the isnew flag was previously loaded.
Your current implementation reloads the info every time.
I think reloading is prevented by loadRecInfo(). Plz have a look into it.
Title: Re: Mark watched recordings as watched
Post by: MartenR on October 24, 2012, 15:57:56
But not if it is droped.
And still you need to check if it is the right recinfo, since it is a static member!

Marten
Title: Re: Mark watched recordings as watched
Post by: MartenR on October 25, 2012, 08:49:51
Stop working at this feature.
I realized, that I have to change the protocoll anyway for the aac audio stuff, so I will add the is new flag as well to the protocoll, this weekend

Marten
Title: Re: Mark watched recordings as watched
Post by: glotzi on October 25, 2012, 09:46:47
Thx for reply. Yesterday I didn't have the time for working on it, so no problem.
Title: Re: Mark watched recordings as watched
Post by: MartenR on October 27, 2012, 12:33:20
I have look into this.
I will not implement it on the server side, since I do not see in the moment a way how to implement this without breaking the protocoll compatibility to older builds.
In the moment I try to not break protocoll compatibility, so this change has to come at a later development cycle.
And I do not like the idea that the recording info is fetched for every recording, as you did it in your patches. (Mostly my concerns are for the mvp plattform)

So from my side I do not want to include it, it is too much hassle for such little feature.
May be later...

Marten
Title: Re: Mark watched recordings as watched
Post by: glotzi on October 29, 2012, 19:03:47
Bad to hear  :(.

So I will add the patch to my private patchset.
Title: Re: Mark watched recordings as watched
Post by: Chris on January 13, 2013, 18:20:31
This feature is now implemented on the 0-4-0rc branch of the git repo. It changes the client server protocol so if you try it you will need to match server and client versions.
Title: Re: Mark watched recordings as watched
Post by: glotzi on January 13, 2013, 20:18:25
Thx a lot  :)

I will test it, when Marten merged the changes to the raspi branch.
Title: Re: Mark watched recordings as watched
Post by: Chris on January 13, 2013, 21:01:55
Actually all the raspi work has been merged into the standard vompclient.git repository. The very latest bleeding edge with raspi and this new/old recordings mark is in the 0.4.0rc branch of the vompclient repo if you want to test it.

git clone -b 0-4-0rc http://git.vomp.tv/vompclient.git

git clone -b 0-4-0rc http://git.vomp.tv/vompserver.git
Title: Re: Mark watched recordings as watched
Post by: Harry on January 14, 2013, 11:57:56
excellent, thanks mate!