Author Topic: "imagepath" statement  (Read 3537 times)

0 Members and 1 Guest are viewing this topic.

Offline CAD

  • Power User
  • ****
  • Posts: 167
  • I've got my eye on you!
    • View Profile
"imagepath" statement
« on: August 11, 2009, 08:03:40 am »
Hi - Great program.
I'm trying to export posters to the root directory of where im saving xml.

under%Options%
imagepath="images/"

I have tried removing this but no posters get saved. Also tried setting it to imagepath="". Posters dont get saved
I can set it to imagepath=" " (space) but xml <tag>{%value=poster}</tag> then has a space at the front of it.
I can set it to imagepath="extension", this saves poster as extensionimage_blah_blah.jpg but also creates a directory called extension

Also -  is it possible to save the poster as titlename. Set something like imagename="{%value=title}.{%value=imageextension}" under options so to save image as title.jpg. When doing export it sets the outputted jpg name to title (or whatever other options u want.)


« Last Edit: August 23, 2009, 03:36:14 am by rick.ca »
three fingered salutation

Offline rick.ca

  • Global Moderator
  • *****
  • Posts: 3241
  • "I'm willing to shoot you!"
    • View Profile
Re: imagepath=
« Reply #1 on: August 11, 2009, 10:01:53 am »
This is what you're looking for...

New export options

Export near video files:
Code: [Select]
nearfiles=".[extension]"
Image file name format:
Code: [Select]
imagenameformat="[format]"
Following variables can be used:
//%id%  - Internal ID
//%w%   - MaxWidth
//%h%   - MaxHeight
//%ext% - Extension
//%f%   - Field number (available only if exporting multiple images)
//%fs%  - Field String (poster/screenshot/frontcover/cdcover/photo) (available only if exporting multiple images)
//%t%   - Title
//%ot%  - Original Title
//%y%   - Year (only for movies)

Offline CAD

  • Power User
  • ****
  • Posts: 167
  • I've got my eye on you!
    • View Profile
Re: imagepath=
« Reply #2 on: August 12, 2009, 05:56:01 am »
thanks dude - imagenameformat="[format]" like a treat.
mycode
%options%
imagenameformat="%t%%ext%"
%options%
<text...>
<text...>
<thumb>{%value=poster}</thumb>
etc
this saves poster with filename of title.jpg but oinly if i have imagepath=" <something>"
i can save this into a subdirectory i guess, but then i have to manully move them = pain.

i have a cpl of things i can't workout.
i can't figure out how to save poster to the same place as exported xml
i have to have imagepath="<some text> or it won't save the poster.
if  I remove imagepath statement it doesn't save.

Also i don't understand what nearfiles=".[extension]" is for or how it works.
if i add this with an extension lile "nearfiles=".jpg" it doesn't prompt me to save the entry, but if I look in my save directory, i have a file called ".jpg" that contains xml data i am trying to export.
three fingered salutation

Offline rick.ca

  • Global Moderator
  • *****
  • Posts: 3241
  • "I'm willing to shoot you!"
    • View Profile
Re: imagepath=
« Reply #3 on: August 12, 2009, 07:17:24 pm »
Quote
i can't figure out how to save poster to the same place as exported xml

Can you save the xml in the same directory as the posters?

Quote
Also i don't understand what nearfiles=".[extension]" is for or how it works.

This saves the exported files with the same pathname as the media, but with the specified extension. Probably not what you want, as "I'm trying to export posters to the root directory of where im saving xml" suggests you need them all in the same directory.

Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
Re: imagepath=
« Reply #4 on: August 13, 2009, 12:07:30 am »
I'll fix the issue with imagepath in the next plugin update
Gentlemen, you can’t fight in here! This is the War Room!

Offline CAD

  • Power User
  • ****
  • Posts: 167
  • I've got my eye on you!
    • View Profile
Re: imagepath=
« Reply #5 on: August 13, 2009, 01:41:43 am »
Quote
Can you save the xml in the same directory as the posters?
yes but i need to remove "nearfiles=" first, choose a location to save to then renable nearfiles statement to have poster save in root and xml NOT have imagepath statement added. poster is still savedin images/ subdir.
i don't get to choose a save location when i have "nearfiles="
 
Quote
suggests you need them all in the same directory.
correct :) and xml not have imagepath path added. so
<thumb>{%value=poster}</thumb> will output <thumb>movietitile.jpg</thumb>
not <thumb>images/movietitile.jpg</thumb>

Quote
I'll fix the issue with imagepath in the next plugin update
Cool :)

to help with debugging (maybe) :)
i don't know how "nearfiles=" is suppossed to work, but if i have
nearfiles=".nfo" i get xml with a filename of .nfo
if i have nearfiles=".jpg" i get xml with a filename of .jpg (nothing infront of the . )
if i have nearfiles=movies.xml" i get xml file saved with a filename of movies.xml

My next question after this is going to be - can I save as separate xml files named to movie title. :)
something like nearfiles="%t%.xml" to export titlename.xml and poster

just so you know what i am want to do....
i want to select a bunch of movies and export separate xml files and poster named by title.
three fingered salutation

Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
Re: imagepath=
« Reply #6 on: August 13, 2009, 01:53:29 am »
You will be able to export in separate files but they can be named like smth_[movie id].[extension]. I'll think of improving the naming here later.
Gentlemen, you can’t fight in here! This is the War Room!

Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
Re: "imagepath" statement
« Reply #7 on: September 09, 2009, 11:23:54 pm »
Take a look at the new export plugin with file name formatting...
More info: http://www.videodb.info/forum_en/index.php?topic=1493.msg6483#new
Gentlemen, you can’t fight in here! This is the War Room!