nomnoms12 / saucenao_api

Wrapper for SauceNAO JSON API
https://pypi.org/project/saucenao-api
GNU General Public License v3.0
64 stars 14 forks source link

Can we use this with videos? #6

Closed sanidhya711 closed 4 years ago

sanidhya711 commented 4 years ago

i though so because it has the option called frame ??

nomnoms12 commented 4 years ago

@sanidhyajain1, hi! Thanks for the good question!

No, we can't use SauceNao with videos. But we can use it with image formats that support animation, such as GIF and WebP. The frame parameter indicates a specific frame from the file that will be searched.

Example:

from saucenao_api import SauceNao

with open('image.gif', 'rb') as f:
    result = SauceNao(frame=46).from_file(f)[0]

BTW, the image can be: gif, jpg, png, bmp, svg, or webp.