erengy / taiga

A lightweight anime tracker for Windows
https://taiga.moe
GNU General Public License v3.0
2.11k stars 226 forks source link

[Feature request] Add reddit links in context menu of currently watching anime #286

Closed reconman closed 8 years ago

reconman commented 8 years ago

I like to read other people's opinions on shows after I've watched the current episode. It would be great if there was a link in Search which opens

https://www.reddit.com/r/anime/search?q=INSERT_SERIES_NAME+episode+INSERT_EPISODE_NUMBER+discussion&restrict_sr=on&sort=relevance&t=all

I think I've already got the new code necessary for the feature. Change

    <menu name="Search">
        <!-- Note: Use %title% as the search string -->
        <item name="AniDB"              action="URL(http://anidb.net/perl-bin/animedb.pl?show=animelist&amp;adb.search=%title%&amp;noalias=1&amp;do.update=update)"/>
        <item name="Anime News Network" action="URL(http://www.animenewsnetwork.com/search?q=%title%)"/>
        <item name="Hummingbird"        action="URL(http://hummingbird.me/search?query=%title%&scope=anime)"/>
        <item name="MyAnimeList"        action="URL(http://myanimelist.net/anime.php?q=%title%)"/>
        <item name="Wikipedia"          action="URL(http://en.wikipedia.org/wiki/Special:Search?search=%title%)"/>
        <item type="separator"/>
        <item name="Custom RSS feed" action="SearchTorrents()"/>
        <item name="NyaaTorrents" action="SearchTorrents(http://www.nyaa.se/?page=rss&amp;cats=1_37&amp;filter=2&amp;term=%title%)"/>
    </menu>

in menu.xml, line 159 to

    <menu name="Search">
        <!-- Note: Use %title% as the search string -->
        <item name="AniDB"              action="URL(http://anidb.net/perl-bin/animedb.pl?show=animelist&amp;adb.search=%title%&amp;noalias=1&amp;do.update=update)"/>
        <item name="Anime News Network" action="URL(http://www.animenewsnetwork.com/search?q=%title%)"/>
        <item name="Hummingbird"        action="URL(http://hummingbird.me/search?query=%title%&scope=anime)"/>
        <item name="MyAnimeList"        action="URL(http://myanimelist.net/anime.php?q=%title%)"/>
        <item name="Wikipedia"          action="URL(http://en.wikipedia.org/wiki/Special:Search?search=%title%)"/>
        <item type="separator"/>
        <item name="Custom RSS feed" action="SearchTorrents()"/>
        <item name="NyaaTorrents" action="SearchTorrents(http://www.nyaa.se/?page=rss&amp;cats=1_37&amp;filter=2&amp;term=%title%)"/>
        <item name="Reddit discussion" action="URL(https://www.reddit.com/r/anime/search?q=%title%+episode+%watched%+discussion&amp;restrict_sr=on&amp;sort=relevance&amp;t=all)"/>
    </menu>
reconman commented 8 years ago

Just a warning, Danganronpa 3 discussions won't show up because of the keyword "discussion". The user who posts them doesn't include that word in the title. My solution uses [Spoilers] instead because every discussion post must begin with that tag.

[Spoilers] escaped is %5BSpoilers%5D if you need it.