Batch re-read NFO files without losing watched etc.

  Thread Rating:
  • 3 Votes - 3.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
smiffy1989 Offline
Senior Member
Posts: 245
Joined: Jun 2010
Reputation: 0
Post: #11
bossanova808 Wrote:Then you lose all your watched statusses.

(and you can't export the library as that overwrite the nfos)

I'm sure if you press no when it asks you if you want to remove all items from the database and then press yes when you set the content again it keeps the watched statuses.

Can a developer weigh in here?

[Image: widget]
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #12
As far as I can tell from the code if you:

1. Set content to None.
2. Choose YES to remove content from the library.
3. Set content to Movie.
4. Choose YES to Refresh for path.

It will keep playcount (** see NOTE 3). Reason is that it doesn't touch the files table which holds this info.

NOTES:

1. This will delete bookmarks by the looks (no reason this couldn't be changed, however).
2. The "cleaning" done in step do is DIFFERENT than the cleaning done by "Clean Library". Clean Library removes files that are no longer present on disk.
3. If you have the advanced setting enabled to import watched count and it's present in your nfo file and it's different than what is in your db, then obviously that will override whatever was left in the db.

Sure enough, just tested it and it works fine.

Cheers,
Jonathan

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
(This post was last modified: 2012-03-05 22:51 by jmarshall.)
find quote
Phantom_Zone Offline
Donor
Posts: 54
Joined: Feb 2012
Reputation: 14
Location: NI
Post: #13
MySQL saves the states...I totally uninstalled and reinstalled from scratch and my play states were still there...
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #14
MySQL does nothing of the sort. XBMC does it as stated above.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
Phantom_Zone Offline
Donor
Posts: 54
Joined: Feb 2012
Reputation: 14
Location: NI
Post: #15
jmarshall Wrote:MySQL does nothing of the sort. XBMC does it as stated above.

Righto...dear knows how mine were saved then..full uninstall, all traces of XBMC removed from all locations and after reboot, full install and manual add of all libraries, my play states were intact...

edit - on a re-read the play states must be in my nfo files...
(This post was last modified: 2012-03-05 23:49 by Phantom_Zone.)
find quote
LoL Offline
Senior Member
Posts: 127
Joined: Oct 2003
Reputation: 0
Location: The Netherlands
Post: #16
ok interesting, its a start, going to try!
find quote
LoL Offline
Senior Member
Posts: 127
Joined: Oct 2003
Reputation: 0
Location: The Netherlands
Post: #17
OK tested it:

...it does screw up the latest added information... and that's the most important to me

There should be a function that ONLY re-reads info files, WITHOUT changing latest added/playcount/watched status etc

Hope it gets added on someones to-do-list Smile

No hurry, thx!
find quote
Montellese Online
Team-XBMC Developer
Posts: 2,788
Joined: Jan 2009
Reputation: 20
Location: Switzerland
Post: #18
The screw-up of recently added will not happen anymore once my "dateAdded" stuff goes into XBMC after Eden has been released. It will also be stored in file level (same as playcount) so you more or less might get the requested behaviour as described by jmarshall once that extra logic for date added is stored/handled.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

[Image: badge.gif]
find quote
LoL Offline
Senior Member
Posts: 127
Joined: Oct 2003
Reputation: 0
Location: The Netherlands
Post: #19
Montellese Wrote:The screw-up of recently added will not happen anymore once my "dateAdded" stuff goes into XBMC after Eden has been released. It will also be stored in file level (same as playcount) so you more or less might get the requested behaviour as described by jmarshall once that extra logic for date added is stored/handled.

Well that sounds promising! You're way ahead of us Wink Thx!

Single-press re-read would be the next step..

Thx again, LoL
find quote
NEOhidra Offline
Member
Posts: 68
Joined: Dec 2011
Reputation: 0
Location: BG
Post: #20
+2
Would be very happy to have a "Reread whole library"
find quote