Giter Site home page Giter Site logo

can't get language of an image about pytmdb3 HOT 6 CLOSED

wagnerrp avatar wagnerrp commented on September 27, 2024
can't get language of an image

from pytmdb3.

Comments (6)

wagnerrp avatar wagnerrp commented on September 27, 2024

This is a known issue, but I'm not quite certain how to work in a fix within the current framework. The problem is that the [movie|person]/<n> call returns an image, but only gives the filename. Aspect ratio, height, width, and language are only returned by the direct [movie|person]/<n>/images call, and there is no API call for a specific image to get that information.

from pytmdb3.

accident12123 avatar accident12123 commented on September 27, 2024

I'm using posters and backdrops when this happens.

the rest of the info is ok, it's specially language that doesn't work

from pytmdb3.

wagnerrp avatar wagnerrp commented on September 27, 2024

Ah. This is different from what I had initially thought. That behavior is now fixed in 651d67a, but I'm going to leave this open for the problem I described above.

from pytmdb3.

accident12123 avatar accident12123 commented on September 27, 2024

the changes appear good

from pytmdb3.

accident12123 avatar accident12123 commented on September 27, 2024

actually, I do make 1 change to the code.. I remove the language= from the process_images.. I'm parsing the raw data on my own because I'm finding the data is just bad and you need the full list to find something. Not too much you can do about it but if it's prefiltered by tmdb most of the images which have no language are missed.

from pytmdb3.

wagnerrp avatar wagnerrp commented on September 27, 2024

ddc0cb0 now returns all images depending on specified fallthrough behavior, but will sort those of the specified language to the top of the list. I'm going to open up a separate ticket for the other issue.

from pytmdb3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.