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