Batch re-read NFO files without losing watched etc.

  Thread Rating:
  • 3 Votes - 3.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
bossanova808 Offline
Donor
Posts: 2,239
Joined: Sep 2009
Reputation: 34
Location: Melbourne, Australia
Post: #1
As with a number of other threads, I am frustrated that I can't easily get XBMC to re-scan all my movies/TVs for NFO updates other than either removing and adding the content, or hitting refresh one by one (just too onerous with thousands of library entries).

It would be great if there were some sort of recursive 're-read NFO' function that would grab any changed NFO info (e.g. movie sets etc.) - my various metadata tools (Ember, Sickbeard, Couch Potato and TVRename) all at various times update NFOs and it would be great to have this latest info reflected in XBMC without having add/remove, import/export etc., and while maintaining watched/playcount status as stored in the DB.

I am sure this is more complicated than it looks, but it would be very very handy.

(I am using XBMC as Openelec RC3 with MySQL DB synchronsing the metadate to two machines, and the media and thumbnails are stored/remote mounted on a Windows 7 server).

My XBMC stuff:
find quote
farr3ll Offline
Senior Member
Posts: 130
Joined: Oct 2011
Reputation: 1
Post: #2
+1 .. the only way ive found is to reload one by one
find quote
LoL Offline
Senior Member
Posts: 128
Joined: Oct 2003
Reputation: 0
Location: The Netherlands
Post: #3
absolutely +1!
find quote
feerlessleadr Offline
Fan
Posts: 334
Joined: Oct 2007
Reputation: 1
Post: #4
i too would love a feature like this
find quote
steve1977 Offline
Posting Freak
Posts: 1,970
Joined: Dec 2006
Reputation: 0
Post: #5
would be great!!!

Server: Asus Sabertooth Z77 | Intel Core i5 3.4 GHz | 12 GB DDR3 | 256 GB SSD, 40 TB (1 x 4 TB, 6 x 3TB, 9 x 2 TB)
HTPC 1: Apple Mac Mini (mid-2011) | Intel Core i5 2.5 GHz | 4GB DDR3 | 500 GB
HTPC 2: Apple Mac Mini (mid-2007) | Intel Core 2 Duo 2.0 GHz | 4 GB DDR2 | 16 GB SSD
find quote
Eddict Offline
Junior Member
Posts: 31
Joined: May 2005
Reputation: 0
Post: #6
+2
would really improve the quality of my life! Big Grin
find quote
KidKiwi Online
Posting Freak
Posts: 833
Joined: May 2007
Reputation: 0
Post: #7
Me too! +5

ZOTAC IONITX-D-E Intel Atom N330 Dual Core 1.6 GHz NVIDIA ION with LIVE on SSD
find quote
smiffy1989 Offline
Senior Member
Posts: 278
Joined: Jun 2010
Reputation: 0
Post: #8
I'm sure there is already a method for doing this. Something like changing the content of your source to none and then back to Film (or whatever it is) and then saying yes to refresh info for all.
find quote
bossanova808 Offline
Donor
Posts: 2,239
Joined: Sep 2009
Reputation: 34
Location: Melbourne, Australia
Post: #9
Then you lose all your watched statusses.

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

My XBMC stuff:
find quote
bigdog66 Offline
Senior Member
Posts: 257
Joined: Sep 2010
Reputation: 3
Post: #10
+1 from me as well

I am constantly tweaking my files so it is a PITA to one remember which shows i tweaked and then have to do each manually

WE ALL WE GOT
find quote
smiffy1989 Offline
Senior Member
Posts: 278
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?
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,221
Joined: Oct 2003
Reputation: 178
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: 56
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: 26,221
Joined: Oct 2003
Reputation: 178
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: 56
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
Post Reply