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: Plugins Page: 1... 15 16 17 18 19 ...40  Previous   Next
Tool: Cast/Crew Edit 2
Author Message
DVD Profiler Desktop and Mobile RegistrantStar ContributorDJ Doena
Registered: May 1, 2002
Registered: March 14, 2007
Reputation: Highest Rating
Germany Posts: 6,744
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting StaNDarD:
Quote:
I just got this one: Kristin Scott Thomas.

Automatically she will be split to Kristin / Scott / Thomas. As her sister is named Serena Scott Thomas and she's sometimes credited as Kristin Scott-Thomas, I guess Scott is part of her lastname.
Usually I put those into 'KnownLastnamePrefixes.txt', but as Scott is typically a firstname this would get me false results for other persons.

Would it be possible to add some known names into an extra txt-file?


Easy peasy.
Karsten
DVD Collectors Online

DVD Profiler Desktop and Mobile RegistrantStar ContributorDJ Doena
Registered: May 1, 2002
Registered: March 14, 2007
Reputation: Highest Rating
Germany Posts: 6,744
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Enjoy 1.8.0.0.
Karsten
DVD Collectors Online

DVD Profiler Unlimited RegistrantStaNDarD
Registered: March 31, 2007
Germany Posts: 662
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
You're great. And you earned another greenie.

Here's what I have in my 'KnownNames.txt':

Proven by birth-name and/or 'known as' name1-name2 / stage-names / animals:
Quote:
Helena Bonham Carter;Helena;;Bonham Carter
Eva Longoria Parker;Eva;;Longoria Parker
Cedric the Entertainer;Cedric the Entertainer;;
Wilson the Volleyball;Wilson the Volleyball;;
Mr. T;Mr. T;;
LL Cool J;LL Cool J;;
Meat Loaf;Meat Loaf;;
Bonecrusher the Mastiff;Bonecrusher the Mastiff;;
Mos Def;Mos Def;;
Kristin Scott Thomas;Kristin;;Scott Thomas
Jada Pinkett Smith;Jada;;Pinkett Smith
Wotan Wilke Möhring;Wotan;;Wilke Möhring
Vanessa Bell Calloway;Vanessa;;Bell Calloway
Sandy Berke Jordan;Sandy;;Berke Jordan
Amanda Mackey Johnson;Amanda;;Mackey Johnson
Kevin King Templeton;Kevin;;King Templeton
Rae'Ven Larrymore Kelly;Rae'Ven;;Larrymore Kelly
Risa Bramon Garcia;Risa;;Bramon Garcia
Lauren Shuler Donner;Lauren;;Shuler Donner
Jennifer Siebel Newsom;Jennifer;;Siebel Newsom
Suzanne McNeill Farwell;Suzanne;;McNeill Farwell
Marilyn Dodds Frank;Marilyn;;Dodds Frank
Kimberly Guenther Durkin;Kimberly;;Guenther Durkin
Kerry McCullen Palmisano;Kerry;;McCullen Palmisano
Joel McKinnon Miller;Joel;;McKinnon Miller
Jennie Lew Tugend;Jennie;;Lew Tugend
Sylvia Webb White;Sylvia;;Webb White
Cece Neber Labao;Cece;;Neber Labao
Mark Boone Junior;Mark;;Boone Junior
Bart the Bear;Bart the Bear;;
Honey Bump Bear;Honey Bump Bear;;
Crystal the Monkey;Crystal the Monkey;;
Burbank the Cat;Burbank the Cat;;
Sam the Dog;Sam the Dog;;


'Unproven', but I couldn't prove 'Della', 'Krenz' or 'Durham' as given names:
Quote:
John Della Penna;John;;Della Penna
John Krenz Reinhart Jr.;John;;Krenz Reinhart Jr.
Russell Durham Comegys;Russell;;Durham Comegys
DVD Profiler Unlimited RegistrantStaNDarD
Registered: March 31, 2007
Germany Posts: 662
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quote:
Performance of Cast and Crew Grid improved.

Did do you fix width of 'individual roles' to achieve this? I think it's way to big:
DVD Profiler Desktop and Mobile RegistrantStar ContributorDJ Doena
Registered: May 1, 2002
Registered: March 14, 2007
Reputation: Highest Rating
Germany Posts: 6,744
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting StaNDarD:
Quote:
Quote:
Performance of Cast and Crew Grid improved.

