Release - WatchedList - service to automatically save/restore watched state

  Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Havoc2k15 Offline
Junior Member
Posts: 3
Joined: Feb 2015
Reputation: 0
Post: #46
In Kodi 14.2 Beta 1 I have a bug. After start of kodi when you click on movie. Then its open the Video list not the Movie list. When you go back and click again on Movie, the correct list apears.
Its a fresh install with no further addons and new kodi profile. After uninstall WatchedList the bug doesnt apears.

A other question.
I have tried used your addon with two profiles and with two dbs. But the addon synced the watched state over the different profiles and dbs.
I think you have not implement a multi profile feature. Could you implement this feature?
find quote
schapplm Offline
Junior Member
Posts: 38
Joined: Apr 2013
Reputation: 1
Post: #47
(2015-02-21 20:56)Havoc2k15 Wrote:  In Kodi 14.2 Beta 1 I have a bug. After start of kodi when you click on movie. Then its open the Video list not the Movie list. When you go back and click again on Movie, the correct list apears.
Its a fresh install with no further addons and new kodi profile. After uninstall WatchedList the bug doesnt apears.
What options do you use? I can only imagine the permanent watching of the user actions to be the reason.
(2015-02-21 20:56)Havoc2k15 Wrote:  I have tried used your addon with two profiles and with two dbs. But the addon synced the watched state over the different profiles and dbs.
I think you have not implement a multi profile feature. Could you implement this feature?
I do not use multiple profiles in Kodi, do I'm not familiar with this. If every user profile had his own settings for the addon, one could use different databases for each profile? Does that work like this?

My addon: service.watchedlist
My HTPC: Kodi 14.0; Ubuntu 14.04 LTS x64; AMD A6-6400K; MSI FM2-A55M-E33; 4GB Kingston HyperX RAM; Digital Devices Cine CT V6 DVB-C; Streacom FC8B Evo with 120W picoPSU
find quote
Havoc2k15 Offline
Junior Member
Posts: 3
Joined: Feb 2015
Reputation: 0
Post: #48
Sorry for my late reply.

Yes, I have activate the automatet start up and the follow feature. I have tested it and the problem apears when I switch from one profile to next profile (Kodi Logoff). When I use only one profile the bug does not apear.

For test purposes I use one Kodi installation with two profiles. The Kodi db is on a Synology NAS with MariaDB. The two users use the same Kodi db with one sql user.
For WatchedList I create two separate databases. I configured WatchedList to use under every Kodi profile a different database. But they use the same sql user.

WatchedList ignore the diffrent databases and updated every time the wateched state with the data from the other profile.

I'll try it with different SQL usern.
find quote
Havoc2k15 Offline
Junior Member
Posts: 3
Joined: Feb 2015
Reputation: 0
Post: #49
Now, I used different sql users for the profiles. But it does not help.

1.) Open Kodi with Profile1 wait for watchedlist db update. Change all movies (I test with two movies) to unwatched. Close Kodi.
2.) Open Kodi with Profile1 wait for watchedlist db update. All movies are unwatched. Good. Close Kodi.
3.) Open Kodi with Profile2 wait for watchedlist db update. All movies are unwatched. I changed all movies to watched. Close Kodi.
4.) Open Kodi with Profile2 wait for watchedlist db update. All movies are watched. Good. Close Kodi.
According to my understanding now Profile1 = unwatched and Profile2 = watched
5.) Open Kodi with Profile1 wait for watchedlist db update. All movies are watched. -.-
find quote
ColonelSceneCut Offline
Junior Member
Posts: 9
Joined: Sep 2014
Reputation: 0
Post: #50
Thanks for this addon, Very handy - Excellent work!

I am looking to add a bunch of manually created nfos for my home videos. I would like WatchedList to take these into account. Since (if I understand correctly) WatchedList uses the IDs which are stored in the NFOs (I am assuming this is so - I use local scraper only), can I just makeup any ID/UniqueID and have WatchedList do its magic?

ie:
for TV show NFO:

<id>9000000000110000</id>

for Episode NFO:

<uniqueid>9000000000110001</uniqueid>
<uniqueid>9000000000110002</uniqueid>
<uniqueid>9000000000110003</uniqueid>
.....
<uniqueid>9000000000110020</uniqueid>
<uniqueid>9000000000110021</uniqueid>
<uniqueid>9000000000110022</uniqueid>

Are there any restrictions on this?
If this doesn't work, is there a way to pull this off?

Regards C.SC
find quote
schapplm Offline
Junior Member
Posts: 38
Joined: Apr 2013
Reputation: 1
Post: #51
(2015-04-07 19:31)ColonelSceneCut Wrote:  I am looking to add a bunch of manually created nfos for my home videos. I would like WatchedList to take these into account. Since (if I understand correctly) WatchedList uses the IDs which are stored in the NFOs (I am assuming this is so - I use local scraper only), can I just makeup any ID/UniqueID and have WatchedList do its magic?
...
Are there any restrictions on this?
If this doesn't work, is there a way to pull this off?

WatchedList uses the IDs that are in the Kodi Video Library itself.
The corresponding columns are "imdbnumber" for movies and "tvshowid", "season", "episode" for tv episodes. I use the standard-json-queries VideoLibrary.GetMovies and VideoLibrary.GetEpisodes.
So if you somehow get Kodi to recognize your home videos as tv episodes, then it should work.
I have no experience with the uniqueid-tag though. I think it will only work with tvshowid-season-episode convention.
IMO there should be no restriction on the IDs except perhaps being integers. Your numbers are above 32 Bit integer scale (but below 64 Bit). I do not know, if Kodi python uses 32 Bit or 64 Bit Integer precision. To be save, you can choose smaller values.

My addon: service.watchedlist
My HTPC: Kodi 14.0; Ubuntu 14.04 LTS x64; AMD A6-6400K; MSI FM2-A55M-E33; 4GB Kingston HyperX RAM; Digital Devices Cine CT V6 DVB-C; Streacom FC8B Evo with 120W picoPSU
find quote
ColonelSceneCut Offline
Junior Member
Posts: 9
Joined: Sep 2014
Reputation: 0
Post: #52
Thanks schapplm!
With the info you just gave me, there shouldn't be a problem. Big Grin (Now doing happy dance)
(This post was last modified: 2015-04-08 07:40 by ColonelSceneCut.)
find quote
Post Reply