Fixed AnimePahe

This commit is contained in:
2020-09-09 00:07:58 +02:00
parent 161f4243a6
commit 6c9b58c56c

View File

@@ -1,7 +1,7 @@
// ==UserScript==
// @name aniSearch Enhancer
// @namespace http://git.nivram.io/marvinlehmann/ani-search-enhancer
// @version 1.81
// @version 1.82
// @description Adds buttons to the info site of an anime on aniSearch which links you directly to various streaming portals.
// @author Marvin Lehmann
// @grant GM_xmlhttpRequest
@@ -79,7 +79,7 @@ $(function () {
onload: function (resp) {
if (resp.response.total > 0) {
const firstResult = resp.response.data[0];
const targetPage = 'https://animepahe.com/anime/' + firstResult.slug;
const targetPage = 'https://animepahe.com/anime/' + firstResult.session;
$stream_links.append(new Option("@ AnimePahe", targetPage));
// Did we possibly get the wrong one?