aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts')
-rw-r--r--client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts b/client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts
index 46d009410..3dde44a60 100644
--- a/client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts
+++ b/client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts
@@ -339,7 +339,7 @@ class WebTorrentPlugin extends Plugin {
339 if (err.message.indexOf('incorrect info hash') !== -1) { 339 if (err.message.indexOf('incorrect info hash') !== -1) {
340 logger.error('Incorrect info hash detected, falling back to torrent file.') 340 logger.error('Incorrect info hash detected, falling back to torrent file.')
341 const newOptions = { forcePlay: true, seek: options.seek } 341 const newOptions = { forcePlay: true, seek: options.seek }
342 return this.addTorrent(this.torrent['xs'], previousVideoFile, newOptions, done) 342 return this.addTorrent((this.torrent as any)['xs'], previousVideoFile, newOptions, done)
343 } 343 }
344 344
345 // Remote instance is down 345 // Remote instance is down
@@ -582,7 +582,7 @@ class WebTorrentPlugin extends Plugin {
582 private stopTorrent (torrent: WebTorrent.Torrent) { 582 private stopTorrent (torrent: WebTorrent.Torrent) {
583 torrent.pause() 583 torrent.pause()
584 // Pause does not remove actual peers (in particular the webseed peer) 584 // Pause does not remove actual peers (in particular the webseed peer)
585 torrent.removePeer(torrent['ws']) 585 torrent.removePeer((torrent as any)['ws'])
586 } 586 }
587 587
588 private renderFileInFakeElement (file: WebTorrent.TorrentFile, delay: number) { 588 private renderFileInFakeElement (file: WebTorrent.TorrentFile, delay: number) {