This commit is contained in:
Calvin Montgomery 2019-03-27 21:28:46 -07:00
parent 96bf3df928
commit c5b122bcf8
2 changed files with 9 additions and 1 deletions

View file

@ -2,7 +2,7 @@
"author": "Calvin Montgomery",
"name": "CyTube",
"description": "Online media synchronizer and chat",
"version": "3.63.5",
"version": "3.63.6",
"repository": {
"url": "http://github.com/calzoneman/sync"
},

View file

@ -1316,6 +1316,14 @@ function parseMediaLink(url) {
};
}
// #790
if ((m = url.match(/twitch\.tv\/(?:.*?)\/clip\/([A-Za-z]+)/))) {
return {
id: m[1],
type: "tc"
}
}
if((m = url.match(/twitch\.tv\/(?:.*?)\/([cv])\/(\d+)/))) {
return {
id: m[1] + m[2],