Greasy Fork is available in English.

DEPRECATED: TRAKT.TV: YouTube trailer search and RARBG/Torrentleech link

adds a RARBG and a Torrentleech link to the link sidebar and a youtube trailer search behind the trailer button

< Feedback op DEPRECATED: TRAKT.TV: YouTube trailer search and RARBG/Torrentleech link

Vraag/Reactie

§
Geplaatst: 04-12-2021

I wrote a script with a similar line of code to search a TV/movie's YouTube trailer, it either usually finds the correct single trailer or occasionally shows Google search results, might be worth testing

current:
newLink.href = `https://www.youtube.com/results?search_query=%22${title}%22+trailer`;
new:
newLink.href = 'https://www.google.com/search?q=site%3Ayoutube.com+' + title + '+trailer&btnI=I%27m+Feeling+Lucky');

§
Geplaatst: 23-01-2022

Thanks for the input! I did something similar in my Anilist script. I also found out while working on that, that while google has no proper way of guaranteeing the use of the "I'm feeling lucky" feature via the URL alone, duckduckgo has a way of doing that! You want to do something like this

var URL = "https://duckduckgo.com/?q=!ducky+" + name + "+site%3Amyanimelist.net";

That then ALWAYS does the direct redirect!

In the case of the trakt script however, I purposefully did it like this, since there usually are multiple trailers. And in a lot of cases I want to have the choice. For example when I start a show, the top result might be a trailer for season 6 or whatever, but I want the season 1 trailer. And even in the case of movies, I might want to watch multiple trailers. Having the search already open makes this very easy!

But thanks for the feedback anyways :)

Reactie plaatsen

Log in om antwoord te geven.