Merge pull request #56 from orangeMikeB/add-episode-id-as-naming-parameter

Add episode id as naming parameter
This commit is contained in:
Stratum 2024-07-05 13:30:28 +02:00 committed by GitHub
commit 0436d0ebb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -15,7 +15,7 @@
</div>
<div class="text-sm mt-2 select-none"> Variables: </div>
<div class="text-sm text-center"> {seriesName}, {episodeName}, {seasonNumber}, {seasonNumberDD}, {episodeNumber}, {episodeNumberDD}, {quality} </div>
<div class="text-sm text-center"> {seriesName}, {episodeName}, {seasonNumber}, {seasonNumberDD}, {episodeNumber}, {episodeNumberDD}, {episodeID}, {quality} </div>
</div>
<div class="flex flex-col items-center p-3 bg-[#11111189] rounded-xl">
<div class="text-sm mb-2 select-none">Season Folder Naming</div>
@ -47,6 +47,7 @@ const seasonNumber = ref<number>(1)
const quality = ref<number>(1080)
const seriesName = ref<string>('Frieren')
const episodeName = ref<string>("The Journey's End")
const episodeID = ref<string>("G0DUNDOK2")
const episodeNamingTemplate = ref<string>()
const seasonNamingTemplate = ref<string>()
const isSeasonActive = ref<boolean>()
@ -60,6 +61,7 @@ const episodeNaming = computed(() => {
.replace('{seasonNumberDD}', seasonNumber.value.toString().padStart(2, '0'))
.replace('{episodeNumber}', episodeNumber.value.toString())
.replace('{episodeNumberDD}', episodeNumber.value.toString().padStart(2, '0'))
.replace('{episodeID}', episodeID.value)
.replace('{quality}', quality.value.toString() + 'p')
})

View File

@ -1210,6 +1210,7 @@ export async function downloadCrunchyrollPlaylist(
.replace('{seasonNumberDD}', season.toString().padStart(2, '0'))
.replace('{episodeNumber}', episode ? episode.toString() : episode_string)
.replace('{episodeNumberDD}', episode ? episode.toString().padStart(2, '0') : episode_string)
.replace('{episodeID}', episodeID)
.replace('{quality}', quality.toString() + 'p')
await mergeVideoFile(file as string, chapter, audios, subss, downloadDir, episodeNaming, format, downloadID)