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', 'gdrive-youtube.coffee',
'hls.coffee', 'hls.coffee',
'mixer.coffee', 'mixer.coffee',
'twitchclip.coffee',
'update.coffee' 'update.coffee'
]; ];

View file

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

View file

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

View file

@ -46,8 +46,11 @@ Media.prototype = {
/* /*
* 2018-03-05: Remove GDrive metadata from saved playlists to save * 2018-03-05: Remove GDrive metadata from saved playlists to save
* space since this is no longer used. * 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; result.meta.direct = this.meta.direct;
} }