Add MPC-BE remote control and resume support.

This commit is contained in:
2026-05-16 22:25:54 +00:00
parent 76c4cc0829
commit c405ea98b3
10 changed files with 1356 additions and 8 deletions
+6 -1
View File
@@ -138,7 +138,7 @@
tabindex="0"
@click="handlePlayVersion(torrent.playable_file)"
:disabled="!torrent.playable_file"
> Play</button>
> {{ getPlayLabel(torrent.playable_file) }}</button>
<button
class="ctx-btn ctx-btn-folder"
tabindex="0"
@@ -164,6 +164,7 @@ import { navAttrs } from '../composables/useKeyboardNavigation';
const props = defineProps<{
series: Series;
focusEpisode?: { seasonNumber: number; episodeNumber: number } | null;
hasResumePosition: (filePath: string | null) => boolean;
}>();
const emit = defineEmits<{
@@ -302,6 +303,10 @@ function handlePlayVersion(filePath: string | null) {
closeContextMenu();
}
function getPlayLabel(filePath: string | null): string {
return props.hasResumePosition(filePath) ? 'Continue' : 'Play';
}
// Open folder for a version
function handleOpenFolder(folderPath: string) {
emit('openFolder', folderPath);