调整录制路径检查逻辑

This commit is contained in:
Genteure 2020-05-01 08:37:56 +08:00
parent 47cc678603
commit 49707938a8
2 changed files with 5 additions and 2 deletions

View File

@ -138,8 +138,8 @@ namespace BililiveRecorder.Core.Config
private string _cookie = string.Empty;
private string _record_filename_format = @"{roomid}-{name}\录制-{roomid}-{date}-{time}-{title}.flv";
private string _clip_filename_format = @"{roomid}-{name}\剪辑片段-{roomid}-{date}-{time}-{title}.flv";
private string _record_filename_format = @"{roomid}-{name}/录制-{roomid}-{date}-{time}-{title}.flv";
private string _clip_filename_format = @"{roomid}-{name}/剪辑片段-{roomid}-{date}-{time}-{title}.flv";
private bool _avoidTxy = false;
}

View File

@ -473,6 +473,9 @@ namespace BililiveRecorder.Core
DirectoryInfo di_p = new DirectoryInfo(parent);
DirectoryInfo di_c = new DirectoryInfo(child);
if (di_c.FullName == di_p.FullName)
return true;
bool isParent = false;
while (di_c.Parent != null)
{