NFO export Part 2

If you made a script you can offer it to the others here, or ask help to improve it. You can also report here bugs & problems with existing scripts.
Post Reply
Tetsujin
Posts: 13
Joined: 2012-12-09 03:04:40

NFO export Part 2

Post by Tetsujin »

I am trying to export by TITLE and YEAR.
I have some movies that are titled the same but the year is different.
Alice in Wonderland 1933
Alice in Wonderland 1951
or
Amazing Grace 1974
Amazing Grace 2006

Thanks for a GREAT program.
Tetsujin
Posts: 13
Joined: 2012-12-09 03:04:40

Post by Tetsujin »

I can see now why this will never work. XBMC will not import the NFO if not named correctly.
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

So you were looking for help on modifying xbmc-nfo script to export to a different filename or something ? Not sure what exactly your question is..

It helps if you do not only say what you already have, but what you actually need, preferably giving an example ;)


If you have a field original title 'Amazing Grace' and a field year '2006' and you need a filename that looks 'Amazing Grace 2006.nfo' you would change line

Code: Select all

SaveFileName := IncludeTrailingPathDelimiter(DirSelected) + GetField(fieldOriginalTitle) + '.nfo';
to

Code: Select all

SaveFileName := IncludeTrailingPathDelimiter(DirSelected) + GetField(fieldOriginalTitle) + ' ' + GetField(fieldYear) + '.nfo';
but you might need a different solution depending on what exactly you want, e.g. if you only need to add year to some - but not all - movies it might be better to add a separate field to movies for export-title, fill with a short script once and then use this for correct title export.
Tetsujin
Posts: 13
Joined: 2012-12-09 03:04:40

Post by Tetsujin »

During the export of NFO files if there are two movies named the same the first NAME.NFO is overwritten by the second. I was looking for a way to export ALL of my movies to NFOs.
THanks very much for your reply. I believe your solution may work for me.
Tetsujin
Posts: 13
Joined: 2012-12-09 03:04:40

Post by Tetsujin »

How do I export Pictures by name and Year?

I now have .NFO files named for movies and year.
A Man For All Seasons 1966.nfo
kgytopi Helped me here ..
[url]viewtopic.php?t=5257[/url]
with a batch file that made folders for every named .NFO.

[code]
MODE CON CP SELECT=437
for %%x in (*.NFO) do mkdir "%%~nx"

for %%x in (*.NFO) do move /-Y "%%x" "%%~nx"
for %%x in (*.jpg) do move /-Y "%%x" "%%~nx"

MODE CON CP SELECT=852
[/code]
I added a line that will move the exported pictures into the newly created folders.
I am trying to export the pictures by name and year so they can be move into the NFO folders. Ready for scanning by XBMC.
Post Reply