Did do you fix width of 'individual roles' to achieve this? I think it's way to big:


No, the widths have always been auto-sized. They just take the width they need. Looks like you have some huge custome role somewhere.
Karsten
DVD Collectors Online

 Last edited: by DJ Doena
DVD Profiler Unlimited RegistrantStaNDarD
Registered: March 31, 2007
Germany Posts: 662
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
I know it has been auto-sized. But it seems not to be anymore:

You can see, that I don't have any 'extrem huge' custom roles, also the width for surname is bigger than needed.
But I think the problem is, that I had once a very huge custom role in this session, while doing my music dvds.

I just restarted CCE2 and I got the fields in 'normal' size for the first movie. At the second movie the width for custom role is already bigger than needed.
It seems to me, that the fields grow when needed, but afterwards don't shrink when possible.
 Last edited: by StaNDarD
DVD Profiler Desktop and Mobile RegistrantStar ContributorDJ Doena
Registered: May 1, 2002
Registered: March 14, 2007
Reputation: Highest Rating
Germany Posts: 6,744
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
I know not what you are talking about.
Karsten
DVD Collectors Online

DVD Profiler Unlimited RegistrantStaNDarD
Registered: March 31, 2007
Germany Posts: 662
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting DJ Doena:
Quote:
I know not what you are talking about.

Magically it disappeared this morning...

DVD Profiler Unlimited RegistrantCorma
Registered: July 29, 2007
Germany Posts: 183
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Quoting StaNDarD:
Quote:

Here's what I have in my 'KnownNames.txt':

...


Isn't it useful to remove the data folder from the main zip file of cce2? With every update there is a chance we loose the changes we made to the edit-able files if we're not careful. (Edit: I know there is a backup but that is of the last version, not the one actually in use)

Edit: Nevermind - I've just seen that the stage names text file doesn't exist in the programm zip file anymore.

A very small issue related to that: "Bekannte Namen" from the menu of CCE2 opens a window still titled "Stage Names".

Sometimes imdb uses a very unusual name as the standard name. It's now possible to convert names completly with the KnownNames.txt file to 'fix' that, right? Probably the best new feature except the fake BYs. Thanks a lot again!

Edit once more: I wonder what happens if the imdb name for a person in the KnownNames.txt file changes? Is it "safe" to fill the list with loads of names?
 Last edited: by Corma
DVD Profiler Unlimited RegistrantStar ContributorDorianGray
Registered: May 26, 2007
Germany Posts: 186
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
First of all: Great Plugin! Really good work!!! 

And second of all, a question to this topic:
Quoting Sparkss:
Quote:
Quoting ruineddaydreams:
Quote:
pretty sure this directly violates Invelos' policy on data contributions as well as imdb's terms and conditions...


It was not now nor ever (that I am aware of) intended to be used for contributions. In fact there are multilpe warning popups when you use the program making sure that you understand that.

Quoting DJ Doena:
Quote:
PS: And remember: IMDb data must not (!) be contributed to the Online Database.



Would it be okay to contribute the data after rechecking it with the movie end credit list?
"The only way to get rid of a temptation is to yield to it. Resist it, and your soul grows sick with longing for the things it has forbidden to itself, with desire for what its monstrous laws have made monstrous and unlawful."
DVD Profiler Desktop and Mobile RegistrantStar ContributorDJ Doena
Registered: May 1, 2002
Registered: March 14, 2007
Reputation: Highest Rating
Germany Posts: 6,744
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting Corma:
Quote:

Isn't it useful to remove the data folder from the main zip file of cce2? With every update there is a chance we loose the changes we made to the edit-able files if we're not careful. (Edit: I know there is a backup but that is of the last version, not the one actually in use)


Yeah, but I never figured how to best deploy a new version with/without these data files.

OK, found a way: Would this suffice?

Quote:

Sometimes imdb uses a very unusual name as the standard name. It's now possible to convert names completly with the KnownNames.txt file to 'fix' that, right? Probably the best new feature except the fake BYs. Thanks a lot again!


Never even thought about that!

Quote:

Edit once more: I wonder what happens if the imdb name for a person in the KnownNames.txt file changes? Is it "safe" to fill the list with loads of names?


Then you will get the usual message that the common name changed. You will have to adapt the file accordingly and parse that title again.
Karsten
DVD Collectors Online

 Last edited: by DJ Doena
