ReZeroE / AnilistPython

AniList Python library for easy anime, manga, animation studio, and character information lookup. Provides bot support.
MIT License
74 stars 19 forks source link

can you please add youtube trailer too? #7

Closed noobsohail closed 2 years ago

ReZeroE commented 2 years ago

Sure, I can add a tutorial on youtube sometime during this upcoming summer. If you got any questions, however, feel free to let me know!

noobsohail commented 2 years ago

Actually i am talking about "Anime Trailler also get from anilist" can you add that? + Studios Name (Producers) ..

noobsohail commented 2 years ago
ReZeroE commented 2 years ago

I'll look into this. I can add external streaming sites to the library but I need to check to see if their API offers trailer link retrieval. If not, I'll try to work something out and let you know.

noobsohail commented 2 years ago

I'll look into this. I can add external streaming sites to the library but I need to check to see if their API offers trailer link retrieval. If not, I'll try to work something out and let you know.

but anilist provides by default youtube trailer na?

ReZeroE commented 2 years ago

I took a look. Their API does offer trailer link retrieval and it'll be either from youtube or Dailymotion.

According to their GraphQL API (under MediaTrailer):

id : String
The trailer video id

site : String
The site the video is hosted by (Currently either youtube or dailymotion)

thumbnail : String
The url for the thumbnail image of the video

I'll implement this when I get time. In the meantime, if you want to fork this and make edits to the query string to enable the retrieval of trailer links, feel free to do so. Let me know if you got any questions.

janvernieuwe commented 1 year ago

Hi, did you add this? I can't seem to find it anyware and i'm also looking for the youtube trailer link.