diff --git a/DownKyi/Languages/Default.xaml b/DownKyi/Languages/Default.xaml
index a590212..c8425a5 100644
--- a/DownKyi/Languages/Default.xaml
+++ b/DownKyi/Languages/Default.xaml
@@ -219,6 +219,7 @@
UP主ID
UP主昵称
恢复默认
+ 时间格式:
弹幕
按类型屏蔽
diff --git a/DownKyi/Services/BangumiInfoService.cs b/DownKyi/Services/BangumiInfoService.cs
index 6c1b8dd..cc1a5ff 100644
--- a/DownKyi/Services/BangumiInfoService.cs
+++ b/DownKyi/Services/BangumiInfoService.cs
@@ -197,10 +197,12 @@ namespace DownKyi.Services
};
}
+ // 文件命名中的时间格式
+ string timeFormat = SettingsManager.GetInstance().GetFileNamePartTimeFormat();
// 视频发布时间
DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); // 当地时区
DateTime dateTime = startTime.AddSeconds(episode.PubTime);
- page.PublishTime = dateTime.ToString("yyyy-MM-dd");
+ page.PublishTime = dateTime.ToString(timeFormat);
pages.Add(page);
}
diff --git a/DownKyi/Services/VideoInfoService.cs b/DownKyi/Services/VideoInfoService.cs
index e661601..9c34ca4 100644
--- a/DownKyi/Services/VideoInfoService.cs
+++ b/DownKyi/Services/VideoInfoService.cs
@@ -154,10 +154,12 @@ namespace DownKyi.Services
};
}
+ // 文件命名中的时间格式
+ string timeFormat = SettingsManager.GetInstance().GetFileNamePartTimeFormat();
// 视频发布时间
DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); // 当地时区
DateTime dateTime = startTime.AddSeconds(videoView.Pubdate);
- page.PublishTime = dateTime.ToString("yyyy-MM-dd");
+ page.PublishTime = dateTime.ToString(timeFormat);
// 这里的发布时间有问题,
// 如果是合集,也会执行这里,
// 但是发布时间是入口视频的,不是所有视频的
diff --git a/DownKyi/Views/Settings/ViewVideo.xaml b/DownKyi/Views/Settings/ViewVideo.xaml
index 3efb045..844722e 100644
--- a/DownKyi/Views/Settings/ViewVideo.xaml
+++ b/DownKyi/Views/Settings/ViewVideo.xaml
@@ -228,7 +228,7 @@
VerticalAlignment="Center"
FontSize="12"
Foreground="{DynamicResource BrushTextDark}"
- Text="时间格式:" />
+ Text="{DynamicResource FileNameTimeFormat}" />