Closed duck7000 closed 3 months ago
another new method
Added akaName method to Name Class, Gets all alternative names for a person (all info is in the wiki)
Another new method:
Added credit method to Name Class, Gets all credits for a person (all info is in the wiki)
therefor i needed to add graphqlGetAll method to get all results
and added professions method, this will get all main professions of a person
@GeorgeFive
I hope that your medical issue is getting better?
In case you are bored (i would, i hate been sick) i added new methods to Name and Title class I added them for completeness (as this is going to be a full blown version anyway) rather then somebody asked for it.
It is better to add them now i know how it works.
There are still methods used at imdb that does not have a method here so if you want them added as well let me know
But most important get well soon.
Yeah, I'm doing ok.... I screwed up my back (slipped discs), so sitting at my desk for any period of time starts to hurt, so it's been fun! Physical therapy is helping, I guess. Fun stuff.
Anyway... what is the difference between the new akanames and the previous nicknames? I see nicknames is still there, but I can't seem to find anyone on imdb who has akanames attached. Can you show me an example?
Going to use children() parents() relatives() in my own script, I'll let you know how that goes!
I just added in children() parents() relatives() and spouses, all looks good.
I'm glad you are getting better!
akaNames is with this person https://www.imdb.com/name/nm0000314/ (scroll to personal details) This is a alternative name the person is know of, that is different from nickName. Mostly the writing of the name is different (like i or y at the end in this case) Nickname is kind of a shortcut for a persons name (often used in the biker scene) like bear for a person that looks like a bear
Gotcha... yeah, I already used nickname in my setup, which is what sort of confused me, hah. I thought it was going to be the same thing. I see the difference now, I was looking for akanames on bio and coming up empty.
I also added rank method to the name class
It will get the popularity rank of a person, the same as the title method rank. It can be used to display a top 500 position, or top250 etc
And i added pubother method
It will get all other works of a person not listed in publicity lists All info is in the wiki
Question about spouses (I added this in along with the other family stuff you just added). It seems that on imdb, there can be no "spouse to" date set, which implies that they are still together... this seems to be the norm. However, there can also be no date set, which means that they don't know the date.
On the site, they somehow know the difference... ie,
https://www.imdb.com/name/nm0957772/bio/ Sheri Moon Zombie (October 31, 2002 - present)
https://www.imdb.com/name/nm1337935/bio/ Jeanne Clarke
On our end, we can't tell the difference, we just get nothing for the "to date". Would it be possible to get the "present" comment?
Mmm interesting, thomasdouscha uses this method already and he never complaint about this issue hah
But you are right they somehow know the difference .
I found in spouses Graphql that there is a option that states if the spouse name is the current or not (boolean true or false) In the case of rob zombie current returns true indicating present i presume? In other cases current returns false so this might be what you are looking for.
I will try to add it so you can play with it
Also the dates being a empty string if not available might not be the right way, i will change that to null (imdb does this also)
@GeorgeFive I added current to spouse() so you can use that to check if true (present) or false
I can however also add the whole date string as full text (in this case it will include present) if you want? It is not hard to do so probably i will add it anyway
current sounds like exactly what I need.... I'll test later tonight when I get home. In that case, I probably won't need the full text, but if it's there, might be nice (would save me from doing all sort of if/else on to/from, haha).
@GeorgeFive I added dateText to spouse, This is the fromDate and toDate in plaintext as displayed at imdb
Looks good, those both help and things look right now!
Nice and thanks, we can close this one as all works
I added a few missing methods to the Name Class
children() parents() relatives()
All info is in the wiki