Page 1 of 1
NFO export Part 2
Posted: 2012-12-19 01:46:59
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.
Posted: 2012-12-28 19:42:59
by Tetsujin
I can see now why this will never work. XBMC will not import the NFO if not named correctly.
Posted: 2012-12-29 13:39:58
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.
Posted: 2013-01-02 20:50:43
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.
Posted: 2013-01-03 06:30:22
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.