I couldn't find a solution for this online so i figured i would put something together.
Watched information is stored in the xbmc video database MyVideos60.db. The database location depends on your operating system:
To modify this database we need to use a database management program, I use SQLiteSpy, a small (free!) program.
I will be using SQL commands to modify the database so any compatible program can be used in its place.
I'm going to modify the database to set the playCount and lastPlayed values only if they are blank (unwatched). This will maintain the play count and last played values of videos I have already watched.
Instructions:
This is how it would look like before the change:
After the change:
Hope that helps someone If this helps you please up my reputation, it suffered the wrath of X3lectric
Watched information is stored in the xbmc video database MyVideos60.db. The database location depends on your operating system:
Quote:Android_____: Android/data/org.xbmc.xbmc/files/.xbmc/userdata/
iOS/ATV2___: /private/var/mobile/Library/Preferences/XBMC/userdata/
Linux_______: $HOME/.xbmc/userdata/
Mac OS X___: /Users/<your_user_name>/Library/Application Support/XBMC/userdata/
Windows 7__: Users\%userprofile%\AppData\Roaming\XBMC\userdata\
Windows XP_: Documents and Settings\%userprofile%\Application Data\XBMC\userdata\
To modify this database we need to use a database management program, I use SQLiteSpy, a small (free!) program.
I will be using SQL commands to modify the database so any compatible program can be used in its place.
I'm going to modify the database to set the playCount and lastPlayed values only if they are blank (unwatched). This will maintain the play count and last played values of videos I have already watched.
Instructions:
- Copy MyVideos60.db to your local PC, this can be done using WinSCP if you're running xbmc on linux.
- Open the database using SQLitespy. File -> Open Database -> Browse to MyVideos60.db
- Double click the files table.
- Paste the following SQL commands into the sql windowCode:
update files set playCount=1 where playCount is NULL;
update files set lastPlayed='2012-01-01 12:00:00' where lastPlayed is NULL; - Press F9 to run the SQL commands.
- Verify the changes in the table.
- Copy MyVideos60.db back to the userdata folder in xbmc.
- Might need to restart xbmc.
This is how it would look like before the change:
After the change:
Hope that helps someone If this helps you please up my reputation, it suffered the wrath of X3lectric