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.


Messages - svenne

Pages: 1 2 3 4 5 [6] 7 8
101
Quote
I guess you can't use the filename after-the-fact to create the directory.
Yes. I will change that as soon as Nostra has implemented the variables necessary.

I managed to add support for hyperlink types "Title" and "Original Title" now (to templates "HTML Frames" and "HTML List"). So supported hyperlink types now are "ID" (= mid = "Database Record ID", see here!), "URL", "Title" and "Original Title".

102
Finally I can reproduce the bug. Hooray!!!  ;D :-\
It doesn't reset the viewdate, but sets it. If a viewdate is already there, it is not altered. That's what happens on my PC, at least... Can you confirm this bevaviour? Then I could post a small bug report.

103
Quote
Are you using a skin that includes both viewed (the flag/date combo) and viewdate (just the date)?
Yes. I'm using the standard "PVD Classic".

Quote
...than get the mid
I always use mid ("Database Record ID" is the same, if anyone get's confused now) because then I can export working links... But I understand your point and most users might prefer title links, as long as the title is unique... Don't know if I could make those work somehow in my export templates. JavaScript functions called from one frame (from the frame with the movie details), but relying on information from another frame (the title list on the left, where I would have to fetch the targeted title) are often blocked by browsers.  :'(
[Edit: I just tried if I could to get title links to work in my export templates and it was possible... :)]

