feat: ajout des telechargments par episodes / saisons

This commit is contained in:
MasutaYunikon committed 2026-04-21 10:17:53 +02:00
1 parent 215379eca4
commit 247694ab3e
12 files changed
+111 -31

No files matched your search

+1 -1
View File
@@ -147,7 +147,7 @@ const emit = defineEmits<{
openManualImport: []
unimport : [deleteFile: boolean]
downloadAll : []
download : [key: string, url: string | null, magnet: string | null]
download : [key: string, url: string | null, magnet: string | null, file_index?: number | null, file_path?: string | null]
}>()
const unimportMenuOpen = ref(false)
+2 -2
View File
@@ -102,7 +102,7 @@
class="shrink-0 w-8 h-8 rounded-lg border flex items-center justify-center transition-colors"
:class="epBtnClass(ep)"
:disabled="!ep.torrent || ep.organized || isAlreadyQueued(ep.torrent)"
@click="ep.torrent && !ep.organized && !isAlreadyQueued(ep.torrent) && emit('download', `ep-${ep.id}`, ep.torrent.torrent_url, ep.torrent.magnet)"
@click="ep.torrent && !ep.organized && !isAlreadyQueued(ep.torrent) && emit('download', `ep-${ep.id}`, ep.torrent.torrent_url, ep.torrent.magnet, ep.torrent.file_index ?? null, ep.torrent.file_path ?? null)"
>
<component :is="epStateIcon(ep)" />
</button>
@@ -171,7 +171,7 @@ const props = defineProps<{
const emit = defineEmits<{
toggle : [id: number]
download : [key: string, url: string | null, magnet: string | null]
download : [key: string, url: string | null, magnet: string | null, file_index?: number | null, file_path?: string | null]
downloadSeason : [season: any]
renameEpisode : [ep: any, season: any]
unimportEpisode: [ep: any, season: any, deleteFile: boolean]