DVD Profiler Desktop and Mobile RegistrantStar ContributorDJ Doena
Registered: May 1, 2002
Registered: March 14, 2007
Reputation: Highest Rating
Germany Posts: 6,744
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting DorianGray:
Quote:
Would it be okay to contribute the data after rechecking it with the movie end credit list?


Of course - because then it's verified against the actual movie credits and thus allowed for contribution to DVDP.

That's one of the purposes of the program. To use it as a starting point to avoid unecessary typing.
Karsten
DVD Collectors Online

DVD Profiler Unlimited RegistrantStaNDarD
Registered: March 31, 2007
Germany Posts: 662
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting DJ Doena:
Quote:
Quoting Corma:
Quote:
Sometimes imdb uses a very unusual name as the standard name. It's now possible to convert names completly with the KnownNames.txt file to 'fix' that, right? Probably the best new feature except the fake BYs. Thanks a lot again!


Never even thought about that!


Neither did I...

My list with known names is still growing, maybe we can collect them?
DVD Profiler Unlimited RegistrantCorma
Registered: July 29, 2007
Germany Posts: 183
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Quoting DJ Doena:
Quote:

OK, found a way: Would this suffice?


Of course. Thanks!

Quoting DJ Doena:
Quote:
Quoting Corma:
Quote:

Edit once more: I wonder what happens if the imdb name for a person in the KnownNames.txt file changes? Is it "safe" to fill the list with loads of names?


Then you will get the usual message that the common name changed. You will have to adapt the file accordingly and parse that title again.


I have no idea how CCE2 works internally but to me as a user it seemed like the KnownNames.txt overrides or ignores  the idmb name. That's why I asked.

So there is not much left to ask for. CCE2 has always been great but now it's (almost  ) perfect.

Quoting StaNDarD:
Quote:


My list with known names is still growing, maybe we can collect them?


Thought about that, too. But on the other hand I don't care at all about the name parsing into the different fields. I will use a updated KnownNames.txt if you release one but personally  I'm only gonna make additions to get a more 'common' name than the one I get from imdb. And that's where the problems start. Common for me maybe is for nobody else:

The last name I've changed was Catalina Martone -> Catalina Larranaga

As far as I can tell from imdb she NEVER was credited as Martone and I have her in the DB credited as Larranaga in series 'Angel' and 'Las Vegas'. But she has a whole bunch of alternate names, so wich one to pick in a file shared with others? That ends up in something like the CLT and to be honest I'm sick of rules for credits 

Edit: LOOOL - I just had a good minute long laugh - wasn't the tiny, harmless Kristin Scott Thomas update excatly what some of the french people always fought for? Gerard Depardieu to Gérard Xavier Marcel Depardieu and so on (Just kidding!).
 Last edited: by Corma
DVD Profiler Desktop and Mobile RegistrantStar ContributorDJ Doena
Registered: May 1, 2002
Registered: March 14, 2007
Reputation: Highest Rating
Germany Posts: 6,744
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting Corma:
Quote:
I have no idea how CCE2 works internally but to me as a user it seemed like the KnownNames.txt overrides or ignores  the idmb name. That's why I asked.


It does. But When IMDb changes the common name the KnowName won't fit anymore and thus the default parsing will do its job.

And at the end CCE2 will notice that the name stored in the cast.xml is not the same name now returned by the parser and show the message. It's the same as if you would enter a new last name prefix and it's no longer <José> {de la} [Cruz] but <José> [de la Cruz].
Karsten
DVD Collectors Online

DVD Profiler Desktop and Mobile RegistrantStar ContributorDJ Doena
Registered: May 1, 2002
Registered: March 14, 2007
Reputation: Highest Rating
Germany Posts: 6,744
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Here's how the name parsing process works internally:

First the whole name as it came from IDb is looked up in KnownNames. If it's there I take the three parts and am done.

After that I split the name at every blank except when a certain part is enclosed in quotes.

Now I start parsing the name parts from the end but only until the second word (DVDP names must have a first name)

Can the part be a suffix? If yes it's a suffix.
If not, then that and everything that follows is the last name.

Now what about the parts before that, can they be a prefix? If so, the start of the last name still moves forward. If not then we know exactly where the last name starts and this is probably the middle name.

Now I check the very first part if it can be a prefix. If so, I check for further prefixes and if necessary move the beginning of the middle and last name towards the end.

