From a80512aa608f42230e2d40b8ded21d884147d5ec Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Thu, 23 Feb 2017 20:10:57 -0800 Subject: [PATCH] Fix #646 --- www/js/util.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/www/js/util.js b/www/js/util.js index 1425c754..e52b980f 100644 --- a/www/js/util.js +++ b/www/js/util.js @@ -1303,6 +1303,18 @@ function parseMediaLink(url) { }; } + /** + * 2017-02-23 + * Twitch changed their URL pattern for recorded videos, apparently. + * https://github.com/calzoneman/sync/issues/646 + */ + if((m = url.match(/twitch\.tv\/videos\/(\d+)/))) { + return { + id: "v" + m[1], + type: "tv" + }; + } + if((m = url.match(/twitch\.tv\/([\w-]+)/))) { return { id: m[1],