Replace twitch clip player (#842)

This commit is contained in:
Calvin Montgomery 2020-01-26 20:17:55 -08:00
parent c809b1994a
commit 58e4e09840
4 changed files with 8 additions and 4 deletions

View file

@ -26,6 +26,7 @@ var order = [
'gdrive-youtube.coffee',
'hls.coffee',
'mixer.coffee',
'twitchclip.coffee',
'update.coffee'
];

View file

@ -2,7 +2,7 @@
"author": "Calvin Montgomery",
"name": "CyTube",
"description": "Online media synchronizer and chat",
"version": "3.67.1",
"version": "3.67.2",
"repository": {
"url": "http://github.com/calzoneman/sync"
},
@ -72,7 +72,7 @@
"@babel/env",
{
"targets": {
"node": "8"
"node": "10"
}
}
]

View file

@ -18,7 +18,7 @@ TYPE_MAP =
vm: VideoJSPlayer
hl: HLSPlayer
sb: StreamablePlayer
tc: VideoJSPlayer
tc: TwitchClipPlayer
cm: VideoJSPlayer
mx: MixerPlayer

View file

@ -46,8 +46,11 @@ Media.prototype = {
/*
* 2018-03-05: Remove GDrive metadata from saved playlists to save
* space since this is no longer used.
*
* 2020-01-26: Remove Twitch clip metadata since their API changed
* and no longer uses direct links
*/
if (this.type !== "gd") {
if (this.type !== "gd" && this.type !== "tc") {
result.meta.direct = this.meta.direct;
}