|
|
@ -19,6 +19,9 @@ namespace DownKyi.Core.FileName
|
|
|
|
private string bvid = "BVID";
|
|
|
|
private string bvid = "BVID";
|
|
|
|
private long cid = -1;
|
|
|
|
private long cid = -1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private long upMid = -1;
|
|
|
|
|
|
|
|
private string upName = "UP_NAME";
|
|
|
|
|
|
|
|
|
|
|
|
private FileName(List<FileNamePart> nameParts)
|
|
|
|
private FileName(List<FileNamePart> nameParts)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.nameParts = nameParts;
|
|
|
|
this.nameParts = nameParts;
|
|
|
@ -95,6 +98,18 @@ namespace DownKyi.Core.FileName
|
|
|
|
return this;
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public FileName SetUpMid(long upMid)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
this.upMid = upMid;
|
|
|
|
|
|
|
|
return this;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public FileName SetUpName(string upName)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
this.upName = upName;
|
|
|
|
|
|
|
|
return this;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public string RelativePath()
|
|
|
|
public string RelativePath()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
string path = string.Empty;
|
|
|
|
string path = string.Empty;
|
|
|
@ -143,6 +158,12 @@ namespace DownKyi.Core.FileName
|
|
|
|
case FileNamePart.CID:
|
|
|
|
case FileNamePart.CID:
|
|
|
|
path += cid;
|
|
|
|
path += cid;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case FileNamePart.UP_MID:
|
|
|
|
|
|
|
|
path += upMid;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case FileNamePart.UP_NAME:
|
|
|
|
|
|
|
|
path += upName;
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (((int)part) >= 100)
|
|
|
|
if (((int)part) >= 100)
|
|
|
|