Quantcast
Channel: Kodi Community Forum - All Forums
Viewing all articles
Browse latest Browse all 84004

[SOLVED] Mark All Unwatched Videos as Watched

$
0
0
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:
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:
  1. Copy MyVideos60.db to your local PC, this can be done using WinSCP if you're running xbmc on linux.
  2. Open the database using SQLitespy. File -> Open Database -> Browse to MyVideos60.db
  3. Double click the files table.
  4. Paste the following SQL commands into the sql window
      Code:
      update files set playCount=1 where playCount is NULL;
      update files set lastPlayed='2012-01-01 12:00:00' where lastPlayed is NULL;
  5. Press F9 to run the SQL commands.
  6. Verify the changes in the table.
  7. Copy MyVideos60.db back to the userdata folder in xbmc.
  8. Might need to restart xbmc.


This is how it would look like before the change:
[Image: raguo.png]

After the change:
[Image: Gzbfh.png]

Hope that helps someone Smile If this helps you please up my reputation, it suffered the wrath of X3lectric

Viewing all articles
Browse latest Browse all 84004

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>