When I'm done with all of that I just have to take my markers and put the pieces into their assigned categories (first, middle, last).


Or to say the same thing in code:

Quote:

private static Name ParsePersonName(String fullName)
{
    Name retVal;
    String[] nameSplit;
    Int32 beginOfMiddleName;
    Int32 beginOfLastName;
    Boolean canBeSuffix;
    Boolean canBePrefix;
           
    fullName = HttpUtility.HtmlDecode(fullName);
    if (KnownNames.TryGetValue(fullName, out retVal))
    {
        return (retVal);
    }
    retVal = new Name();
    if (Program.Settings.DefaultValues.ParseFirstNameInitialsIntoFirstAndMiddleName)
    {
        if (fullName.Contains("."))
        {
            fullName = BreakInitialsApart(fullName);
            //Now it might have happened that we split "M.D." into "M. D."
            fullName = FindAndRepairBrokenInitials(fullName, KnownLastnameSuffixes);
            fullName = FindAndRepairBrokenInitials(fullName, KnownLastnamePrefixes);
            fullName = FindAndRepairBrokenInitials(fullName, KnownFirstnamePrefixes);
        }
    }
    fullName = CheckForQuotes(fullName, '\'', 0);
    fullName = CheckForQuotes(fullName, '"', 0);
    nameSplit = fullName.Split(' ');
    if (nameSplit.Length > 0)
    {
        nameSplit[0] = nameSplit[0].Replace("#SpacePlaceHolder#", " ");
    }
    if (nameSplit.Length == 1)
    {
        retVal.FirstName = new StringBuilder(nameSplit[0]);
        return (retVal);
    }
    beginOfMiddleName = -1;
    beginOfLastName = -1;
    canBeSuffix = true;
    canBePrefix = false;
    for (Int32 i = nameSplit.Length - 1; i >= 1; i--)
    {
        nameSplit[i] = nameSplit[i].Replace("#SpacePlaceHolder#", " ");
        if (canBeSuffix)
        {
            beginOfLastName = i;
            if (KnownLastnameSuffixes.Contains(nameSplit[i].ToLower()) == false)
            {
                canBeSuffix = false;
                canBePrefix = true;
            }
            continue;
        }
        if (canBePrefix)
        {
            if (KnownLastnamePrefixes.Contains(nameSplit[i].ToLower()))
            {
                beginOfLastName = i;
                continue;
            }
        }
        if ((i > 0) && (beginOfLastName > 1))
        {
            beginOfMiddleName = 1;
        }
    }
    if (KnownFirstnamePrefixes.Contains(nameSplit[0].ToLower()))
    {
        for (Int32 i = 1; i < nameSplit.Length; i++)
        {
            if (beginOfMiddleName == i)
            {
                beginOfMiddleName++;
            }
            if (beginOfLastName == i)
            {
                beginOfLastName++;
            }
            if (KnownFirstnamePrefixes.Contains(nameSplit[i].ToLower()))
            {
                continue;
            }
            else
            {
                break;
            }
        }
    }
    if (beginOfMiddleName == beginOfLastName)
    {
        beginOfMiddleName = -1;
    }
    if (beginOfMiddleName > 0)
    {
        for (Int32 i = 0; i < beginOfMiddleName; i++)
        {
            retVal.FirstName.Append(" " + nameSplit[i]);
        }
        retVal.FirstName = new StringBuilder(retVal.FirstName.ToString().Trim());
        for (Int32 i = beginOfMiddleName; i < beginOfLastName; i++)
        {
            retVal.MiddleName.Append(" " + nameSplit[i]);
        }
        retVal.MiddleName = new StringBuilder(retVal.MiddleName.ToString().Trim());
    }
    else
    {
        for (Int32 i = 0; i < beginOfLastName; i++)
        {
            retVal.FirstName.Append(" " + nameSplit[i]);
        }
        retVal.FirstName = new StringBuilder(retVal.FirstName.ToString().Trim());
    }
    for (Int32 i = beginOfLastName; i < nameSplit.Length; i++)
    {
        retVal.LastName.Append(" " + nameSplit[i]);
    }
    retVal.LastName = new StringBuilder(retVal.LastName.ToString().Trim());
    return (retVal);
}
Karsten
DVD Collectors Online

 Last edited: by DJ Doena
    Invelos Forums->DVD Profiler: Plugins Page: 1... 15 16 17 18 19 ...40  Previous   Next