diff options
Diffstat (limited to 'client/src/assets')
-rw-r--r-- | client/src/assets/player/shared/settings/settings-menu-item.ts | 2 | ||||
-rw-r--r-- | client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/client/src/assets/player/shared/settings/settings-menu-item.ts b/client/src/assets/player/shared/settings/settings-menu-item.ts index 8d1819a2d..07ff0f2a8 100644 --- a/client/src/assets/player/shared/settings/settings-menu-item.ts +++ b/client/src/assets/player/shared/settings/settings-menu-item.ts | |||
@@ -301,7 +301,7 @@ class SettingsMenuItem extends MenuItem { | |||
301 | this.settingsSubMenuValueEl_.innerHTML = html | 301 | this.settingsSubMenuValueEl_.innerHTML = html |
302 | }, 250) | 302 | }, 250) |
303 | } else { | 303 | } else { |
304 | // Loop trough the submenu items to find the selected child | 304 | // Loop through the submenu items to find the selected child |
305 | for (const subMenuItem of this.subMenu.menu.children_) { | 305 | for (const subMenuItem of this.subMenu.menu.children_) { |
306 | if (!(subMenuItem instanceof component)) { | 306 | if (!(subMenuItem instanceof component)) { |
307 | continue | 307 | continue |
diff --git a/client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts b/client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts index b48203148..83b483d87 100644 --- a/client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts +++ b/client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts | |||
@@ -430,6 +430,11 @@ class WebTorrentPlugin extends Plugin { | |||
430 | private initializePlayer () { | 430 | private initializePlayer () { |
431 | this.buildQualities() | 431 | this.buildQualities() |
432 | 432 | ||
433 | if (this.videoFiles.length === 0) { | ||
434 | this.player.addClass('disabled') | ||
435 | return | ||
436 | } | ||
437 | |||
433 | if (this.autoplay) { | 438 | if (this.autoplay) { |
434 | this.player.posterImage.hide() | 439 | this.player.posterImage.hide() |
435 | 440 | ||