fix: dont autoplay next in w2g

This commit is contained in:
ThaUnknown 2023-09-13 23:08:29 +02:00
parent e92341ef9a
commit 1b176b8ed5
3 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{
"name": "Miru",
"version": "4.4.7",
"version": "4.4.8",
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
"description": "Stream anime torrents, real-time with no waiting for downloads.",
"main": "build/main.js",

View file

@ -12,7 +12,7 @@
import Seekbar from 'perfect-seekbar'
import { click } from '@/modules/click.js'
import { w2gEmitter } from '../WatchTogether/WatchTogether.svelte'
import { w2gEmitter, state } from '../WatchTogether/WatchTogether.svelte'
import Keybinds, { loadWithDefaults, condition } from 'svelte-keybinds'
const emit = createEventDispatcher()
@ -228,7 +228,7 @@
}
})
function tryPlayNext () {
if (set.playerAutoplay) playNext()
if (set.playerAutoplay && !state.value) playNext()
}
function playNext () {
if (hasNext) {

View file

@ -1,5 +1,5 @@
<script context='module'>
import { writable, get } from 'svelte/store'
import { writable, get } from 'simple-store-svelte'
import { alID } from '@/modules/anilist.js'
import { add, client } from '@/modules/torrent.js'
import { generateRandomHexCode } from '@/modules/util.js'