From 0c8a180189b2610bab2fa977d458743d8a60343e Mon Sep 17 00:00:00 2001 From: sct Date: Wed, 23 Dec 2020 01:40:46 +0900 Subject: [PATCH] fix: clarify full sync runs every 24 hours --- server/job/schedule.ts | 2 +- src/components/Settings/SettingsPlex.tsx | 52 ++++++++++++------------ src/i18n/locale/en.json | 2 +- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/server/job/schedule.ts b/server/job/schedule.ts index 4ce2f8f8..82945a46 100644 --- a/server/job/schedule.ts +++ b/server/job/schedule.ts @@ -20,7 +20,7 @@ export const startJobs = (): void => { jobPlexRecentSync.run(); }), }); - // Run full plex sync every 6 hours + // Run full plex sync every 24 hours scheduledJobs.push({ name: 'Plex Full Library Sync', job: schedule.scheduleJob('0 0 3 * * *', () => { diff --git a/src/components/Settings/SettingsPlex.tsx b/src/components/Settings/SettingsPlex.tsx index 0fa23ad3..122d8d84 100644 --- a/src/components/Settings/SettingsPlex.tsx +++ b/src/components/Settings/SettingsPlex.tsx @@ -28,7 +28,7 @@ const messages = defineMessages({ sync: 'Sync Plex Libraries', manualscan: 'Manual Library Scan', manualscanDescription: - "Normally, this will only be run once every 6 hours. Overseerr will check your Plex server's recently added more aggressively. If this is your first time configuring Plex, a one time full manual library scan is recommended!", + "Normally, this will only be run once every 24 hours. Overseerr will check your Plex server's recently added more aggressively. If this is your first time configuring Plex, a one time full manual library scan is recommended!", notrunning: 'Not Running', currentlibrary: 'Current Library: {name}', librariesRemaining: 'Libraries Remaining: {count}', @@ -143,10 +143,10 @@ const SettingsPlex: React.FC = ({ onComplete }) => { return ( <>
-

+

-

+

@@ -188,7 +188,7 @@ const SettingsPlex: React.FC = ({ onComplete }) => {
{submitError && ( -
+
{submitError}
)} @@ -200,7 +200,7 @@ const SettingsPlex: React.FC = ({ onComplete }) => {
-
+
= ({ onComplete }) => { )} value={data?.name} readOnly - className="flex-1 form-input block w-full min-w-0 rounded-md transition duration-150 ease-in-out sm:text-sm sm:leading-5 bg-gray-700 border border-gray-500" + className="flex-1 block w-full min-w-0 transition duration-150 ease-in-out bg-gray-700 border border-gray-500 rounded-md form-input sm:text-sm sm:leading-5" />
@@ -223,8 +223,8 @@ const SettingsPlex: React.FC = ({ onComplete }) => {
-
- +
+ {values.useSsl ? 'https://' : 'http://'} = ({ onComplete }) => { id="hostname" name="hostname" placeholder="127.0.0.1" - className="flex-1 form-input block w-full min-w-0 rounded-r-md transition duration-150 ease-in-out sm:text-sm sm:leading-5 bg-gray-700 border border-gray-500" + className="flex-1 block w-full min-w-0 transition duration-150 ease-in-out bg-gray-700 border border-gray-500 form-input rounded-r-md sm:text-sm sm:leading-5" />
{errors.hostname && touched.hostname && ( -
{errors.hostname}
+
{errors.hostname}
)}
@@ -254,11 +254,11 @@ const SettingsPlex: React.FC = ({ onComplete }) => { id="port" name="port" placeholder="32400" - className="form-input block w-24 rounded-md transition duration-150 ease-in-out sm:text-sm sm:leading-5 bg-gray-700 border border-gray-500" + className="block w-24 transition duration-150 ease-in-out bg-gray-700 border border-gray-500 rounded-md form-input sm:text-sm sm:leading-5" />
{errors.port && touched.port && ( -
{errors.port}
+
{errors.port}
)}
@@ -278,13 +278,13 @@ const SettingsPlex: React.FC = ({ onComplete }) => { onChange={() => { setFieldValue('useSsl', !values.useSsl); }} - className="form-checkbox h-6 w-6 rounded-md text-indigo-600 transition duration-150 ease-in-out" + className="w-6 h-6 text-indigo-600 transition duration-150 ease-in-out rounded-md form-checkbox" /> -
+
- +
-
    +
      {data?.libraries.map((library) => ( = ({ onComplete }) => {
-

+

-

+

-
-
+
+
{dataSync?.running && (
= ({ onComplete }) => { }} /> )} -
+
{dataSync?.running ? `${dataSync.progress} of ${dataSync.total}` @@ -366,10 +366,10 @@ const SettingsPlex: React.FC = ({ onComplete }) => {
-
+
{dataSync?.running && ( <> -
+