|
|
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: Desktop Feature Requests |
Page:
1... 3 4 5 6 7 ...11 Previous Next
|
"Cast & Crew Creator" |
|
|
|
Author |
Message |
Registered: March 18, 2007 | Reputation: | Posts: 6,461 |
| Posted: | | | | Quoting DJ Doena: Quote: Quoting GSyren:
Quote: Quoting mediadogg:
Quote: So changing that birth year would not create a new cast record, but either change the birth year for the existing record.
In the API you don't really have access to the cast/crew as people. You just can tell a profile that it contains this first, last and middle name with that birth year. There is no way to edit an actual person.
That is not me you are quoting. You know that I know better. Editing the cast and crew comes pretty close to editing a person. You can even make new ones. | | | Thanks for your support. Free Plugins available here. Advanced plugins available here. Hey, new product!!! BDPFrog. | | | Last edited: by mediadogg |
| Registered: March 18, 2007 | Reputation: | Posts: 6,461 |
| Posted: | | | | Quoting Magmadrag: Quote: Not sure if I should post this here or create a new thread as this could be a new tool - if even possible.
The difficulty for the possibiliy is that we don't list the death dates anywhere. If available, Luigi lists them, but if not.....
And I got to this as I had to find out that "Peter Cook (1937 - 1995)" is credited in several profiles as an actor after his death (e. g. "Terra Nova")
So if we would have any list of death dates a tool would be interesting to check out cast & crew, if they are credited after their death. That's only possible for "archive footage". The only chance to question if the credits could be correct is "Production Year - 90 > Birthyear".
It's only a thought (for a future far far away^^) but another way to find out probably wrongly used cast & crew At this point, anything is on the table. It is a new tool so we can do whatever we want. I will be in London for a week with my Son and family, so I will enjoy having some kind of project to play with when the kids are asleep. | | | Thanks for your support. Free Plugins available here. Advanced plugins available here. Hey, new product!!! BDPFrog. | | | Last edited: by mediadogg |
| Registered: March 18, 2007 | Reputation: | Posts: 6,461 |
| Posted: | | | | Quoting GSyren: Quote: Quoting mediadogg:
Quote: And if that does happen, I can envision a fix. Costly in terms of time, but it will work. Once the profile is saved, I can reload it with a refreshed database pointer and compare, and simply re-write to the database with the BY reset back to zero. I'm not sure that that is going to work. If the added profile contains a birth year, that would mean that Profiler used the existing cast (or crew) record. So changing that birth year would not create a new cast record, but either change the birth year for the existing record or fail, depending on how Profiler handles it internally. At least that's what I think will happen.
What might have a better chance of succeeding would be to assign a fake birth year (like 9999) instead of zero when adding the profile. This would force Profiler to create a new cast entry, which could possibly be changed afterwards to zero. Not sure though if such a change would change the actual database record, or just temporarily change a copy in memory. The cast is not not actually stored in the profile, just pointers to the database table. Rest assured that there is way to make it happen, using the API, even if you have to use tricks. I have working code by the way, for the originally proposed tool. No GUI yet, such as menus, progress bar, log, etc. And with all the ideas, it will be awhile before the first release, but I think it will have some fun stuff. Next task is to get the code I have working, running faster. It is painfully slow, but maybe not necessarily. Once I get that done, I should probably put a rudimentary GUI on it, so you guys can validate whether is is actually doing what I claim, and we can test any theories about what the API does or can be made to do, because we will have code. Which I am happy to share by the way. Nice thing about FauxAPI, is that you can change the code if you want, compile to dll and replace my version to test any idea you have. | | | Thanks for your support. Free Plugins available here. Advanced plugins available here. Hey, new product!!! BDPFrog. |
| Registered: March 18, 2007 | Reputation: | Posts: 6,461 |
| Posted: | | | | For whomever might be interested, here is the code so far:
(1) Create a master dictionary of cast and crew credits in the local database
The key is: "Cast_fn_mn_ln_{by}" or "Crew_fn_mn_ln_{by}"
The dictionary entry is an instantiation of the CastCrewEntry class:
class CastCrewEntry { private string _FirstName = ""; private string _MiddleName = ""; private string _LastName = ""; private string _Part = ""; private string _CreditedAs = ""; public string FirstName { get => _FirstName; set => _FirstName = "" + value; } public string MiddleName { get => _MiddleName; set => _MiddleName = "" + value; } public string LastName { get => _LastName; set => _LastName = "" + value; } public string Part { get => _Part; set => _Part = "" + value; } public string CreditedAs { get => _CreditedAs; set => _CreditedAs = "" + value; } public int by = 0; public bool Voice = false; public bool UnCredited = false; public bool Puppeteer = false; public int CreditType = 0; public int CreditSubType = 0; }
(2) Create a dummy profile placeholder for the newly created credits DateTime date = DateTime.Now; string DummyTitle = "Cast and Crew Dummy Profile"; string dummyID = "M" + date.ToString("yyyyddMMHHmmss"); dVDInfo.SetTitle(DummyTitle); dVDInfo.SetProfileID(dummyID); dVDInfo.SetProfileTimestamp(date); dVDInfo.SetDVDReleaseDate(date); dVDInfo.SetCollectionType((int)PluginConstants.COLLTYPE_WishList); DVDPFauxAPI.FauxAPI.DVDProfilerAPI.SaveDVDToCollection(dVDInfo);
(3) Now scan the master credits dictionary in a loop (this is what I will be trying to speed up)
When an entry has a by>0, then I synthesize a key, using "{0}" for by. If found, I move on.
If not found, I extract the CastCrewEntry object from the dictionary, set by=0, then add that credit (cast or crew) to the dummy profile and save it. Since there was no such credit in the database, this causes a new entry in the database table for cast or crew (at least I think it does).
Continue for all entries in the dictionary. Final save of the profile. Call for a database resync to update pointers. Done. | | | Thanks for your support. Free Plugins available here. Advanced plugins available here. Hey, new product!!! BDPFrog. |
| Registered: May 25, 2007 | Posts: 453 |
| Posted: | | | | Quoting Magmadrag: Quote: Not sure if I should post this here or create a new thread as this could be a new tool - if even possible.
The difficulty for the possibiliy is that we don't list the death dates anywhere. If available, Luigi lists them, but if not.....
And I got to this as I had to find out that "Peter Cook (1937 - 1995)" is credited in several profiles as an actor after his death (e. g. "Terra Nova")
So if we would have any list of death dates a tool would be interesting to check out cast & crew, if they are credited after their death. That's only possible for "archive footage". The only chance to question if the credits could be correct is "Production Year - 90 > Birthyear".
It's only a thought (for a future far far away^^) but another way to find out probably wrongly used cast & crew Second recognition about this: Sometimes it's funny - because it can't be real - to have an actor, BY 1950+ credited in a movie before his birth. Another fact to be checked.... manually work is horrible. When I am done tonight, the BY-list is done for actors up to letter C - and I'd like to say that I had to change/correct more than 100 profiles.... |
| Registered: March 18, 2007 | Reputation: | Posts: 6,461 |
| Posted: | | | | Quoting Magmadrag: Quote: Quoting Magmadrag:
Quote: Not sure if I should post this here or create a new thread as this could be a new tool - if even possible.
The difficulty for the possibiliy is that we don't list the death dates anywhere. If available, Luigi lists them, but if not.....
And I got to this as I had to find out that "Peter Cook (1937 - 1995)" is credited in several profiles as an actor after his death (e. g. "Terra Nova")
So if we would have any list of death dates a tool would be interesting to check out cast & crew, if they are credited after their death. That's only possible for "archive footage". The only chance to question if the credits could be correct is "Production Year - 90 > Birthyear".
It's only a thought (for a future far far away^^) but another way to find out probably wrongly used cast & crew
Second recognition about this: Sometimes it's funny - because it can't be real - to have an actor, BY 1950+ credited in a movie before his birth. Another fact to be checked.... manually work is horrible. When I am done tonight, the BY-list is done for actors up to letter C - and I'd like to say that I had to change/correct more than 100 profiles.... What is in my mind is a tool that has the dummy profile entries, the full set of local cast/crew, the common names, and accepted birth years with the ability to interact and make changes to the database. What functions could you imagine to be on the context menu (right click) when you select an item from one of those lists? I know it will be easier once you get the tool to play with, but in case you already thought of something. | | | Thanks for your support. Free Plugins available here. Advanced plugins available here. Hey, new product!!! BDPFrog. | | | Last edited: by mediadogg |
| Registered: May 25, 2007 | Posts: 453 |
| Posted: | | | | If you would like to enhance your "imagination" how much profiles have to be corrected because of wronlgy used birthyears, just check all your profiles with any "version of "John Moore".
I'd like to say that I had to correct about 70 % of them (most times wrongly used the 1966 insted of the 1968 one). |
| Registered: March 18, 2007 | Reputation: | Posts: 6,461 |
| Posted: | | | | Quoting Magmadrag: Quote: If you would like to enhance your "imagination" how much profiles have to be corrected because of wronlgy used birthyears, just check all your profiles with any "version of "John Moore".
I'd like to say that I had to correct about 70 % of them (most times wrongly used the 1966 insted of the 1968 one). I will take a look for education. But I am depending on you for the imagination. I have mostly no clue about this stuff. Writing code and solving problems for people is a hobby and I enjoy it. But I really don't care much about the actual problem in most cases. Of course I need to understand it, but the passion is not there. | | | Thanks for your support. Free Plugins available here. Advanced plugins available here. Hey, new product!!! BDPFrog. |
| Registered: May 25, 2007 | Posts: 453 |
| Posted: | | | | Does this mean you don't cere if the data in your collection is correct? That's a shock! |
| Registered: March 14, 2007 | Reputation: | Posts: 6,744 |
| Posted: | | | | Quoting mediadogg: Quote: That is not me you are quoting. You know that I know better. Editing the cast and crew comes pretty close to editing a person. You can even make new ones. Yeah sorry, made a mistake when removing nested quotes and now can't edit anymore because time's up. Was supposed to look like this: Quoting GSyren: Quote: So changing that birth year would not create a new cast record, but either change the birth year for the existing record In the API you don't really have access to the cast/crew as people. You just can tell a profile that it contains this first, last and middle name with that birth year. There is no way to edit an actual person. | | | Karsten DVD Collectors Online
| | | Last edited: by DJ Doena |
| Registered: March 14, 2007 | Reputation: | Posts: 6,744 |
| Posted: | | | | Quoting Magmadrag: Quote: Does this mean you don't care if the data in your collection is correct? That's a shock! I used to but only for main people. There is a Kevin Smith that used to play Ares on Xena: Warrior Princess and then there is the Jersey guy. But not for any random John Smith I have never heard of and will never look up anyway. | | | Karsten DVD Collectors Online
| | | Last edited: by DJ Doena |
| Registered: May 25, 2007 | Posts: 453 |
| Posted: | | | | I used to but only for main people. There is a Kevin Smith that used to play Ares on Xena: Warrior Princess and then there is the Jersey guy. But not for any random John Smith I have never heard of and will never look up anyway.
Well, as long as they are the ones with accepted/released Birthyears I think that's neccessary. Or what do we have the BYs for, if nobody cares about their use? |
| Registered: March 18, 2007 | Reputation: | Posts: 6,461 |
| Posted: | | | | Quoting Magmadrag: Quote: Does this mean you don't cere if the data in your collection is correct? That's a shock! Look don't try to start analyzing or judging me. Do your thing and I'll do mine. Of course I care whether the data is correct. Why do you think I have 20 years of plugin programming to help people who worry about the data. | | | Thanks for your support. Free Plugins available here. Advanced plugins available here. Hey, new product!!! BDPFrog. |
| Registered: March 18, 2007 | Reputation: | Posts: 6,461 |
| Posted: | | | | Quoting Magmadrag: Quote:
Well, as long as they are the ones with accepted/released Birthyears I think that's neccessary. Or what do we have the BYs for, if nobody cares about their use? You didn't create BYs. Somebody else who cared about their use, did. And other people maintain a website supporting accepted ones. Get a grip on yourself. | | | Thanks for your support. Free Plugins available here. Advanced plugins available here. Hey, new product!!! BDPFrog. | | | Last edited: by mediadogg |
| Registered: March 18, 2007 | Reputation: | Posts: 6,461 |
| Posted: | | | | Good news:
I think I solved the performance issue, without voiding the results.
My database is 1400 profiles. That resulted in over 47,000 unique credits. The dummy profile contains about 60 cast and 40 crew. The whole process took under 5 minutes.
Of course we will all be validating the results as soon as I get something that you can use. I will be working on that for the next few days. As I mentioned before, if you have any specific ideas other than those already presented, speak up, and I will try to get the easiest things done in the first release.
I'm not totally sure, but having the dummy profiles in the Wishlist might not result in the database being permanently updated. I need to do some more testing. It would make sense, as Wishlist profiles are not yet owned. | | | Thanks for your support. Free Plugins available here. Advanced plugins available here. Hey, new product!!! BDPFrog. | | | Last edited: by mediadogg |
| Registered: May 25, 2007 | Posts: 453 |
| Posted: | | | | I can ensure you, as long as there is data in the dummy profile, it doesn't matter if it is owned, ordered or wishlist. There are a few profiles in my wishlist, and even they are part of the update process.
This way I'd like to say that for the program it doesn't matter where the cast & crew is to find in a profile. As soon as they are anywhere without a BY, they became part of the ACTORS/CREW files.
Not sure if this thought could be integrated in THIS tool or needs another one: You remember a few posts before I had the death date issue. Well, there's the same one with birthyears: I found actors with a BY listed in movies which were produced several years before they were born. But I think this check might need another tool, as I got no logically idea how this issue has any connection to the problem I started this thread for.
Not importand but anyhow confusing and funny: To find out if the actors listed in the profiles are the ones with the right BY, I have to check a lot at the IMDB. And today I reached an actress, allready passed away in 1998, and they list several movies "in planning" up to 2026. I can't imagine that she has been kind of mummified and now only plays dead corpse. |
|
|
Invelos Forums->DVD Profiler: Desktop Feature Requests |
Page:
1... 3 4 5 6 7 ...11 Previous Next
|
|
|
|
|
|
|
|
|