|
|
@ -15,6 +15,8 @@ namespace DownKyi.Core.FileName
|
|
|
|
private string videoQuality = "VIDEO_QUALITY";
|
|
|
|
private string videoQuality = "VIDEO_QUALITY";
|
|
|
|
private string videoCodec = "VIDEO_CODEC";
|
|
|
|
private string videoCodec = "VIDEO_CODEC";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private string videoPublishTime = "VIDEO_PUBLISH_TIME";
|
|
|
|
|
|
|
|
|
|
|
|
private long avid = -1;
|
|
|
|
private long avid = -1;
|
|
|
|
private string bvid = "BVID";
|
|
|
|
private string bvid = "BVID";
|
|
|
|
private long cid = -1;
|
|
|
|
private long cid = -1;
|
|
|
@ -80,6 +82,12 @@ namespace DownKyi.Core.FileName
|
|
|
|
return this;
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public FileName SetVideoPublishTime(string videoPublishTime)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
this.videoPublishTime = videoPublishTime;
|
|
|
|
|
|
|
|
return this;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public FileName SetAvid(long avid)
|
|
|
|
public FileName SetAvid(long avid)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.avid = avid;
|
|
|
|
this.avid = avid;
|
|
|
@ -149,6 +157,9 @@ namespace DownKyi.Core.FileName
|
|
|
|
case FileNamePart.VIDEO_CODEC:
|
|
|
|
case FileNamePart.VIDEO_CODEC:
|
|
|
|
path += videoCodec;
|
|
|
|
path += videoCodec;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case FileNamePart.VIDEO_PUBLISH_TIME:
|
|
|
|
|
|
|
|
path += videoPublishTime;
|
|
|
|
|
|
|
|
break;
|
|
|
|
case FileNamePart.AVID:
|
|
|
|
case FileNamePart.AVID:
|
|
|
|
path += avid;
|
|
|
|
path += avid;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|