Skip to content

Commit

Permalink
fix(i18n): fixed jellyfin jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Fendrich committed Jul 28, 2023
1 parent da2d8fe commit 7eed236
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 24 deletions.
12 changes: 6 additions & 6 deletions server/job/schedule.ts
Expand Up @@ -71,13 +71,13 @@ export const startJobs = (): void => {
) {
// Run recently added jellyfin sync every 5 minutes
scheduledJobs.push({
id: 'jellyfin-recently-added-sync',
id: 'jellyfin-recently-added-scan',
name: 'Jellyfin Recently Added Sync',
type: 'process',
interval: 'minutes',
cronSchedule: jobs['jellyfin-recently-added-sync'].schedule,
cronSchedule: jobs['jellyfin-recently-added-scan'].schedule,
job: schedule.scheduleJob(
jobs['jellyfin-recently-added-sync'].schedule,
jobs['jellyfin-recently-added-scan'].schedule,
() => {
logger.info('Starting scheduled job: Jellyfin Recently Added Sync', {
label: 'Jobs',
Expand All @@ -91,12 +91,12 @@ export const startJobs = (): void => {

// Run full jellyfin sync every 24 hours
scheduledJobs.push({
id: 'jellyfin-full-sync',
id: 'jellyfin-full-scan',
name: 'Jellyfin Full Library Sync',
type: 'process',
interval: 'hours',
cronSchedule: jobs['jellyfin-full-sync'].schedule,
job: schedule.scheduleJob(jobs['jellyfin-full-sync'].schedule, () => {
cronSchedule: jobs['jellyfin-full-scan'].schedule,
job: schedule.scheduleJob(jobs['jellyfin-full-scan'].schedule, () => {
logger.info('Starting scheduled job: Jellyfin Full Sync', {
label: 'Jobs',
});
Expand Down
8 changes: 4 additions & 4 deletions server/lib/settings.ts
Expand Up @@ -263,8 +263,8 @@ export type JobId =
| 'sonarr-scan'
| 'download-sync'
| 'download-sync-reset'
| 'jellyfin-recently-added-sync'
| 'jellyfin-full-sync'
| 'jellyfin-recently-added-scan'
| 'jellyfin-full-scan'
| 'image-cache-cleanup'
| 'availability-sync';

Expand Down Expand Up @@ -446,10 +446,10 @@ class Settings {
'download-sync-reset': {
schedule: '0 0 1 * * *',
},
'jellyfin-recently-added-sync': {
'jellyfin-recently-added-scan': {
schedule: '0 */5 * * * *',
},
'jellyfin-full-sync': {
'jellyfin-full-scan': {
schedule: '0 0 3 * * *',
},
'image-cache-cleanup': {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Settings/SettingsJobsCache/index.tsx
Expand Up @@ -55,8 +55,8 @@ const messages: { [messageName: string]: MessageDescriptor } = defineMessages({
'plex-recently-added-scan': 'Plex Recently Added Scan',
'plex-full-scan': 'Plex Full Library Scan',
'plex-watchlist-sync': 'Plex Watchlist Sync',
'jellyfin-recently-added-sync': 'Jellyfin Recently Added Scan',
'jellyfin-full-sync': 'Jellyfin Full Library Scan',
'jellyfin-recently-added-scan': 'Jellyfin Recently Added Scan',
'jellyfin-full-scan': 'Jellyfin Full Library Scan',
'availability-sync': 'Media Availability Sync',
'radarr-scan': 'Radarr Scan',
'sonarr-scan': 'Sonarr Scan',
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/locale/ca.json
Expand Up @@ -551,7 +551,7 @@
"components.Settings.SettingsJobsCache.runnow": "Executa-ho ara",
"components.Settings.SettingsJobsCache.plex-full-scan": "Exploració completa de la biblioteca plex",
"components.Settings.SettingsJobsCache.jellyfin-full-scan": "Exploració completa de la biblioteca Jellyfin",
"components.Settings.SettingsJobsCache.jelly-recently-added-scan": "Exploració d'elements de Jellyfin afegits recentment",
"components.Settings.SettingsJobsCache.jellyfin-recently-added-scan": "Exploració d'elements de Jellyfin afegits recentment",
"components.Settings.SettingsJobsCache.nextexecution": "Pròxima execució",
"components.Settings.SettingsJobsCache.jobstarted": "S'ha iniciat {jobname}.",
"components.Settings.SettingsJobsCache.jobcancelled": "{jobname} s'ha cancel·lat.",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/locale/de.json
Expand Up @@ -655,7 +655,7 @@
"components.Settings.SettingsJobsCache.imagecacheDescription": "Wenn diese Funktion in den Einstellungen aktiviert ist, wird Jellyseerr Bilder aus vorkonfigurierten externen Quellen cachen und ausliefern. Bilder im Cache werden in deinem Config Ordner abgelegt. Die findest die Dateien unter <code>{appDataPath}/cache/images</code>.",
"components.Settings.SettingsJobsCache.imagecachecount": "Bilder im Cache",
"components.Settings.SettingsJobsCache.imagecachesize": "Gesamtgröße des Cache",
"components.Settings.SettingsJobsCache.jelly-recently-added-scan": "Scan der zuletzt hinzugefügten Jellyfin Medien",
"components.Settings.SettingsJobsCache.jellyfin-recently-added-scan": "Scan der zuletzt hinzugefügten Jellyfin Medien",
"components.Settings.SettingsJobsCache.jellyfin-full-scan": "Vollständiger Jellyfin Bibliotheken Scan",
"components.Settings.SettingsJobsCache.jobScheduleEditFailed": "Beim Speichern des Auftrags ging etwas schief.",
"components.Settings.SettingsJobsCache.jobScheduleEditSaved": "Auftrag erfolgreich bearbeitet!",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/locale/el.json
Expand Up @@ -373,7 +373,7 @@
"components.Settings.SettingsJobsCache.plex-recently-added-scan": "Σάρωση Plex για μέσα που προστέθηκαν πρόσφατα",
"components.Settings.SettingsJobsCache.plex-full-scan": "Σάρωση πλήρους βιβλιοθήκης Plex",
"components.Settings.SettingsJobsCache.jellyfin-full-scan": "Σάρωση πλήρους βιβλιοθήκης Jellyfin",
"components.Settings.SettingsJobsCache.jelly-recently-added-scan": "Σάρωση Jellyfin για μέσα που προστέθηκαν πρόσφατα",
"components.Settings.SettingsJobsCache.jellyfin-recently-added-scan": "Σάρωση Jellyfin για μέσα που προστέθηκαν πρόσφατα",
"components.Settings.SettingsJobsCache.nextexecution": "Επόμενη εκτέλεση",
"components.Settings.SettingsJobsCache.jobtype": "Είδος",
"components.Settings.SettingsJobsCache.jobstarted": "{jobname} ξεκίνησε.",
Expand Down
4 changes: 2 additions & 2 deletions src/i18n/locale/en.json
Expand Up @@ -782,8 +782,8 @@
"components.Settings.SettingsJobsCache.imagecacheDescription": "When enabled in settings, Jellyseerr will proxy and cache images from pre-configured external sources. Cached images are saved into your config folder. You can find the files in <code>{appDataPath}/cache/images</code>.",
"components.Settings.SettingsJobsCache.imagecachecount": "Images Cached",
"components.Settings.SettingsJobsCache.imagecachesize": "Total Cache Size",
"components.Settings.SettingsJobsCache.jellyfin-full-sync": "Jellyfin Full Library Scan",
"components.Settings.SettingsJobsCache.jellyfin-recently-added-sync": "Jellyfin Recently Added Scan",
"components.Settings.SettingsJobsCache.jellyfin-full-scan": "Jellyfin Full Library Scan",
"components.Settings.SettingsJobsCache.jellyfin-recently-added-scan": "Jellyfin Recently Added Scan",
"components.Settings.SettingsJobsCache.jobScheduleEditFailed": "Something went wrong while saving the job.",
"components.Settings.SettingsJobsCache.jobScheduleEditSaved": "Job edited successfully!",
"components.Settings.SettingsJobsCache.jobcancelled": "{jobname} canceled.",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/locale/es.json
Expand Up @@ -560,7 +560,7 @@
"components.Settings.SettingsJobsCache.editJobScheduleSelectorHours": "Cada {jobScheduleHours, plural, one {hora} other {{jobScheduleHours} horas}}",
"components.Settings.SettingsJobsCache.editJobScheduleSelectorMinutes": "Cada {jobScheduleMinutes, plural, one {minuto} other {{jobScheduleMinutes} minutos}}",
"components.Settings.SettingsJobsCache.flushcache": "Vaciar Caché",
"components.Settings.SettingsJobsCache.jelly-recently-added-scan": "Escaneo de Recien Añadidos de Jellyfin",
"components.Settings.SettingsJobsCache.jellyfin-recently-added-scan": "Escaneo de Recien Añadidos de Jellyfin",
"components.Settings.SettingsJobsCache.jellyfin-full-scan": "Escaneo Completo de la Biblioteca de Jellyfin",
"components.Settings.SettingsJobsCache.jobScheduleEditFailed": "Algo fue mal al guardar la tarea programada.",
"components.Settings.SettingsJobsCache.jobScheduleEditSaved": "¡Tarea programada modificada con éxito!",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/locale/fr.json
Expand Up @@ -650,7 +650,7 @@
"components.Settings.SettingsJobsCache.editJobScheduleSelectorHours": "Toutes les {jobScheduleHours, plural, one {heure} other {{jobScheduleHours} heures}}",
"components.Settings.SettingsJobsCache.editJobScheduleSelectorMinutes": "Toutes les {jobScheduleMinutes, plural, one {minute} other {{jobScheduleMinutes} minutes}}",
"components.Settings.SettingsJobsCache.flushcache": "Vider le cache",
"components.Settings.SettingsJobsCache.jelly-recently-added-scan": "Scanner les récents ajoutés sur Jellyfin",
"components.Settings.SettingsJobsCache.jellyfin-recently-added-scan": "Scanner les récents ajoutés sur Jellyfin",
"components.Settings.SettingsJobsCache.jellyfin-full-scan": "Scanner toute la bibliothèque Jellyfin",
"components.Settings.SettingsJobsCache.image-cache-cleanup": "Vider le cache des images",
"components.Settings.SettingsJobsCache.imagecache": "Cache des images",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/locale/hu.json
Expand Up @@ -447,7 +447,7 @@
"components.Settings.SettingsJobsCache.plex-recently-added-scan": "Plex \"nemrégiben hozzáadott\" beolvasása",
"components.Settings.SettingsJobsCache.plex-full-scan": "Plex összes könyvtárának beolvasása",
"components.Settings.SettingsJobsCache.jellyfin-full-scan": "Jellyfin összes könyvtárának beolvasása",
"components.Settings.SettingsJobsCache.jelly-recently-added-scan": "Jellyfin \"nemrégiben hozzáadott\" beolvasása",
"components.Settings.SettingsJobsCache.jellyfin-recently-added-scan": "Jellyfin \"nemrégiben hozzáadott\" beolvasása",
"components.Settings.SettingsJobsCache.nextexecution": "Következő végrehajtás",
"components.Settings.SettingsJobsCache.jobtype": "Típus",
"components.Settings.SettingsJobsCache.jobstarted": "{jobname} elindult.",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/locale/nl.json
Expand Up @@ -565,7 +565,7 @@
"components.Settings.SettingsJobsCache.plex-recently-added-scan": "Plex recent toegevoegde scan",
"components.Settings.SettingsJobsCache.plex-full-scan": "Plex volledige bibliotheekscan",
"components.Settings.SettingsJobsCache.jellyfin-full-scan": "volledige bibliotheekscan Jellyfin",
"components.Settings.SettingsJobsCache.jelly-recently-added-scan": "Jellyfin recent toegevoegde scan",
"components.Settings.SettingsJobsCache.jellyfin-recently-added-scan": "Jellyfin recent toegevoegde scan",
"components.Settings.Notifications.validationUrl": "Je moet een geldige URL opgeven",
"components.Settings.Notifications.botAvatarUrl": "URL bot-avatar",
"components.RequestList.RequestItem.requested": "Aangevraagd",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/locale/pt_PT.json
Expand Up @@ -565,7 +565,7 @@
"components.Settings.SettingsJobsCache.plex-recently-added-scan": "Sincronizar Adicionado Recentemente do Plex",
"components.Settings.SettingsJobsCache.plex-full-scan": "Sincronização Completa da Biblioteca Plex",
"components.Settings.SettingsJobsCache.jellyfin-full-scan": "Sincronização Completa da Biblioteca Jellyfin",
"components.Settings.SettingsJobsCache.jelly-recently-added-scan": "Sincronizar Adicionado Recentemente do Jellyfin",
"components.Settings.SettingsJobsCache.jellyfin-recently-added-scan": "Sincronizar Adicionado Recentemente do Jellyfin",
"components.RequestList.RequestItem.requested": "Pedido",
"components.RequestList.RequestItem.modifieduserdate": "{date} por {user}",
"components.RequestList.RequestItem.modified": "Modificado",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/locale/sv.json
Expand Up @@ -545,7 +545,7 @@
"components.Settings.SettingsJobsCache.plex-recently-added-scan": "Skanning av det senast tillagda i Plex",
"components.Settings.SettingsJobsCache.plex-full-scan": "Full Plex-biblioteksskanning",
"components.Settings.SettingsJobsCache.jellyfin-full-scan": "Full Jellyfin-biblioteksskanning",
"components.Settings.SettingsJobsCache.jelly-recently-added-scan": "Skanning av det senast tillagda i Jellyfin",
"components.Settings.SettingsJobsCache.jellyfin-recently-added-scan": "Skanning av det senast tillagda i Jellyfin",
"components.Settings.SettingsJobsCache.download-sync-reset": "Hämta synkroniseringsåterställning",
"components.Settings.SettingsJobsCache.download-sync": "Ladda ner synkronisering",
"components.Settings.SettingsAbout.preferredmethod": "Föredraget",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/locale/ua.json
Expand Up @@ -650,7 +650,7 @@
"components.Settings.SettingsJobsCache.editJobScheduleSelectorHours": "Кожен {jobScheduleHours, plural, one {година} other {{jobScheduleHours} години(ів)}}",
"components.Settings.SettingsJobsCache.editJobScheduleSelectorMinutes": "Кожну {jobScheduleMinutes, plural, one {хвилину} other {{jobScheduleMinutes} хвилин(и)}}",
"components.Settings.SettingsJobsCache.flushcache": "Очистити кеш",
"components.Settings.SettingsJobsCache.jelly-recently-added-scan": "Нещодавно додане сканування Jellyfin",
"components.Settings.SettingsJobsCache.jellyfin-recently-added-scan": "Нещодавно додане сканування Jellyfin",
"components.Settings.SettingsJobsCache.jellyfin-full-scan": "Сканування повної бібліотеки Jellyfin",
"components.Settings.SettingsJobsCache.image-cache-cleanup": "Очищення кешу зображень",
"components.Settings.SettingsJobsCache.imagecache": "Кеш зображень",
Expand Down

0 comments on commit 7eed236

Please sign in to comment.