mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 03:32:20 +08:00
调整录制路径检查逻辑
This commit is contained in:
parent
47cc678603
commit
49707938a8
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user