summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs')
-rw-r--r--win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs12
1 files changed, 7 insertions, 5 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs b/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs
index 9e958a0aa..9cdb554d1 100644
--- a/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs
+++ b/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs
@@ -335,9 +335,10 @@ namespace HandBrakeWPF.Services.Presets.Factories
if (importedPreset.AudioLanguageList != null)
{
- foreach (var item in importedPreset.AudioLanguageList)
+ IList<string> names = LanguageUtilities.GetLanguageNames(importedPreset.AudioLanguageList);
+ foreach (var name in names)
{
- preset.AudioTrackBehaviours.SelectedLangauges.Add(item);
+ preset.AudioTrackBehaviours.SelectedLangauges.Add(name);
}
}
@@ -376,13 +377,14 @@ namespace HandBrakeWPF.Services.Presets.Factories
preset.SubtitleTrackBehaviours.AddForeignAudioScanTrack = importedPreset.SubtitleAddForeignAudioSearch;
if (importedPreset.SubtitleLanguageList != null)
{
- foreach (var item in importedPreset.SubtitleLanguageList)
+ IList<string> names = LanguageUtilities.GetLanguageNames(importedPreset.SubtitleLanguageList);
+ foreach (var name in names)
{
- preset.SubtitleTrackBehaviours.SelectedLangauges.Add(item);
+ preset.SubtitleTrackBehaviours.SelectedLangauges.Add(name);
}
}
- /* Chapter Marker Settings */
+ /* Chapter Marker Settings */
preset.Task.IncludeChapterMarkers = importedPreset.ChapterMarkers;
/* Advanced Settings */