Browse Source

Merge pull request #7382 from crobibero/keyframe-extractor

Bond-009 3 years ago
parent
commit
2bc8383968

+ 3 - 1
Emby.Server.Implementations/Localization/Core/en-US.json

@@ -119,5 +119,7 @@
     "TaskDownloadMissingSubtitles": "Download missing subtitles",
     "TaskDownloadMissingSubtitlesDescription": "Searches the internet for missing subtitles based on metadata configuration.",
     "TaskOptimizeDatabase": "Optimize database",
-    "TaskOptimizeDatabaseDescription": "Compacts database and truncates free space. Running this task after scanning the library or doing other changes that imply database modifications might improve performance."
+    "TaskOptimizeDatabaseDescription": "Compacts database and truncates free space. Running this task after scanning the library or doing other changes that imply database modifications might improve performance.",
+    "TaskKeyframeExtractor": "Keyframe Extractor",
+    "TaskKeyframeExtractorDescription": "Extracts keyframes from video files to create more precise HLS playlists. This task may run for a long time."
 }

+ 2 - 2
src/Jellyfin.MediaEncoding.Hls/ScheduledTasks/KeyframeExtractionScheduledTask.cs

@@ -39,13 +39,13 @@ public class KeyframeExtractionScheduledTask : IScheduledTask
     }
 
     /// <inheritdoc />
-    public string Name => "Keyframe Extractor";
+    public string Name => _localizationManager.GetLocalizedString("TaskKeyframeExtractor");
 
     /// <inheritdoc />
     public string Key => "KeyframeExtraction";
 
     /// <inheritdoc />
-    public string Description => "Extracts keyframes from video files to create more precise HLS playlists. This task may run for a long time.";
+    public string Description => _localizationManager.GetLocalizedString("TaskKeyframeExtractorDescription");
 
     /// <inheritdoc />
     public string Category => _localizationManager.GetLocalizedString("TasksLibraryCategory");