From 543c7a7828be2dab6f992c63d94af56f738dea62 Mon Sep 17 00:00:00 2001 From: Kieran Eglin Date: Fri, 7 Jun 2024 08:57:28 -0700 Subject: [PATCH] [WIP] started on copy changes --- .../controllers/sources/source_html.ex | 1 + .../source_html/fast_indexing_help.html.heex | 32 ++++++++++++++++--- .../sources/source_html/source_form.html.heex | 4 +-- 3 files changed, 30 insertions(+), 7 deletions(-) diff --git a/lib/pinchflat_web/controllers/sources/source_html.ex b/lib/pinchflat_web/controllers/sources/source_html.ex index ab1ef07..bf61720 100644 --- a/lib/pinchflat_web/controllers/sources/source_html.ex +++ b/lib/pinchflat_web/controllers/sources/source_html.ex @@ -15,6 +15,7 @@ defmodule PinchflatWeb.Sources.SourceHTML do def friendly_index_frequencies do [ {"Only once when first created", -1}, + {"30 minutes", 30}, {"1 Hour", 60}, {"3 Hours", 3 * 60}, {"6 Hours", 6 * 60}, diff --git a/lib/pinchflat_web/controllers/sources/source_html/fast_indexing_help.html.heex b/lib/pinchflat_web/controllers/sources/source_html/fast_indexing_help.html.heex index 710b2ed..6cc2dc3 100644 --- a/lib/pinchflat_web/controllers/sources/source_html/fast_indexing_help.html.heex +++ b/lib/pinchflat_web/controllers/sources/source_html/fast_indexing_help.html.heex @@ -1,21 +1,43 @@ diff --git a/lib/pinchflat_web/controllers/sources/source_html/source_form.html.heex b/lib/pinchflat_web/controllers/sources/source_html/source_form.html.heex index 468d801..6705f99 100644 --- a/lib/pinchflat_web/controllers/sources/source_html/source_form.html.heex +++ b/lib/pinchflat_web/controllers/sources/source_html/source_form.html.heex @@ -49,7 +49,7 @@ label="Index Frequency" x-bind:disabled="fastIndexingEnabled == true" x-init="$watch('fastIndexingEnabled', v => v && ($el.value = 30 * 24 * 60))" - help="Indexing is the process of checking for media to download. Sets the time between one index of this source finishing and the next one starting" + help="Indexing is the process of checking for media to download. For best results, set this to the longest delay you can tolerate for this source" />
@@ -58,7 +58,7 @@ type="toggle" label="Use Fast Indexing" label_suffix="(pro)" - help="Experimental. Overrides 'Index Frequency'. Recommended for large channels that upload frequently. Does not work with private playlists. See below for more info" + help="Not recommended for playlists. Overrides 'Index Frequency'. See below for more details (seriously, there's a TL;DR that's worth reading)" x-init=" // `enabled` is the data attribute that the toggle uses internally fastIndexingEnabled = enabled