Skip to content

Commit

Permalink
fix: 修复视频发布时间错误问题Fixes: #103
Browse files Browse the repository at this point in the history
  • Loading branch information
yaobiao131 committed Aug 5, 2024
1 parent 63c7fbf commit f9eb527
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions DownKyi/Services/Download/AddToDownloadService.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;
Expand All @@ -11,7 +10,6 @@
using DownKyi.Core.FileName;
using DownKyi.Core.Logging;
using DownKyi.Core.Settings;
using DownKyi.Core.Settings.Models;
using DownKyi.Core.Utils;
using DownKyi.Events;
using DownKyi.Models;
Expand Down
2 changes: 1 addition & 1 deletion DownKyi/Services/VideoInfoService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public VideoInfoService(string? input)
var timeFormat = SettingsManager.GetInstance().GetFileNamePartTimeFormat();
// 视频发布时间
var startTime = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); // 当地时区
var dateTime = startTime.AddSeconds(_videoView.Pubdate);
var dateTime = startTime.AddSeconds(episode.Arc.Ctime);
page.PublishTime = dateTime.ToString(timeFormat);
// 这里的发布时间有问题,
// 如果是合集,也会执行这里,
Expand Down

0 comments on commit f9eb527

Please sign in to comment.