SRT & NFO File

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
dacari
Donor
Posts: 44
Joined: 20 Mar 2013, 14:42

SRT & NFO File

Post by dacari »

I am not sure if this is possible or not, or if there is any ideas for a work around. Can the AMC script rename the movie and .NFO file the same as the folder name.. Whenever the movie name is in code such as "fico-collpro.mkv" my NMT media player can not index the movie even with the proper NFO because my NMT indexing software looks for a link the IMDB page ONLY...Also it is not picking up the subs because it as well has to be exactly matched to the movie file name as example:

Superman.mkv
Superman.nfo
Superman.srt

Is there a way I can remove the sub language extension and have the .nfo file created as above, or any ideas for a work around...maybe some type of renaming script.

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

Re: SRT & NFO File

Post by rednoah »

Wether or not you add the language tag or not depends on wether or not you defined {lang} in the movie format. It's default, check the script, if you don't want pass in the format you want. Check "Customize Paths" in the amc docs.

I think the amc currently ignores the original .nfo and creates new ones that work for xbmc. NMT can't work with it cause it's called movie.nfo? I'm pretty sure if you do 1-movie-per-folder structure it'll pick it up.
:idea: Please read the FAQ and How to Request Help.
dacari
Donor
Posts: 44
Joined: 20 Mar 2013, 14:42

Re: SRT & NFO File

Post by dacari »

Thanks rednaoh,

I do have one movie per file folder...but the NFO file has to have only the path to IMDb in it...for the subs, would this work?

Code: Select all

C:\invoke.vbs filebot -script fn:amc --output "\\NAS\Volume_2\Media\Movies" --action move --conflict override -non-strict --def music=n subtitles=en lang=n artwork=y "ut_dir=%D" "ut_file=%F" "ut_kind=%K" "ut_title=%N" "ut_label=%L" "ut_state=%S" "clean=y" --def "movieFormat=New/{n} {y}/{fn}" --def "seriesFormat=New/{n}/{fn}" --def backdrops=n --def "exec=cmd /c \"C:/Yamjcurrent/My_YAMJ.cmd\""
User avatar
rednoah
The Source
Posts: 18830
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: SRT & NFO File

Post by rednoah »

Looks good to mo. Won't know until you try. ;)

So FileBot creates .nfo files according to the XBMC xml specs. Among other things it does contain the URL to the imdb page. Also it'll create an imdb.url file that almost only contains the imdb link.

I'm sure YAMJ is smart enough to grab an imdb link from a text file full of random text even.
:idea: Please read the FAQ and How to Request Help.
dacari
Donor
Posts: 44
Joined: 20 Mar 2013, 14:42

Re: SRT & NFO File

Post by dacari »

Thanks again!
dacari
Donor
Posts: 44
Joined: 20 Mar 2013, 14:42

Re: SRT & NFO File

Post by dacari »

Looks like this is not working for me. The Lang=n parameter did not work for me..still getting the "eng"at the end of the .srt file. Also my indexing software can not decipher the .nfo file. Are there any ideas on how I can address these two minor problems? The shortcut to the IMDB page that is created as NFO is what I need.

http://code.google.com/p/moviejukebox/w ... _movie_XML
User avatar
rednoah
The Source
Posts: 18830
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: SRT & NFO File

Post by rednoah »

No idea. They say they use the XBMC standard as well. I can not see what the issue with my XML might be, and it works with XBMC. If you can find the issue I can fix it.

Otherwise you can use the replace script to batch rename all the imdb.url files to movie.nfo, not sure how the replace script feels about overriding files though. You can have a try. Check the shared scripts thread.

When I say {lang} I mean the movie format, not the cmdline option. The reason you get movie (year).lang.srt is because the movie format is defined as {n} ({y}){'.CD'+pi}{'.'+lang} or something like that. Pass in your own movie format and movie files will get named accordingly.
:idea: Please read the FAQ and How to Request Help.
dacari
Donor
Posts: 44
Joined: 20 Mar 2013, 14:42

Re: SRT & NFO File

Post by dacari »

If I understand you rednoah...I must save your AMC script locally and edit the script?...on the NFO...this is what Yamj says:

How to create an NFO file

An NFO file is simply a plain text file that has an NFO extension instead of TXT. To create a file use any text editor such as Notepad in windows or vi in Linux.

WARNING: If you are creating a NFO file in windows with notepad, ensure that notepad doesn't "helpfully" add a ".txt" extension to the file, otherwise it won't work. You can show the extensions by going to an explorer window, tools menu, folder options, clicking on the "view" tab and un-check the "Hide extensions for known file types"
Basic Usage

MovieJukebox will automatically use a .NFO file if it finds one in the same directory with the exact same name as a movie but with a .NFO extension.
Example

For instance if you had the file twb_blood.mkv for "There Will Be Blood" MovieJukebox will try to search IMDB for a match, but in this case the closest match will be "Town Bloody Hall (1979)" which is clearly not what you want.

In this case, create a file called "twb_blood.nfo". Edit the file, and add the URL

http://www.imdb.com/title/tt0469494/

as the only content of the file
Post Reply