Posts: 21
Joined: Apr 2009
Reputation:
0
idFile idPath strFilename playCount lastPlayed
Ändra Redigera Kopiera Radera 2830 1858 s04e01 EPT 4 - Barcelona Day 1.flv NULL NULL
Ändra Redigera Kopiera Radera 2831 1858 s04e02 EPT 4 - Barcelona Day 2.flv NULL NULL
Ändra Redigera Kopiera Radera 2832 1858 s04e03 EPT 4 - Barcelona Final Table.flv NULL NULL
Ändra Redigera Kopiera Radera 2833 1858 s04e04 EPT 4 - London Day 1.flv NULL NULL
this is a cut n paste from my sql database showing some of the files that won't get marked.
Posts: 21
Joined: Apr 2009
Reputation:
0
2012-06-08, 20:48
(This post was last modified: 2012-06-08, 20:54 by mcfrojd.)
i tried this.
i marked i bunch of unmarked files, exported with the version of your script that i now have installed and got this new format in my xml file
<file Count="1" Id="2830" lastPlayed="2012-06-08 20:41:19">s04e01 EPT 4 - Barcelona Day 1.flv</file>
<file Count="1" Id="2831" lastPlayed="2012-06-08 20:41:19">s04e02 EPT 4 - Barcelona Day 2.flv</file>
<file Count="1" Id="2832" lastPlayed="2012-06-08 20:41:19">s04e03 EPT 4 - Barcelona Final Table.flv</file>
Then i went back, unmarked the episodes and then imported the new file.
But the files did not get marked from the import, so there should not be an version bug, must be related to the season, episode in the beginning.
gonna try renaming some of the files and try again.
<file Count="1" Id="3466" lastPlayed="2012-06-08 20:51:31">EPT 4 s04e03 - Barcelona Final Table.flv</file>
<file Count="1" Id="3465" lastPlayed="2012-06-08 20:51:31">EPT 4 s04e02 - Barcelona Day 2.flv</file>
<file Count="1" Id="3464" lastPlayed="2012-06-08 20:51:30">EPT 4 s04e01 - Barcelona Day 1.flv</file>
when i renamed the files the export and import worked.
must definitely be the s**e** in the beginning that is the problem
Posts: 162
Joined: Oct 2003
Reputation:
9
Fox
Senior Member
Posts: 162
Thanks for all the testing narrowing down the problem mcfrojd!
I'll try to find out why the s**e** in the beginning is causing the problem.
If you find any spelling mistakes you can keep them ;)
Posts: 97
Joined: Mar 2012
Reputation:
0
Would be nice if this addon can be used in the future to trigger an action to mark shows, watched on different devices, as watched in XBMC.
Maybe populate a file with the name or write a file with the "episode name".watched in the same folder and have the addon refresh daily
and mark those shows as watched in XBMC.
Posts: 97
Joined: Mar 2012
Reputation:
0
You right you don't want the file to stay there.
Add-on can remove the file when it has read it. That means it's just a way of changing the watched status from externally with interfacing
directly to XBMC.
Might even work to mark media as unwatched.
My problem is I watch some of the media from my tv that cannot work through XBMC. Can only read the media shares directly or through
serviio and I was thinking for sending the watched status to XBMC and the easiest might be through a add-on like this that already updates
the that status by means of file.
Posts: 97
Joined: Mar 2012
Reputation:
0
MMmmmmmm
Will work for movies but TV Series doesn't support watched as far as I can see in the XML. Might just not have
been updated in the Wiki.
Posts: 162
Joined: Oct 2003
Reputation:
9
Fox
Senior Member
Posts: 162
Both TV Shows and TV Episode have the <playcount> tag.
For the Shows it a bit further down in the xml doc in the wiki though.
If you find any spelling mistakes you can keep them ;)
Posts: 162
Joined: Oct 2003
Reputation:
9
Fox
Senior Member
Posts: 162
2012-06-14, 13:29
(This post was last modified: 2012-06-14, 13:35 by Fox.)
mcfrojd I uploaded a new version (1.3.2) it should fix your problem with the files starting with sXXeXX.
It's just a temporary fix until I find out the real culprit behind it all and can squash it.
If you find any spelling mistakes you can keep them ;)
Posts: 48
Joined: Jun 2012
Reputation:
0
This is probably obvious to many, but to those (like myself) who were getting script errors on import:
You must move or copy the exported .xml file ("watched.xml") from the current XBMC database folder to the XBMC database folder of the desired profile. This might be in an entirely different XBMC folder (on another machine, for example) but it might also be in a different profile folder of the same XBMC folder. I had assumed that the exported file could be read by a different profile on the same machine, but that's not so. I had to copy the "watched.xml" file from the main database (written to by my main profile) to the profile's own database. Then it can be correctly imported.
I wrote a quick applescript to do the file move, since I want to keep the watched status sync'd between my home setup and my laptop setup. When I return from a trip, I want to make sure my two machines' watched statuses are in sync. Of course, it doesn't handle conflicts, but that's not needed in my case.
Again, this is only necessary if you're updating the watched status of a different machine or profile, not if you're just using this add-on to update watched status on the same machine/profile after, say, a database re-import.
Thanks for the nice add-on. I sure hope it can be integrated into an upcoming version of XBMC.
Posts: 162
Joined: Oct 2003
Reputation:
9
Fox
Senior Member
Posts: 162
Thanks for your input chicowoodhill!
Ya the intention of this script was mainly what you described in the end but nice that you found other uses for it.
I'll look into the script error from missing file, at least it should be a more helpful message there.
I've been thinking about adding a path option to let you save the xml in any location, maybe that will make things easier.
If you find any spelling mistakes you can keep them ;)