English > Scripts and Templates

Export to XBMC

<< < (5/10) > >>

CAD:

--- Quote ---It already does this without any changes, so in your example c:moviesmovienamemovie_5.1_en.nfo would be created. You can lso specify smth like nearfiles="..foldername%t%-%o(%y%)%.nfo" in the latest version of the plugin.

--- End quote ---

hi Nostra
i was not thinking about a fixed naming standard but using the actual file name and path of the movie from where it is saved on the hard drive. (using info scanned from hard drive)

what i am thinking is having an option for using data from file import.
Where it imports movie details (.avi, iso etc) from harddrive.
This writes a entry to (labeled) file path: eg c:\movie\mymovie.avi
This contains path where file was imported from and filename.
What i am thinking is then being able to use this info to export files into the directory where the files are physically stored.
(All this happens now)

something like nearfiles="%p%%f%.nfo"
where  %p% = path to where files are stored and %f% = file name

so if i have 3 movies stored in:
c:\movies\movie1\good_movie1.avi
c:\movies\movie2\chic_flic.iso
c:\movies\movie3\action01.avi

PVD does a scan folders on hard drive.
Populates "file path:" entries info with the 3 entries above.

i can then export into the directory where the files are stored.

so when i export.
good_movie1.nfo and poster.jpg gets saved to  c:\movies\movie1\ folder
chic_flic.nfo and poster.jpg gets saved to  c:\movies\movie2\ folder
action01.no and poster.jpg gets saved to  c:\movies\movie2\ folder

just need options in nearfiles to reference file path: (path and filename)

 :) Hope my ramblings make sense :)

rick.ca:
I should probably stay out of this, but...


--- Quote ---just need options in nearfiles to reference file path: (path and filename)
--- End quote ---

As I understood it, the whole point of a nearfiles function was to create files "beside" the media file. In other words, typically, the exported files have exactly the same pathname, but a different extension. It seems the nearfiles function provided is more powerful than that, in that a path may be specified and variables may be used to construct a filename different than the media filename. But it seems to me nearfiles without any options should do what you need. So doesn't nearfiles=".nfo" work?

CAD:
there are different issues. I think my install at work may be corrupt. I will blow it away when i get back and test again -editing previous posts to remove issues until i can prove issue...


--- Quote ---As I understood it, the whole point of a nearfiles function was to create files "beside" the media file. In other words, typically, the exported files have exactly the same pathname, but a different extension. It seems the nearfiles function provided is more powerful than that, in that a path may be specified and variables may be used to construct a filename different than the media filename. But it seems to me nearfiles without any options should do what you need. So doesn't nearfiles=".nfo" work?

--- End quote ---


It will create .nfo files. if I do nearfiles="%y%.nfo" I get individual files named after the title. title.nfo
if i do nearfiles="%ot%.nfo" i get alternative title.
They are saved either to last save place or (as i am finding out) to a path location c: omelocationtitle.nfo defined in nearfiles.
Nostra has not made an option to save the location to the file path/file name of the actual file. (using file import options.)

rick.ca:
I'm able to export a text files "beside" media files using nearfiles=".nfo"—so that doesn't seem to be the issue.


--- Quote from: rick.ca on September 09, 2009, 10:26:37 pm ---Posters can also be exported "beside" the video file.
--- End quote ---

I said that because we had talked about this capability much in the past. I thought the tools that were necessary to do so were now available. But I haven't actually had the need to do it. And now that I think about it, I haven't a clue how do it. Would someone please explain how this, and this alone, is done? What happens when there are multiple posters?

If these two things are possible, then is the issue how to get them both working in one template? If so, why not just use two templates?

CAD:
hiya rick

--- Quote ---I'm able to export a text files "beside" media files using nearfiles=".nfo"—so that doesn't seem to be the issue.
--- End quote ---
yep - you can export .nfo and poster next to media but you have to tell PVD where to save the file. (or it will save to last location)

nearfiles works fantastic, but i want to make it automagic. :)

if i use tools/import movies/folders Ctl+F to import movies that are saved to the hard drive, PVD will populate File Location: field with path and file name of movie.

I want to be able to use this field when I do the export.

Nostra has made new fields available with nearfiles eg %t% %ot%. For what i want to do Nostra will need to modify nearfiles with extra options to read and export "file location" field.  (sorry Nostra) ;)

Currently - if i have a filtered view of Antz, Australia, Awake and i export using code below.
(note i have replace back slashes with forward slashes as back slashes seem to get filtered when i post)

--- Code: ---imagenameformat="%t%%ext%" <==== Exports posters as titlename.jpg
nearfiles="d:/test%t%.nfo"   <==== Exports individual .nfo files. I found I needed to have a file path here: eg c:/xbmc

--- End code ---

This will save Antz.nfo, Australia.nfo, Awake.nfo + their posters (nicely named) Antz.jpg, Australia.jpg, Awake.jpg to d:/temp
(great feature for backing up posters btw)  ;D

i have Antz stored on my HD in c:/movies/Antz (1998)/Antz_5.1_R1.iso
Australia is stored in c:/movies/Australia (2009)/Australia_5.1_R4.iso
if i used import from hard drive feature of PVD, the path and file name gets saved to "file location" field inside PVD.

i want to be able to use this path and file name when i do the export.
when i export for xbmc. PVD will save the files into c:/movies/Antz (1998)/ and will save the .nfo file as Antz_5.1_R1.nfo (poster should be saved there as well.

This will fully automate export and would also allow ppl to backup movie info/posters directly to where the media is located.

cool huh  8)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version