This commit is contained in:
Calvin Montgomery 2017-02-23 20:10:57 -08:00
parent 5487d15bdf
commit a80512aa60
1 changed files with 12 additions and 0 deletions

View File

@ -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],