Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sharing methods that are converted to GraphQL #314

Closed
duck7000 opened this issue Jun 19, 2023 · 5 comments
Closed

Sharing methods that are converted to GraphQL #314

duck7000 opened this issue Jun 19, 2023 · 5 comments

Comments

@duck7000
Copy link
Contributor

duck7000 commented Jun 19, 2023

@ALL

I have successfully converted methods to GraphQL:
Locations
Soundtrack
Quotes
Trivia (including spoiler check)
Genres
Rating
Aka (added original title to aka query, no need for extra method)
Title_year
Metacritic
Plotoutline
Country
Language
Mpaa
Top250
Episodes (byYear is now working)
Director
Writer
Composer
Producer
Votes
isOngoing (new: used to get if TV Series is still going or ended)
gross
budget

New method principalCredits (it will fetch Director, Writer, Creator and Cast from top title page if available) This replaces Creator() and headStars()

Feel free to use them here in imdbphp but remember that my version differs from this version so you can't copy the methods directly. Adjustments are needed. They are basically the same but might fetch more data or in different format.

I have no more interest in making pull requests for those methods, let's say there is a reason that i use my own version.

This way i can still contribute to this version, i hope that somebody will pick this up further so everybody can benefit from it.

Edit: @tboothman I was skeptical to the move to GraphQL but i have to fully admit that it is actually much easier is to work with.
That is.. after you figure out how it works... Thanks for your groundwork about GraphQL.!

@jcvignoli
Copy link

Hi @duck7000,
Since I use Person class, I will stick to the tboothman version, but thanks for the idea!

@duck7000
Copy link
Contributor Author

Sure i understand that but maybe you can use my work to convert the person class (or title class methods) and create PR?
I'm probably not going to do that as I'm not using the person class myself but it will benefit a lot of users here.

@duck7000 duck7000 closed this as completed Aug 2, 2023
@jcvignoli
Copy link

@duck7000 Thanks for the effort! But your version is not yet ready for my use, actually. I overwrited Boothman's classes with yours, and there are actually missing methods (I briefly saw photo_url() for example) which prevented me to go further.
I will have to take a look in depth at a later stage, since it's seems that Boothman is more or less stoping the development.
Cheers and thanks for your work!

@jcvignoli
Copy link

Hey @duck7000
I'm not certain to fully understand the two edits: do you mean that I should copy Boothman's photo_local() method into your class?
It'd be a bad idea for my use. In terms of maintainability it'd be soon a nightmare (I develop a wordpress plugin based on imdbphp classes), there are many other methods that I should copy at every new release ( photo_local() depends on savephoto(), ie).

@jcvignoli
Copy link

Thanks for the clarification.
I use most of the methods in Title and Person.
Will wait to see if have the time and willingness to expand your version, since seems that GraphQL is the new way to go :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants