Page 1 of 1

How to fetch media info and artwork only if not fetched

Posted: 21 Mar 2012, 16:32
by Raphy
Hello,

First of all thanks for your wonderful software that is just awesome.

I would like this script ( http://filebot.sourceforge.net/scripts/ ... mdb.groovy, and the tv shows counterpart) to be periodically run by a crontab on my media center.

I don't want to use renaming/moving possibilities because I want my torrent client to keep on seeding the files, while XBMC to be able to find the good infos.

So I wonder if there is a way for the groovy script to check if the infos and artowork of a media have already been fetched (check if there is a movie.nfo or tvshow.nfo for example), and skip those folder to move onto another?

Thank you very much
Raphael

Re: How to fetch media info and artwork only if not fetched

Posted: 21 Mar 2012, 16:52
by rednoah
Should be easy to add that to that script. In that eachMediaFolder loop just add some kinda break condition.

e.g.
if (dir.hasFile{it =~ /nfo$/}) return;

Also since 2.6 you can do -rename --action copy|keeplink|hardlink so you can auto-organize files into a new location while keeping the original for seeding.

Re: How to fetch media info and artwork only if not fetched

Posted: 22 Mar 2012, 11:01
by Raphy
it works awesomely well.

I added this piece of code to the main function:

Code: Select all

if (dir.hasFile{it =~ /nfo$/} || ( dir.hasFile{it =~ /banner.jpg$/} && dir.hasFile{it =~ /folder.jpg$/})) {
     println "Already scanned, skipping..."
     return;
}
Thank you very much Rednoah!

Re: How to fetch media info and artwork only if not fetched

Posted: 01 Apr 2012, 10:39
by rednoah
Updated the online artwork.* scripts with that. Set skip/override mode by using the --conflict [skip|override] option.