2012-04-29, 05:19
I'm hoping that a knowledgeable dev can help me out here. I have been trying my best to support the XBMCFlicks add-on community since Fekker (the dev) has been MIA. There was never a fully posted add-on for Eden, but he did leave a link back in January for a version that works pretty well for most intents and purposes.
The issue however is that the "togglewatched" and check marks for watched episodes don't seem to be properly working. I have done some research and poking around and to the best of my knowledge the watched flag for an episode is triggered by placing and entry into the MyVideos60.db file into the Files table. The files table has the following format:
idFile,idPath,strFilename,playCount,lastPlayed
So, if i watched a video called mymovie.avi there would be an entry added something along the following:
1,1,mymovie.avi,1,2012-04-28
Pressing the "W" key in XBMC would also toggle that playCount between 0 and 1. If the playCount > 0 then the mark as watched checkbox is placed on that video.
The way that the XBMCFlicks plugin works is by creating .html files for every enumerated episode retrieved from a user's Netflix queue. It places these in the userdata\addon_data\plugin.video.xbmcflicks\links directory.
The behavior in both Dharma and Eden appears to be the same in how and where these link files get created. Also, it appears that when watching a movie (or pressing "W") the proper entry is placed into the MyVideos60.db. It would look like the following for a file called 81327919.html:
1,1,81327919.html,1,2012-04-28
If a movie is watched, it seems that the checkbox gets placed next to the movie, but only as long as that window is open. If the window is closed (or XBMC restarted) the checkbox goes away. It is as if the entry is not being read out of the database.
I assume this problem is being caused by one of two things:
1) XBMC is not honoring the "html" extension for reading files out of the table.
2) The XBMCFlicks add-on is not properly reading the files out of the table.
I am hoping someone can point me in the right direction of what needs to happen here from a coding perspective. If it is a problem with the plugin I hope to be able to track it down...but I can see no direct references in the python as to how this information is enumerated out of the database...it seems as if this is normally something that XBMC takes care of and not the add-on.
Does anyone know if Eden introduced any behavioral changes here that might shed some light?
thanks very much
The issue however is that the "togglewatched" and check marks for watched episodes don't seem to be properly working. I have done some research and poking around and to the best of my knowledge the watched flag for an episode is triggered by placing and entry into the MyVideos60.db file into the Files table. The files table has the following format:
idFile,idPath,strFilename,playCount,lastPlayed
So, if i watched a video called mymovie.avi there would be an entry added something along the following:
1,1,mymovie.avi,1,2012-04-28
Pressing the "W" key in XBMC would also toggle that playCount between 0 and 1. If the playCount > 0 then the mark as watched checkbox is placed on that video.
The way that the XBMCFlicks plugin works is by creating .html files for every enumerated episode retrieved from a user's Netflix queue. It places these in the userdata\addon_data\plugin.video.xbmcflicks\links directory.
The behavior in both Dharma and Eden appears to be the same in how and where these link files get created. Also, it appears that when watching a movie (or pressing "W") the proper entry is placed into the MyVideos60.db. It would look like the following for a file called 81327919.html:
1,1,81327919.html,1,2012-04-28
If a movie is watched, it seems that the checkbox gets placed next to the movie, but only as long as that window is open. If the window is closed (or XBMC restarted) the checkbox goes away. It is as if the entry is not being read out of the database.
I assume this problem is being caused by one of two things:
1) XBMC is not honoring the "html" extension for reading files out of the table.
2) The XBMCFlicks add-on is not properly reading the files out of the table.
I am hoping someone can point me in the right direction of what needs to happen here from a coding perspective. If it is a problem with the plugin I hope to be able to track it down...but I can see no direct references in the python as to how this information is enumerated out of the database...it seems as if this is normally something that XBMC takes care of and not the add-on.
Does anyone know if Eden introduced any behavioral changes here that might shed some light?
thanks very much