Welcome to the Invelos forums. Please read the forum rules before posting.

Read access to our public forums is open to everyone. To post messages, a free registration is required.

If you have an Invelos account, sign in to post.

    Invelos Forums->DVD Profiler: DVD Profiler Online Page: 1 2 3 4 5 6  Previous   Next
redscull's custom online collection
Author Message
DVD Profiler Desktop and Mobile RegistrantDr. Killpatient
Here's my card
Registered: May 19, 2007
Reputation: Highest Rating
United States Posts: 5,917
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Never tried that JS on an iPad/iPhone, only demand for it was for a company web app which was only displayed in a browser.  *shrug*
DVD Profiler Unlimited RegistrantRobAGD
Registered: June 3, 2007
United States Posts: 706
Posted:
PM this userDirect link to this postReply with quote
Want me to send you the XML ?

and that sounds right for the images, they were all DiskID's

-Robert
DVD Profiler Unlimited RegistrantRobAGD
Registered: June 3, 2007
United States Posts: 706
Posted:
PM this userDirect link to this postReply with quote
got it  293553403

<UPC>Disc ID: 2F9D-3A55-E34A-AD03</UPC>

its pulling the letters out.

-R
 Last edited: by RobAGD
DVD Profiler Unlimited Registrantredscull
Registered: June 24, 2007
United States Posts: 36
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Ah. Yes, apparently I'm stripping the numeric digits out of Disc IDs when the UPC is a Disc ID instead of a true UPC. Thanks for the experimentation.

I could probably fix that easily enough. Hopefully I can get some time tonight.

Update:
The ZIP now contains v2.0.4 which has switched from using the XML's UPC property to the ID property so that it'll understand box set discs in addition to regular titles. I also added all three image previews into the app itself so that it's easier to make sure that all of a title's images are found.
DVD Collection
WebGen - use this tool to create your own online site like mine
 Last edited: by redscull
DVD Profiler Desktop and Mobile RegistrantStar ContributorBad Father
Registered: July 23, 2001
Registered: March 13, 2007
Posts: 4,596
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
I noticed the problem with Disc IDs last night as well. I uploaded all of my images manually and of course they have the original file names generated by DVD Profiler. Any profile that used the Disc ID had a .php page generated by your program stripping the alpha characters from the Disc IDs which created numerical .php pages so the images would have broken links. Although, I've also noticed many of my other titles with normal UPC numbers where the thumbnails have broken links but when selected, the full-sized images display just fine. "21" for example: UPC 043396214552. The thumbnail images are in the pics folder with the proper file names, 043396214552f.jpg and 043396214552b.jpg but the image link is broken. If you click on the thumbnail image holder though it opens up the full-sized images just fine. This is happening to many, many titles.

I'll download the new version and see if it corrects the problem and let you know.
My WebGenDVD online Collection
DVD Profiler Unlimited Registrantredscull
Registered: June 24, 2007
United States Posts: 36
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
It's the same javascript function in utils.js that builds the img url whether it's for the thumbnail or the larger cover art. It seems very unlikely that it could use the same UPC/code to create the php page and find the covert arts but not find the thumbnail.

I can't see your error now because it looks like you're refreshing the web files (I do see the image files are there, though). I'm wondering if it was just a matter of a browser caching problem. We may never know, now, but if your refresh still exhibits the issue, I'd like to see it.

One way you should be able to test for the images now is to load your collection in webgendvd (2.0.4), select the first title, then hold down your Down array key so it scrolls through the entire list. It will attempt to load the front, back, and thumb art for every title it scrolls through, and if it hits one where it can't find any of the three images, it'll popup an error message. If you can scroll through the whole list without an error message, then any img missing issue on the uploaded site was either an FTP hiccup or a browser caching issue.

Edit: You're in the middle of uploading now!
DVD Collection
WebGen - use this tool to create your own online site like mine
 Last edited: by redscull
DVD Profiler Unlimited RegistrantRobAGD
Registered: June 3, 2007
United States Posts: 706
Posted:
PM this userDirect link to this postReply with quote
Cool, updated

Its processing the uploads now.

looks to be generating proper files.

