duck7000 / imdbGraphQLPHP

5 stars 0 forks source link

New methods Title class #45

Closed duck7000 closed 3 months ago

duck7000 commented 4 months ago

I just released a new version with a few upgrades/new stuff

Award() is now added to the title class (it will get all awards for a title) All info is in the wiki

@All If you want test it out, if there are any problems/bugs let me know

duck7000 commented 4 months ago

I added total to the output array of award method

This contains: win: Total wins (int) nom: Total nominated (int)

duck7000 commented 3 months ago

I also added award to the Name class (was very easy as it is almost the same as for title class)

@Thomasdouscha this may interest you as you asked for it at imdbphp forum?

duck7000 commented 3 months ago

Added a few more methods to Title class

Not sure if anyone is going to use it but at least all info that is available is in this library

duck7000 commented 3 months ago

I added a new part to soundtrack method

creditSplit is added, it split up each credit line in creditType, name, id and comments this is discussed with @GeorgeFive in #29

creditSplit is not 100% but it will get all names and id's There is one flaw i can't get rid off: if a creditor (a band with & in their name) has no imdbid (band name is plain text) the name will be split up at the "&" unfortunately and will end up as 2 parts in the output array..

This is de best i can do, the main problem is that imdb lets users enter soundtrack info in a text editor.. so even though they set rules for the users there is no restriction that the user will hold on to that rule..

duck7000 commented 3 months ago

I added 2 more methods

duck7000 commented 3 months ago

One more new method

connections() This gets all connections of a title related to other titles (all info is in the wiki)