Quote
Maybe mid should be added to the skin engine...
Oh yes, I would appreciate that. However, if it should be kept out of the movie details due to it's special nature: if you right click on a movie in the list, perhaps there could be a "Show internal Database Record ID".
I really like this link type, although I first assumed this should point to "Movie ID" (num) and not to "Database Record ID" (mid), but since my Movie IDs are not unique (I "misused" them as Media IDs and I'm really glad this is possible!!), I'm quite pleased to have some kind of truly unique pointer thing at hand with this "Database Record ID".

104
Support / Re: TV Series disks
« on: July 10, 2010, 12:40:12 pm »
If you use ID as disc#, you could put that into the list on the left side...
in "Tools" -> "Preferences" -> "Movies" -> "Title formatting": enter the following line in the field "Show movie in the list as:"
%T  (disc# %N)

Don't know if there is a way to incorporate the other fields into the list (perhaps by modifying the skin?)

105
I don't use title links cause there are different movies with the same title, for example Dracula (with Bela Lugosi) and Dracula (with Christopher Lee) or 3:10 to Yuma, Dawn of the Dead, The Blob, etc.: original and remake... The Database Record ID is the only field that is definitely unique for each entry in the database.
The other thing is, ID links (aside from true URLs) were the only ones that could be exported in a way that they are not broken in the exported file(s) (even that needed some complex string replacements and some javascript, see "HTML Frames" export template).

The seen date of the target stays fine on my PC... Again one of those bugs hard to reproduce, only occuring with certain configurations?  :(

106
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]

107
Support / Re: TV Series disks
« on: July 09, 2010, 01:13:16 pm »
Quote
I can't use "ID" because that can change and also it doesn't like using the same number over again.
Why should it ever change (as long as you don't use Tools -> Reindex movies)?
And you can use the same ID multiple times, if you want to. It's a free to use field. The database has its own internal index ("Database Record ID"), which does not interfere with the "ID" field.
"Database Record ID" is not shown in the user interface but is completely hidden.

Just if you're curious: Since I sometimes need this internal "Database Record ID" I wrote a small export template to be able view it.

108
Support / Re: Bug: Export templates and UTF8BOM
« on: July 08, 2010, 12:18:36 am »
Ok, to narrow it down... the problem seems to be: all files exported by PVD with utf8bom (at least on my computer with WinXP) start with the following three bytes:
3F BB 3F
Displayed as ISO 8851-1 (or ANSI) this is: ?»?

But the correct BOM for UTF8 should be:
EF BB BF
Displayed as ISO 8851-1 (or ANSI) this is: 
This one works fine and is recognized as UTF8.

I attached a zip containing a text file exported with PVD (template: "Plain list.ptm") using UTF8BOM (called "file as exported by PVD.txt") and a second file where I (manually) changed the first three bytes to EF BB BF ("same file with BOM corrected manually.txt")...

Plain list.ptm:
Code: [Select]
%OPTIONS%
filter="Text Files|*.txt"
encoding="UTF8BOM"
%OPTIONS%{%value=203}. {%value=title} / {%value=origtitle} ({%value=year}) [{%value=genre}]

Quite often programs change characters to "?" when the character that is exported does not fit the encoding. Might be a hint, but I'm wondering if it makes any sense, because ï and ¿ are both present in the ANSI character table.


[attachment deleted by admin]

109
Scripts and Templates / Re: Export to HTTP in 1 page
« on: July 07, 2010, 01:33:23 pm »
I really like to remove these lines from the .ptm-file:
sortby="3"
sortdir="sdAscending"

When you remove them, your database entries will be exported with the current sort order you chose in PVD.

Elsewise:
http://www.videodb.info/help/hlp_export.html
So if you want to have them always sorted by title the following should work:
sortby="title"

110
Support / Re: Bug: Export templates and UTF8BOM
« on: July 07, 2010, 01:03:24 pm »
Quote
Unfortunately I can't reproduce the problem
Just a guess: perhaps something is different with your database that has an effect on this issue? Did you try it with a newly generated database, too?

111
Support / Re: Resetting "seen" indicator
« on: June 19, 2010, 12:28:38 am »
Do I understand it right that you only want to mark your movies as "unseen"? In PVD just mark them all with Ctrl+A, right-click the selection, move down to the submenu "Seen" and choose "Not seen"...

112
Scripts and Templates / Re: Export Template: Simple List (Rich-Text)
« on: June 15, 2010, 10:10:50 pm »
Yes, Rich-Text is complicated, but in the end it's a markup language like HTML.
If someone's interested and wants to know more, here you can find the specifications:
http://msdn.microsoft.com/en-us/library/aa140277%28office.10%29.aspx

I didn't program that from scratch of course. I would have gone mad!  ;) I exported a draft in Word as Rich-Text file, did some modifications and copied and pasted the appropriate parts to the template.

Quote
I note that it would not be difficult to modify this to delimit the fields with tabs.
That's quite simple, even without changing the template, just use the search and replace function in Word:
Search for ") " and replace with ")^t"
If you want to exclude the bold font type for that (to ensure movie titles with parenthesis stay without tabstops), you can do so: In the search and replace dialog click on the format button and choose "Font", where you can advise word to search and replace only text that's not bold.

It also should not be that complicated to export to Rich-Text as table directly. The only thing I cannot export to a Rich-Text file are the posters, because they would have to be embedded directly into the file. External image files don't help here:
http://msdn.microsoft.com/en-us/library/aa140283%28v=office.10%29.aspx#rtfspec_24

113
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...

114
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!!

115
I made the database filename the default heading, so if you (in PVD) go to File->Save as and save your database as "Rick's Movies.PVD", all export templates I wrote would use "Rick's Movies" as default heading... bad idea?

Quote
idea of linking the subdirectory
I will post a feature request, perhaps Nostra will find the time to add a variable handing over the filename from the "save"-dialog in the %OPTIONS% section.

116
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.

117
Nostra implemented some special values you can use within the rest of the template (outside of the %OPTIONS% part), documented here (if anyone wonders): http://www.videodb.info/help/hlp_export.html
There are
{%value="206"} - Path to the first page (HTML)
{%value="207"} - Path to the index file for the current record (HTML)
{%value="215"} - Path to the current record's file (HTML)
{%value="220"} - Path to the index file for the current record
just to name a few. And there are functions to extract a filename (without path) from these values or its extension, and in combination with StringReplace you can have the filename without its extension. So your suggestion to take the filename (without extension) as headline would not be that difficult to achieve.
But I was thinking of something else already: If the user decides to name the exported file "statlersmoviecollection.html" it would be nice to name the subdirectory containing all the accompanying files (like CSS stylesheets and poster images) "statlersmoviecollection_files" instead of "htmlprintfiles". Not only that the user would immediately see that both file and folder belong together, Windows also would recognize this and treat them as if they were glued together. For example, if you moved the html file to a different location, the subdirectory would automatically move too, etc.

118
Thanks for the info on IE Tab Plus.

Quote
...user would have the ability to name the report whatever they like
I tried a different approach now to provide full control over the title apart from the filename...

Something different: Within the template, in %OPTIONS%-area: is it possible to get the filename that was chosen by the user in the filter dialog, with and without extension? Something like %filename%?
Then I'd like to change the subdirectories name from "htmlprintfiles" to "%filename%_files" (and I would need to omit the filenames extension here) to take advantage of this Windows feature:
http://paulelso.wordpress.com/2006/09/20/xp-folder-option-managing-pairs-of-web-pages-and-folders/

You can always find the newest print template here.

119
Ok, no sequential numbers then. Would have been a little bit more difficult to achieve than just showing/hiding things. But if someone really wants this, I could add the feature to reindex within the exported file (so you won't loose your original IDs in PVD). By the way, if you sort your database alphabetically prior to export, there might be no real need for a table of contents with numbers. But if you'd like to have it, just tell me.

Yes, some poster images will span over two pages in Firefox as long as you don't choose "one page per record", but Internet Explorer for example handles this in a different way and avoids to split the images. So I don't want to force the "one page per record" setting, but instead let the user decide what to do. A CSS rule could be added to tell the browser never to split the DIV-tag containing the poster ("page-break-inside:avoid;"), but Firefox still ignores this. Might be implemented in near future though.

I added 'show/hide genre' now...

120
I can't reproduce that behaviour, works fine here on Firefox 3.6.3...  :o
PVD never overwrites existing files (except the main html files and the poster images). Did you export to a directory where the subfolder "htmlprintfiles" already existed? Old versions of the stylesheets would be a problem. Try to delete "htmlprintfiles" and then do a fresh export with "HTML Print Layout". Please let me know if it works afterwards.

Ok, I will add sequential numbers soon.
I added ID, cause you can use the ID to index your DVDs and stick the number onto the cover of every DVD. Makes it easier to find the right one...

Pages: 1 2 3 4 5 [6] 7 8