-
Notifications
You must be signed in to change notification settings - Fork 84
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
Fix fetching genres #327
base: master
Are you sure you want to change the base?
Fix fetching genres #327
Conversation
Tried applying this patch but I am getting the following error has anyone got any ideas what I have done wrong? I am using the latest 8.2.0 release. Thanks
|
Might be worth checking if you missed the change around line 125 that adds |
Or fix it the right way
This might not exactly the same as used in this library but you get the idea |
Thanks for the tactful reply I do not think I deserve it 😀 |
Thanks as this is similar to the all keywords fix in #310 fix I have decided to go with this one. I have used public function genres (plural) it works for me but as it is clear I do not have a clue what I am doing do the same at own risk 😀 |
Nope i use my own version with all GraphQL methods :) The difference between my version and this one is literally 1 character: method name genre versus genres I surely give a big thanks to @tboothman for his groundwork about GraphQL |
Thanks @duck7000 my comment was mainly aimed at anyone using the patch on the @tboothman version. Sorry for the confusion. I replaced genres not genre in the @tboothman version with your suggested code. Yes my Git experience level isn't at creating a PR yet 😢 I like the idea of the elegance of the GraphQL version. I am going to give it a try at some point soon. I too pass on thanks to @tboothman for creating imdbphp 👍 |
Sorry it was intended for the person who started this PR but i'm glad you use my work! |
b0d9b49
to
3db6275
Compare
Using GraphQL instead of scraping is the way to go, I agree. I've changed the proposed fix here to use GraphQL (thanks @duck7000 for the ready-made query). |
your welcome! And if you are interested in other methods take a look at my repo (Permission granted to use my work) All the hard parts are already done, adjust it to this library is all. Lets hope that @tboothman will merge your PR |
3db6275
to
0d6d8d2
Compare
After the IMDb UI renewal the genre fetching only gets the first three genres listed in the main view and skips the rest.
Getting the genres from either /reference view or using the GraphQL API fixes the issue.