Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - svenne

Pages: [1]
1
Support / Bug Report: Windows 8 and export templates...
« on: December 03, 2012, 08:20:24 pm »
Hi nostra!

The following template option seems to be broken in Windows 8...  :o

%fname% - selected target filename (without extension)

It was reported in the "Export template: HTML"-Thread. See details here:
http://www.videodb.info/forum_en/index.php/topic,1844.msg16081.html#msg16081

Best regards,
svenne

2
This is just a very small thing...

If you want to create a link to another movie in your database, did you ever wonder how to use "link type: ID"? The ID you'd need here is not the one from the "ID" field, but the unique one from the internal database index ("Database Record ID"). Just don't get confused!!  ;)

This "Database Record ID" is not visible in PVD.

How to create such a link in detail:
- select some text in the "Description" or "Comments" field (any custom fields should be fine, too)
- right click on the selected text and choose "Create Hyperlink"
- if you choose "Link type: ID", then "Value" has to be the hidden "Database Record ID" instead of the "ID" shown in PVD

Since I didn't find any other way to view the "Database Record ID", I wrote a very simple export template for that purpose (see attachment)

Move the template file "ID + Database Record ID + Title (Textfile).ptm" into the subfolder \Plugins\Templates of the PVD program folder. It will be listed in the menu "Export" after you restart PVD.

[attachment deleted by admin]

3
This export template generates a compact list of the movie titles in your database. Current sort order is kept. The list is exported as formated Rich-Text (.RTF) and can be opened, edited or printed with Microsoft Word, for example.

Line format:
ID.  Movie Title (year)  (genre) (filesize, codec, languages)

You will always find the newest version attached to the last post of this thread...

4
A feature request for export template development (http://www.videodb.info/help/hlp_export.html)...

When developing export templates, in %OPTIONS% section there seems to be no way to access the filename that was chosen by the user in the "save as" dialog. It would be neat to have the filename without extension for additional processing:

As it is now, all static files (stylesheets, background images, etc.) may be copied to a subfolder (which can go by a name like "HTML-files" or whatever). The subfolder would be created along with the exported file. I'd like the name of this folder to depend on the name of the exported file. So what I want to do: If the user chooses "peter's database.html" as export filename, I'd like to copy all static files to a subfolder called "peter's database_files". Hence it would be obvious that both belong together. In addition to that, Windows would automatically link files and folders named that way and treat them as a pair:
http://paulelso.wordpress.com/2006/09/20/xp-folder-option-managing-pairs-of-web-pages-and-folders/

Maybe you can add a new variable for the %OPTIONS% section providing the users chosen filename without extension and perhaps, just in case, also a second one providing the full filename (or the extension alone)?

If %fname% would be the variable for the filename without extension, something like this shall work:
Code: [Select]
filter="HTML Files|*.html;*.htm"
copyfile="template\style.css<->"%fname%_files\style.css"
imagepath="%fname%_files\images\"

Would be really great.
And by the way, thanks a lot for all your efforts, of course!!

5
Support / Bug: Export templates and UTF8BOM
« on: June 07, 2010, 12:36:48 am »
This is about export templates and the charset encoding UTF8BOM, PVD v0.9.9.21:
It seems to me that something goes wrong when exporting with:
encoding="UTF8BOM"
Every template using UTF8BOM generates three characters (the byte order mark) at the beginning of the exported file. These should be invisible, but every program I tested does not interpret them. They are displayed instead. Special characters within the text are broken. As an example: "ü" will be "ü". Notepad (unicode capable, WinXP) reports the files to be ANSI-encoded instead of UTF-8. Different files (not generated with PVD) saved as UTF8 with and without byte order mark are handled correctly by Notepad.

6
Scripts and Templates / DivXBase Export Template
« on: May 04, 2010, 12:48:10 pm »
DivXBase v1.12 (by MetaGen) is a rather old movie database application (it is available in german only, I think). There was no development anymore for years now, the project is completely abandoned and its original homepage is gone, too (although you can still download it from several freeware sites).

So why bother? Since it is very small, even doesn't need to be installed (just one single .exe), but nevertheless is able to analyze media files on its own, this program was the weapon of choice for everyone in need for something very compact and easy to use. But as time went by DivXBase became more and more antiquated. New codecs where developed, Matroska and other containers became more present, and DivXBase can't handle them. Data had to be added by hand in these cases. Information stored about codecs is very limited within DivXBase anyway.

I know a lot of people still running DivXBase. And although DivXBase is very simple, Personal Video Database is the first app that provides all of its crucial features, concerning different storage media, split media files, same IDs for different entries (for files stored on the same DVD for example), customizable export, multiple databases, etc.

But as you can imagine, it is much easier to give PVD a try if you know that you could switch back whenever you want to...

To import DivXBase data in PVD is easy (via CSV-import):
- export your DivXBase database: Choose "Export to Exel File (CSV)" in DivXBase
- the exported file needs to be opened in WordPad (not Notepad, cause this might cut off lines longer than 256 chars)
- in WordPad you need to search and replace (press CTRL+H), choose case sensitive
- replace every occurrence of " x " (it's three characters: space+x+space) with "x"
- save the file
- in PVD configure the CSV import ("Tools"-Menu -> Preferences -> Plugins, choose "CSV" (Type: General Import) and click "Configure"
- add fields to the right pane in this order: "Title", "Media Count", "Languages", "Video Codec", "ID", "Resolution", "Size", "Length", "Quality", "Comment"
- set Delimiter to ; and Text Qualifier to "
- enable "Ignore Header"
- that's it, after clicking "OK" twice you can go to the "Import"-menu and choose "Get Movies from CSV file" and import the data
- be patient, it might take some time to finish

With the attached export template PVD can rebuild a fully functional DivXBase database file (.dxb). Information on loaned entries will be exported, too. Limitations: PVD's URL-field will not be exported to DivXBase's OFDB- and IMDB-numbers.


[attachment deleted by admin]

7
Support / Bug with templates: GIF exported as BMP
« on: May 03, 2010, 05:34:33 pm »
When using templates: GIF-images are exported as bitmaps, but with file extension GIF, as it seems. At least Internet Explorer (v7) only displays them when renamed to BMP. Code used to export them:
{%value=poster maxvalues="1"}
Im running version 0.9.9.21 on WinXP.

And now for something completely different  ;) (won't start another thread for this...):
In the help file under "Posters, Photos, Screenshots"-Subtemplates the parameter "imgdata" is not mentioned:
http://www.videodb.info/help/hlp_export.html
I guess you didn't leave that that out on purpose, cause it's quite necessary to have any posters exported at all with a subtemplate.

8
Some strange behaviour when exporting poster images via template...
I would suppose the following line to resize every poster image that is wider than 350px, but it does not.
{%value=poster width="350" height="500"}
If a poster image is smaller than 500px in height, it can be a million trillion px wide ;) without being resized.

9
Scripts and Templates / Export template: HTML List (English + German)
« on: April 01, 2010, 03:18:03 pm »
I'd like to contribute an export template. It generates a HTML-list (an unordered list with some details) and is formatted via style sheets (HTML and CSS both stored in one file). The print styles differ from screen styles: different margins, smaller font, white background, black font color, font face is changed to "Calibri" (in screen view it's "Helvetica"). If either of them is not installed on your PC, the style switches to "Verdana" or to the standard sans-serif font selected in your browser.
The styles are W3C-compliant and should render fine with any modern browser, with older ones it might look crappy or even be unreadable. I tested them with Firefox 3.6 and IE 7 only.
Hope, someone will like it...

The first template is in English, the second one is in German.

----> You'll find the newest templates here

10
Support / duration of the film (when exported) is not rounded
« on: April 01, 2010, 02:30:46 pm »
There is a minor(!) issue when displaying in minutes or exporting via template: {%value=length}
The seconds are just cut off instead of being rounded. The shortest short film in my database is 54 seconds, what becomes a runtime of 0 minutes.
Maybe it would even be a good idea to always round to the next full minute (01:22:12 = 73 minutes). That seems to be the common practice for DVD-covers and throughout the net.
By the way, is there a possibility to to get the duration in seconds or as hh:mm:ss when exporting via {%value=length}?
(I'm running v0.9.9.18, WinXP)

11
Support / Date fields can't be cleared
« on: April 01, 2010, 02:23:36 pm »
Just a minor bug and not a big deal to solve I hope: if you once enter a date into the field "Release date", you can change it afterwards, but you can never delete/clear it anymore. Same with "Seen date".
(version 0.9.9.18, WinXP)

Pages: [1]
anything