mirror of
https://github.com/yaobiao131/downkyicore.git
synced 2025-08-10 00:52:31 +00:00
fix: 修复视频发布时间错误问题Fixes: #103
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
@@ -11,7 +10,6 @@ using DownKyi.Core.BiliApi.Zone;
|
||||
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;
|
||||
|
||||
@@ -205,7 +205,7 @@ public class VideoInfoService : IInfoService
|
||||
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);
|
||||
// 这里的发布时间有问题,
|
||||
// 如果是合集,也会执行这里,
|
||||
|
||||
Reference in New Issue
Block a user