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->General: General Discussion Page: 1 2  Previous   Next
ProfilerQuery 2.0
Author Message
DVD Profiler Unlimited RegistrantStar ContributorGSyren
Profiling since 2001
Registered: March 14, 2007
Reputation: Highest Rating
Sweden Posts: 4,695
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
It's funny how hard it is sometimes to think just a little outside the box. When I first developed ProfilerQuery I thought "It's a pity that the xml export file has no info about the cover scans". And I just let it go at that.

It wasn't until today that it dawned on me. I can access them directly in the Images directory. So I have added code to get the file size of the front and back scans. For missing images, the file size is reported as zero. So here are some possible uses:

Missing cover scans - check for Front Image Size = 0
Low quality scans - check for images less than a certain size. Perhaps start with < 15 000.
Unnecessarily large scans (if you're short on disc space) - check for images larger than a certain size. Perhaps 100 000.
Missing back cover only - well, I think you get the idea.

By default ProfilerQuery looks for images for a database named Default in the MyDocuments/DVD Profiler folder. But you can change the path to the image directory by using Tools -> Settings from the menu, if needed.

You find the new fields under Other - Front Scan Size and Other - Back Scan Size.

Download from here.
My freeware tools for DVD Profiler users.
Gunnar
DVD Profiler Unlimited RegistrantStar ContributorGSyren
Profiling since 2001
Registered: March 14, 2007
Reputation: Highest Rating
Sweden Posts: 4,695
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
And another funny thing. I test the new version. I satisfy myself that it does everything that I want. I publish it.

And of course just moments later I think of something else that I could - and should - have added. In this case a way to check if front and back are of the exact same size. Because if they are the same size, then more than likely they are the same image, i.e. the front scan has been used both for front and back. And that is something that might be very useful to find out.

So, probably a personal record in fastest version update, I give you ProfilerQuery 2.1.0.

This test does not include profiles with no scans, i.e. where front size and back size are zero.
My freeware tools for DVD Profiler users.
Gunnar
 Last edited: by GSyren
DVD Profiler Unlimited RegistrantStar Contributordee1959jay
Registered: March 19, 2007
Reputation: Highest Rating
Netherlands Posts: 6,018
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Great work, Gunnar! Many thanks!   
DVD Profiler Unlimited RegistrantStar ContributorWigram
Don't blink!
Registered: June 6, 2007
Reputation: High Rating
Canada Posts: 950
Posted:
PM this userEmail this userDirect link to this postReply with quote
Works like a charm, thanks.
DVD Profiler Unlimited RegistrantStar ContributorGSyren
Profiling since 2001
Registered: March 14, 2007
Reputation: Highest Rating
Sweden Posts: 4,695
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
It should be noted that although the image data does not come from the xml file, that data is collected when the xml file is loaded, not when the query is run. So if you update images while ProfilerQuery is running, you need to reload the xml file for the changes to show. So in that regards it is the same as with any other changes you make in your collection.

Just thought I'd point it out so there is no confusion.
My freeware tools for DVD Profiler users.
Gunnar
DVD Profiler Unlimited RegistrantMark Harrison
I like IMDB
Registered: March 13, 2007
Reputation: Great Rating
United States Posts: 3,321
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting GSyren:
Quote:

And of course just moments later I think of something else that I could - and should - have added. In this case a way to check if front and back are of the exact same size. Because if they are the same size, then more than likely they are the same image, i.e. the front scan has been used both for front and back. And that is something that might be very useful to find out.


That's how my code works too.  If they're the same file size and dimensions, then I identify them as possibly being the same image.
Get the CSVExport and Database Query plug-ins here.
Create fake parent profiles to organize your collection.
DVD Profiler Unlimited RegistrantStar ContributorGSyren
Profiling since 2001
Registered: March 14, 2007
Reputation: Highest Rating
Sweden Posts: 4,695
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
The chance of proper front and back scans being of exactly the same file size seems to be pretty low. In my 7000+ collection I identified 60 profiles, no false positives. So zero wrong out of 7000 seems to be a pretty low percentage...

On the other hand I have no idea if I may have missed some profiles that have a front scan for back cover yet not being the same size. It would take a lot fancier coding to detect that. Doesn't seem very likely, but I gess it can happen.
My freeware tools for DVD Profiler users.
Gunnar
DVD Profiler Unlimited RegistrantStar ContributorGSyren
Profiling since 2001
Registered: March 14, 2007
Reputation: Highest Rating
Sweden Posts: 4,695
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Updated to version 2.2.0

What's New:
- Added a file watcher that notifies if the loaded file has changed and asks if you want to reload it.
- Added an option in Settings to reload automatically if the file changes

Why?
After doing many changes in Profiler I would sometimes re-export my collection, but forget to reload the XML file. Now there will be no more head scratching wondering why I still get the same result 

What? Me absent minded? 
My freeware tools for DVD Profiler users.
Gunnar
DVD Profiler Unlimited RegistrantStar ContributorWigram
Don't blink!
Registered: June 6, 2007
Reputation: High Rating
Canada Posts: 950
Posted:
PM this userEmail this userDirect link to this postReply with quote
I'm having problem running ProfilerQuery since upgrading to windows 10. The xml file loads OK, but after clicking "add selection criteria", the windows  which opens is empty. Some limited text appears if one pass the mouse over it.

I tried running as an admin, with no effect.

edit: ProfilerMissing, on the other hand, still works like a charm.
 Last edited: by Wigram
DVD Profiler Unlimited RegistrantStar ContributorGSyren
Profiling since 2001
Registered: March 14, 2007
Reputation: Highest Rating
Sweden Posts: 4,695
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Sorry to hear that. I guess I'll have to upgrade to Win 10 eventually, but I have no immediate plans. I'll see if I can get a clue what's causing it, but it's kind of hard when I can't verify.
My freeware tools for DVD Profiler users.
Gunnar
DVD Profiler Unlimited RegistrantStar ContributorWigram
Don't blink!
Registered: June 6, 2007
Reputation: High Rating
Canada Posts: 950
Posted:
PM this userEmail this userDirect link to this postReply with quote
Actually, I kept trying since my post and the program works fine, once the window displays completely. Upon opening, one can only see the radio elements on the left, but one can see all the options in the window by selecting them one by one. Once selected, it displays the options for that element.
DVD Profiler Unlimited RegistrantStar ContributorGSyren
Profiling since 2001
Registered: March 14, 2007
Reputation: Highest Rating
Sweden Posts: 4,695
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
New in ProfilerQuery 2.3.0:

Right click an entry in the result to show the thumbnail of the front scan.

(And I'm still on Win 7, so the Win 10 problem probably still exists. Sorry about that.)

Download here.
My freeware tools for DVD Profiler users.
Gunnar
 Last edited: by GSyren
DVD Profiler Unlimited RegistrantStar ContributorGSyren
Profiling since 2001
Registered: March 14, 2007
Reputation: Highest Rating
Sweden Posts: 4,695
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Just realized that the image display only works as intended if you don't re-sort the result set. I'll have a look at that. 

Edit: Fixed in 2.3.1
My freeware tools for DVD Profiler users.
Gunnar
 Last edited: by GSyren
DVD Profiler Unlimited RegistrantStar ContributorGSyren
Profiling since 2001
Registered: March 14, 2007
Reputation: Highest Rating
Sweden Posts: 4,695
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
It's not a bug, it's a feature!

Well, perhaps it is a bug, but let's call it an unintended feature, or possibly a benign bug.  And by now I can imagine one or two of you thinking - WHAT? Because you probably haven't noticed it, at least not yet. Well, I'm going to give you the background first, so bear with me.

When I came up with the idea to be able to show the front cover, I realized that I needed the full ID in order to build the filename. And since this wasn't necessarily part of the displayed result, I needed to get it somewhere else. So in 2.3.0 I saved the ID in a separate list, and I could access that list using the row position of the selected item in the grid. And that worked fine. Until I re-sorted the grid, after which the position in the grid and the position in the list didn't match.

My next idea was to get the ID from the dataset that was the source for the grid. But sorting the grid didn't sort the dataset, so that didn't work any better. Then finally I came up with an idea that worked. I added the ID as the first column in the datagrid and made it a hidden column. Worked like a charm. Except I forgot one thing ...

Save output to file (as well as Save and Run) exports the data from the datagrid. Including the hidden column. So you get a column in the output that you didn't ask for. Hopefully this doesn't cause too much problems, unless someone uses the csv file as input to some other custom program. If you import it into a spreadsheet, it's just an extra column that's easy to delete.

But it does illustrate a dilemma that developers often face. Changes can have unforeseen effects. In theory you should test every aspect of your program for every change you make. In practice that is often not feasible. In the case of hobby development, the sad truth is that testing is boring! You most often just test the obvious cases.

So - can this be fixed? Sure! Will this be fixed? Probably. Will it be fixed soon? If someone starts shouting at me - yes, otherwise eventually.
My freeware tools for DVD Profiler users.
Gunnar
DVD Profiler Unlimited RegistrantStar ContributorGSyren
Profiling since 2001
Registered: March 14, 2007
Reputation: Highest Rating
Sweden Posts: 4,695
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Presenting ProfilerQuery 2.4.0:

- Added "Has Episode Dividers" and "Has Group Dividers" to criteria.
- Added "Clear selection criteria" button to the selection tab, so you don't have to remove them one by one if you want to start over with entirely new criteria.
- Removed the extra ID column in the exported output as mentioned in my previous post.

When testing "Has Episode Dividers" I first thought I had a bug, because I got hits for several titles that should not have episode dividers. It turned out that they actually had episode dividers where they should have had group dividers. I don't know if this is a relic from an older version of Profiler, or if people just added the wrong type of divider. If you have a large collection, you probably will find some such titles.

Enjoy!
My freeware tools for DVD Profiler users.
Gunnar
DVD Profiler Unlimited RegistrantTraunStaa
Registered: June 2, 2009
Reputation: Highest Rating
Austria Posts: 306
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Again, very much appreciated, Gunnar. Greenie given 
    Invelos Forums->General: General Discussion Page: 1 2  Previous   Next