Question now would be what abot the older shortened files ? I take it, that it will generate a new "index" file.

Thanks for all the work !

-R

Just a suggestion if you can manage it, if you dont need the back thumbnail image, then why upload it ?
 Last edited: by RobAGD
DVD Profiler Desktop and Mobile RegistrantStar ContributorBad Father
Registered: July 23, 2001
Registered: March 13, 2007
Posts: 4,596
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Problem:

All of my images now load properly, including thumbnails, but your latest update now only generates .php pages for profiles that have Disc IDs, all other profiles with normal UPCs are ignored and generate the 404 - Not Found error when I click on the thumbnails. I checked the DVDP folder on my site and, sure enough, the only .php pages in there have Disc ID numbers. No .php pages for normal UPCs were generated.
My WebGenDVD online Collection
DVD Profiler Unlimited Registrantredscull
Registered: June 24, 2007
United States Posts: 36
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
@RobAGD
The "index file" is the four data files and the search file. That's why those five files are always re-generated in addition to any new title-specific [upc].php files. The "shortened-upc" files are still on your disk, but they're obsolete. Nothing is referencing them now; you could delete them yourself to save space, but it's just some kilobytes.

@8ballMax
That's not a bug so much as improper usage. When you run the generator, it refreshes the four data files and the search file, but it only generates title-specific [upc].php files for "newly added" titles. It differentiates new vs. existing by whether or not the [upc].php file for a title already exists in the local output folder.

I'm betting that you deleted all the [upc].php files from your web site, but didn't also clear them from your local output directory. There was actually no reason to delete from either location in this case because my fix was just for box set discs that needed to use ID instead of UPC. As the generator ran through your collection, it didn't find [upc].php files for the box set discs (because now it knows to use the ID, not the shortened-upc) so it created [upc].php files for them and added them to the upload queue. But all the other already-working titles had their [upc].php files and so it skipped re-generating those and excluded them from the upload queue.

