rainyroads / twitter-saucenao

A Twitter bot that utilizes the SauceNao API to find the source of images or anime screencaps
GNU Affero General Public License v3.0
258 stars 19 forks source link

Upgrade to new trace.moe API #68

Closed soruly closed 8 months ago

soruly commented 3 years ago

Hi, just want to notify you the new trace.moe API is out. Please take a look and update your program, otherwise it will be broken when the old API deprecates. You can find the docs of the new API with migration guide at https://github.com/soruly/trace.moe-api

rainyroads commented 3 years ago

@soruly How does the new media API work? I tried to generate a URL with it but it's not clear,

https://media.trace.moe/video/98292/New%20Game!!%20-%2003%20(BD%201280x720%20x264%20AACx2).mp4?t=98292&token=xxx&size=l

Is it because my token is no longer valid?

Edit: I see you just include the video URL in the original response now, disregard.

soruly commented 3 years ago

Yes the new API response has the full URL, so you don't need to construct the url youself.