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

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