Help to create simple NFO script

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
Rootz
Posts: 2
Joined: 16 Dec 2018, 10:48

Help to create simple NFO script

Post by Rootz » 16 Dec 2018, 10:55

Hello,

Can someone help me to create a simple script to get only IMDB id link inside NFO?

And it´s possible to include context menu to select the file i want, instead open a cmd console and always type the script "filebot -script "path/to/script.groovy" args..." ???

Thanks :)

User avatar
rednoah
The Source
Posts: 15341
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help to create simple NFO script

Post by rednoah » 16 Dec 2018, 14:12

1.
The amc script / movie artwork script typically generate URL files if you enable it, so you'd have a file that only contains the IMDB link right there.


2.
You can easily make your own context menu / send to menu item / cmd droplet. Google will help.


e.g. create new shortcut, set it to this command, copy into the Send To menu folder, viola you've made your own menu item:

Code: Select all

filebot -script "path/to/script.groovy" %1

e.g. FileBot Context Menu ➔ viewtopic.php?f=3&t=1053
:idea: Please read the FAQ and How to Request Help.

Rootz
Posts: 2
Joined: 16 Dec 2018, 10:48

Re: Help to create simple NFO script

Post by Rootz » 16 Dec 2018, 21:05

First of all thanks for the help.

I try AMC/artwork.tmdb but they fleach movie art like cover, fanart...
I just want url or imdb link

User avatar
rednoah
The Source
Posts: 15341
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help to create simple NFO script

Post by rednoah » 17 Dec 2018, 07:03

Yes, that's what those scripts do. Unfortunately, there's no option to do just create IMDB links, though that would be fairly easy. You'd need to write your own script for that (should be a bash one-liner if you're on Linux, or Groovy one-liner if you prefer Groovy).

e.g. if all your movie files are already xattr tagged, then you can just generate URL files from that directly:

Code: Select all

args.files.each{ f ->
    try { 
        println "https://www.imdb.com/title/tt${f.metadata.imdbId.pad(7)}".saveAs("${f}.url")
    } catch(e) {
        log.warning "ERROR: $e [$f]"
    }
}
:idea: Please read the FAQ and How to Request Help.

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests