From 5f5c7f1d91e4a64f9b126d9886ce56972c6b8306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederik=20=E2=80=9CFreso=E2=80=9D=20S=2E=20Olesen?= Date: Wed, 22 Feb 2017 11:23:25 +0100 Subject: [PATCH 1/2] mb_discids_detector: Add redacted.ch. PTH/passtheheadphones.me made a name change to RED/redacted.ch. See https://www.reddit.com/r/trackers/comments/5v2goo/pth_now_known_as_red/ This makes the script work on redacted.ch in addition to passtheheadphones.me, but doesn't remove PTH as the PTH domain is apparently going to work for a bit longer. Fixes https://github.com/murdos/musicbrainz-userscripts/issues/139 --- mb_discids_detector.user.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mb_discids_detector.user.js b/mb_discids_detector.user.js index 62f61f1..6bc1fba 100644 --- a/mb_discids_detector.user.js +++ b/mb_discids_detector.user.js @@ -8,6 +8,7 @@ // @include http://avaxhome.ws/music/* // @include https://apollo.rip/torrents.php?id=* // @include https://passtheheadphones.me/torrents.php?id=* +// @include https://redacted.ch/torrents.php?id=* // @include http*://lztr.us/torrents.php?id=* // @include http*://lztr.me/torrents.php?id=* // @include http*://mutracker.org/torrents.php?id=* @@ -25,7 +26,7 @@ var CHECK_IMAGE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAA $(document).ready(function () { - if (window.location.host.match(/apollo\.rip|passtheheadphones\.me|lztr\.(us|me)|mutracker\.org/)) { + if (window.location.host.match(/apollo\.rip|redacted\.ch|passtheheadphones\.me|lztr\.(us|me)|mutracker\.org/)) { LOGGER.info("Gazelle site detected"); gazellePageHandler(); } else if (window.location.host.match(/avaxhome\.ws/)) { @@ -105,8 +106,8 @@ function gazellePageHandler() { if (window.location.host.match(/apollo/)) { LOGGER.debug("Apollo"); var logAction = 'viewlog'; - } else if (window.location.host.match(/passtheheadphones/)){ - LOGGER.debug("PTH"); + } else if (window.location.host.match(/redacted|passtheheadphones/)){ + LOGGER.debug("RED"); var logAction = 'loglist'; } } From ca750863f756767bc2f7f54fffa27fb2edd60a41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederik=20=E2=80=9CFreso=E2=80=9D=20S=2E=20Olesen?= Date: Wed, 22 Feb 2017 11:26:21 +0100 Subject: [PATCH 2/2] mb_discids_detector: Bump version (2017.02.22.0). --- mb_discids_detector.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mb_discids_detector.user.js b/mb_discids_detector.user.js index 6bc1fba..e2a4ae4 100644 --- a/mb_discids_detector.user.js +++ b/mb_discids_detector.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Musicbrainz DiscIds Detector // @namespace http://userscripts.org/users/22504 -// @version 2016.12.11.0 +// @version 2017.02.22.0 // @description Generate MusicBrainz DiscIds from online EAC logs, and check existence in MusicBrainz database. // @downloadURL https://raw.githubusercontent.com/murdos/musicbrainz-userscripts/master/mb_discids_detector.user.js // @updateURL https://raw.githubusercontent.com/murdos/musicbrainz-userscripts/master/mb_discids_detector.user.js