Added NFO controls to form

This commit is contained in:
Kieran Eglin 2024-03-18 12:23:02 -07:00
parent c9e576a2d6
commit 92635083e3
No known key found for this signature in database
GPG key ID: 193984967FCF432D
2 changed files with 22 additions and 6 deletions

View file

@ -166,8 +166,8 @@
<.input
field={f[:download_nfo]}
type="toggle"
label="Download NFO data"
help="Downloads NFO data alongside media file for use with Jellyfin, Kodi, etc."
label="Download episode NFO data"
help="Downloads episode NFO data alongside media file for use with Jellyfin, Kodi, etc."
x-init="$watch('selectedPreset', p => p && (enabled = presets[p]))"
/>
</section>
@ -181,7 +181,7 @@
field={f[:shorts_behaviour]}
options={friendly_format_type_options()}
type="select"
label="Include Shorts?"
label="Include Shorts"
help="Experimental. Please report any issues on GitHub"
x-init="$watch('selectedPreset', p => p && ($el.value = presets[p]))"
/>
@ -192,7 +192,7 @@
field={f[:livestream_behaviour]}
options={friendly_format_type_options()}
type="select"
label="Include Livestreams?"
label="Include Livestreams"
help="Excludes media that comes from a past livestream"
x-init="$watch('selectedPreset', p => p && ($el.value = presets[p]))"
/>

View file

@ -41,7 +41,7 @@
<.input
field={f[:fast_index]}
type="toggle"
label="Use Fast Indexing?"
label="Use Fast Indexing"
label_suffix="(pro)"
help="Experimental. Ignores 'Index Frequency'. Recommended for large channels that upload frequently. See below for more info"
/>
@ -54,7 +54,7 @@
<.input
field={f[:download_media]}
type="toggle"
label="Download Media?"
label="Download Media"
help="Unchecking still indexes media but it won't be downloaded until you enable this option"
/>
@ -69,6 +69,22 @@
help="Only download media uploaded after this date. Leave blank to download all media. Must be in YYYY-MM-DD format"
/>
<h3 class="mt-8 text-2xl text-black dark:text-white">
Metadata Options
</h3>
<p class="text-sm mt-2 max-w-prose">
Everything in this section is experimental - please open a GitHub issue if you see something odd.
These options only work if your Media Profile's output template is set to split media into seasons.
Try the "Media Center" preset for Media Profiles if you're not sure.
</p>
<.input
field={f[:download_nfo]}
type="toggle"
label="Download series NFO data"
help="Downloads series NFO data for use with Jellyfin, Kodi, etc. Uneffected by 'Download Media'"
/>
<.button class="my-10 sm:mb-7.5 w-full sm:w-auto">Save Source</.button>
<div class="rounded-sm dark:bg-meta-4 p-4 md:p-6 mb-5">