diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-24 16:48:54 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-24 16:56:05 +0200 |
commit | 54909304287f3c04dcfb39660be8ead57dc95440 (patch) | |
tree | 478f1b913f3bd4c3bbaa17525f0114c5b0a8689d /client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts | |
parent | d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d (diff) | |
download | PeerTube-54909304287f3c04dcfb39660be8ead57dc95440.tar.gz PeerTube-54909304287f3c04dcfb39660be8ead57dc95440.tar.zst PeerTube-54909304287f3c04dcfb39660be8ead57dc95440.zip |
Remove suppressImplicitAnyIndexErrors
It's deprecated by TS
Diffstat (limited to 'client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts')
-rw-r--r-- | client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts | 4 |
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) { |