This feature is what ensures that adding new titles to your collection is always a faster generation and streamlined upload process (you don't upload your whole collection every time you upload). I should have told you that this fix for box set discs wouldn't require you to delete anything from your web site. It simply needed you to re-run the generator/upload to fix those specific discs. Sorry about that.

Since I'm assuming you still have all the [upc].php files locally, just use your FTP tool to upload them all back to your web site. Going forward, I'll be sure to explicitly state if a new version of the tool requires a forced clean and re-upload of the entire site. The idea is that this should never be the case.
DVD Collection
WebGen - use this tool to create your own online site like mine
 Last edited: by redscull
DVD Profiler Desktop and Mobile RegistrantStar ContributorBad Father
Registered: July 23, 2001
Registered: March 13, 2007
Posts: 4,596
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Quoting redscull:
Quote:

@8ballMax
That's not a bug so much as improper usage. When you run the generator, it refreshes the four data files and the search file, but it only generates title-specific [upc].php files for "newly added" titles. It differentiates new vs. existing by whether or not the [upc].php file for a title already exists in the local output folder.

I'm betting that you deleted all the [upc].php files from your web site, but didn't also clear them from your local output directory. There was actually no reason to delete from either location in this case because my fix was just for box set discs that needed to use ID instead of UPC. As the generator ran through your collection, it didn't find [upc].php files for the box set discs (because now it knows to use the ID, not the shortened-upc) so it created [upc].php files for them and added them to the upload queue. But all the other already-working titles had their [upc].php files and so it skipped re-generating those and excluded them from the upload queue.

This feature is what ensures that adding new titles to your collection is always a faster generation and streamlined upload process (you don't upload your whole collection every time you upload). I should have told you that this fix for box set discs wouldn't require you to delete anything from your web site. It simply needed you to re-run the generator/upload to fix those specific discs. Sorry about that.

Since I'm assuming you still have all the [upc].php files locally, just use your FTP tool to upload them all back to your web site. Going forward, I'll be sure to explicitly state if a new version of the tool requires a forced clean and re-upload of the entire site. The idea is that this should never be the case.


Oops . You assumed correctly sir. I deleted everything from my web site but not the local output directory. I'm uploading all the .php files as we speak. I'm certain that will resolve all issues. Sorry about that.

Thank you for all your help .
My WebGenDVD online Collection
DVD Profiler Unlimited Registrantredscull
Registered: June 24, 2007
United States Posts: 36
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Quoting RobAGD:
Quote:
Just a suggestion if you can manage it, if you dont need the back thumbnail image, then why upload it ?
I considered removing it from the queueing process, but they're so small I figured it wouldn't really use up too much space. And the reason to include it is in case someone wants to customize some aspects of the site design, they have access to both thumbnails if that's something they want to use.

For example, someone might prefer to tweak the site so that when it's accessed by a mobile browser, it always uses only the thumbnails, even when viewing a title's specific page, for conserving bandwidth. Or maybe they want to hook in some kind of mouse-over floating preview with front/back thumbs when the mouse cursor hovers over a title in the main list.

The core files (page.php, utils.php, & utils.js) are pretty easy to expand with custom stuff like this for people who are good at html/javascript. I've made an effort to keep as much code out of the generated files (search.php & [upc].php) as possible so that the generation process doesn't "wipe out" custom tweaks.

Quick Example:
Here's a test target location I was using with a small set of titles (with a box set and such) while I was working through the issues you and Max found. It took me literally only a few minutes to insert a simple function into utils.js that makes it so that mousing over the thumbnails toggles to the back view (note that not every title on that sample set actually has a back scan so some look identical when toggled). I don't intend to use that feature on my real site or include it in the "shipped" core files, but it's an example of a simple tweak someone else might want.
DVD Collection
WebGen - use this tool to create your own online site like mine
 Last edited: by redscull
DVD Profiler Unlimited RegistrantRobAGD
Registered: June 3, 2007
United States Posts: 706
Posted:
PM this userDirect link to this postReply with quote
Ok, I have a few ideas. 

Everything is working well so far, I am manually changing a few image files, actually this has me changing a few things within my own collection.

BTW - did find one odd ball, thing on a Local profile, I made the profile of Gen13, I cant upload it to DVDP because its a really bad pirate film and I have not been able to find the proper art for the DVD ( not released in the US and cant find it in any collection of DVD's so far )

So this profile has a ID of 11111 ( I just used that for UPC ) and a locally of Australia It didn't seem to upload the image files ( there is no back image as well ) Not sure if this was so much an issue with your program or something else. Just thought I would note it. I fixed it by forcing the image UL.

Some thoughts :

A next button on the sides ? Center the covers in the page then have a <> on the sides for next page via clicking up top.

The ability to sort by collection ?

Thanks again for your work !

-R
DVD Profiler Unlimited Registrantredscull
Registered: June 24, 2007
United States Posts: 36
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
When I switched v2.0.4 to use the ID property in the exported XML instead of the UPC property, it's possible that that made your local-only title unable to work properly. I'm not sure how your custom UPC fits into DVD Profiler's export scheme. When I go to your site and search for Gen13, I see that webgen consider's its ID to be 111111.2. So it's of course created the 111111.2.php title page and looking for 111111.2f.jpg and 111111.2b.jpg. If you say you entered 111111 as the UPC, I wonder if DVD Profiler added the .2 to mean 2nd custom local title or something. It's hard for me to say exactly how to support titles that aren't part of DVD Profiler.

I would say that you could enhance the site yourself to add next/prev buttons, but in looking at it, that might be a challenge since I don't make the ids for those tabs easy to interpret. I'll consider adding the info, but that doesn't necessarily mean I'll actually add the buttons to the "shipped" copies of the core files.

What sort option are you asking for? I personally find that title, production year, and collection number are all I really ever need. I include disc release date even though I generally don't care about it. The trouble with including more sort options is that it bloats the data files and slows down the generation process. The best way to handle efficient sorting with lots of options is to use a database, and I specifically chose a simpler approach for the site that doesn't require creating and syncing a db. The downside to this simplicity in setup and maintenance is that I can't support a lot of fancy sort, search, and filter operations.
DVD Collection
WebGen - use this tool to create your own online site like mine
DVD Profiler Unlimited RegistrantStar ContributorMithi
Sushi Annihilator
Registered: March 13, 2007
Reputation: Superior Rating
Germany Posts: 2,217
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting redscull:
Quote:
I wonder if DVD Profiler added the .2 to mean 2nd custom local title or something.

Nope, that's the Locality. See Article
The too short UPC shouldn't(!) make any problems there.

By the way: I gave your first version a quick run and it looks quit nice. I too had a problem with the ftp, and afterwards your program "refused" to upload because it was of the impression that this already happened. Maybe some kind of "reset"-function would be prudent? Or a real look at the server whether the file is there? (Although I'm not sure how complicated that might get.)

Only thing I really dislike is the saving in the program directory, under Win7 this is of course not possible and it gets re-directed to "\Users\$Username\AppData\Local\VirtualStore\Program Files\Webgendev\output" ... easy to find ... 8)
Would be nice if the data were to be saved in the user-directory like DVD Profiler does.

cya, Mithi
Mithi's little XSLT tinkering - the power of XML --- DVD-Profiler Mini-Wiki
DVD Profiler Unlimited RegistrantRobAGD
Registered: June 3, 2007
United States Posts: 706
Posted:
PM this userDirect link to this postReply with quote
Well, my collection is broken down to fields like :

BluRay
Movies
Seasons (TV shows etc)
Animated
Sports

As an example.

Just some thoughts, if its a lot of work for you, don't worry to much about it.

The thought I had on the .2 was maybe something to do with locality ? When I checked it was still UPC 11111

Just mentioned it in case it comes up again.

-Robert
DVD Profiler Unlimited Registrantredscull
Registered: June 24, 2007
United States Posts: 36
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
@Mithi
You can "reset" it by clearing the [upc].php files from the output subdirectory of the exe's location. I could add an option in the program itself to do this, but I'm not sure who it'd really help. If the initial upload is too massive and fails, resetting to do it again surely wouldn't fare any better.

Perhaps another option would be a title-by-title option to somehow mark that you want a particular title to be included in the upload queue regardless of whether webgen thinks it needs to be regenerated and uploaded or not. I'd need to redo some of the UI in order to present that kind of logic to the user, though.

I could consider writing the application "properly" and save to the Application Data directory, but I use XP and thus really don't care. I also favor "sandbox" style apps where everything is in one folder. No external data directory. No registry entries. Move or delete the app all via its folder.

As for Rob's 111111 custom UPC, I'd have to see what the XML looks like for that particular title to know if it needs to be handled special within webgen. I would just assume that DVD Profiler would inernally set the title's ID according to its scheme (which I suppose is what the 111111.2 represents), and that if Rob used DVD Profiler's built-in functions for giving the title cover art, DVD Profiler should have named the cover art with the same ID it assinged it. So I'm not sure why that title wouldn't "just work."


@Rob
I updated my test site with a prev/next page prototype. Because my test collection is so small, you need to reduce the rows/cols so that only two titles are shown at a time for the prev/next links to even appear. Obviously a real solution would want to be prettier. The simplest approach to making that work would require some changes inside the generated search.php to give modders better access points to the different main areas of the page. But you could actually accomplish a similar thing by only modifying the core files (no new webgen version needed) if you used floating iframes for the prev/next page links.

I think that, for now, I probably won't rush a new version. At this point, it's just feature enhancements, not bug fixes, and I don't want to prioritize that as highly. And I'd rather get more of them in one go than one-offs.

As for sorting options, what piece of meta data in the XML is that? Is there a category or something? How would sorting that way even work? What you've listed looks more like a filter than a sort. And right now, the only filter I support is by title text match using the text input box. I personally think a more robust filtering option makes the site too busy. That's something I dislike about the super fancy phpDVDProfiler tool. It's cool, but the sites it makes are just too busy. I never need all that power. I only want a simple, pretty listing and an easy way to check if I own something or get info on a title I own.
DVD Collection
WebGen - use this tool to create your own online site like mine
 Last edited: by redscull
    Invelos Forums->DVD Profiler: DVD Profiler Online Page: 1 2 3 4 5 6  Previous   Next