aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets')
-rw-r--r--client/src/assets/player/webtorrent/webtorrent-plugin.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/assets/player/webtorrent/webtorrent-plugin.ts b/client/src/assets/player/webtorrent/webtorrent-plugin.ts
index 96ba497a0..287358ada 100644
--- a/client/src/assets/player/webtorrent/webtorrent-plugin.ts
+++ b/client/src/assets/player/webtorrent/webtorrent-plugin.ts
@@ -139,6 +139,10 @@ class WebTorrentPlugin extends Plugin {
139 : this.pickAverageVideoFile() 139 : this.pickAverageVideoFile()
140 } 140 }
141 141
142 if (videoFile === undefined) {
143 throw Error(`Can't update video file since videoFile is undefined.`)
144 }
145
142 // Don't add the same video file once again 146 // Don't add the same video file once again
143 if (this.currentVideoFile !== undefined && this.currentVideoFile.magnetUri === videoFile.magnetUri) { 147 if (this.currentVideoFile !== undefined && this.currentVideoFile.magnetUri === videoFile.magnetUri) {
144 return 148 return