时间、并添加查看稿件名
This commit is contained in:
parent
f418c64984
commit
af388ac3f4
@ -6,18 +6,18 @@ from typing import Optional
|
|||||||
|
|
||||||
from flask import Blueprint, jsonify, request, current_app
|
from flask import Blueprint, jsonify, request, current_app
|
||||||
|
|
||||||
from config import BILILIVE_RECORDER_DIRECTORY, VIDEO_TITLE, XIGUALIVE_RECORDER_DIRECTORY, VIDEO_OUTPUT_DIR, VIDEO_DESC, \
|
from config import BILILIVE_RECORDER_DIRECTORY, VIDEO_TITLE, XIGUALIVE_RECORDER_DIRECTORY, VIDEO_DESC, \
|
||||||
VIDEO_TAGS, VIDEO_TID
|
VIDEO_TAGS, VIDEO_TID
|
||||||
from exception.danmaku import DanmakuException
|
from exception.danmaku import DanmakuException
|
||||||
from model import db
|
from model import db
|
||||||
from model.DanmakuClip import DanmakuClip
|
from model.DanmakuClip import DanmakuClip
|
||||||
from model.VideoClip import VideoClip
|
from model.VideoClip import VideoClip
|
||||||
from model.Workflow import Workflow
|
from model.Workflow import Workflow
|
||||||
|
from workflow.bilibili import IS_LIVING, INSTANCE as bilibili_instance
|
||||||
|
from workflow.bilibili import VideoPart
|
||||||
from workflow.danmaku import get_file_start
|
from workflow.danmaku import get_file_start
|
||||||
from workflow.video import get_video_real_duration, duration_str_to_float
|
from workflow.video import get_video_real_duration, duration_str_to_float
|
||||||
from workflow.worker import do_workflow
|
from workflow.worker import do_workflow
|
||||||
from workflow.bilibili import IS_LIVING, INSTANCE as bilibili_instance
|
|
||||||
from workflow.bilibili import VideoPart
|
|
||||||
|
|
||||||
blueprint = Blueprint("api_bilirecorder", __name__, url_prefix="/api/bilirecorder")
|
blueprint = Blueprint("api_bilirecorder", __name__, url_prefix="/api/bilirecorder")
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ def safe_create_item():
|
|||||||
bili_record_workflow_item.editing = False
|
bili_record_workflow_item.editing = False
|
||||||
commit_item()
|
commit_item()
|
||||||
bili_record_workflow_item = Workflow()
|
bili_record_workflow_item = Workflow()
|
||||||
bili_record_workflow_item.name = VIDEO_TITLE.format(datetime.now().strftime("%Y%m%d"))
|
bili_record_workflow_item.name = VIDEO_TITLE.format(datetime.utcnow().strftime("%Y%m%d"))
|
||||||
bili_record_workflow_item.automatic = True
|
bili_record_workflow_item.automatic = True
|
||||||
bili_record_workflow_item.editing = True
|
bili_record_workflow_item.editing = True
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
@ -57,6 +57,10 @@
|
|||||||
<td>当前上传状态</td>
|
<td>当前上传状态</td>
|
||||||
<td :class="collector.basic.uploading ? 'success' : 'warning'"></td>
|
<td :class="collector.basic.uploading ? 'success' : 'warning'"></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>上一个稿件名</td>
|
||||||
|
<td>{{ current_workflow.name }}</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<h2>配置状态</h2>
|
<h2>配置状态</h2>
|
||||||
@ -295,7 +299,11 @@
|
|||||||
bili_dir: "",
|
bili_dir: "",
|
||||||
xigua_dir: "",
|
xigua_dir: "",
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
current_workflow: {
|
||||||
|
id: 0,
|
||||||
|
name: "",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@ -309,6 +317,11 @@
|
|||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
this.collector.uploader = response.data;
|
this.collector.uploader = response.data;
|
||||||
})
|
})
|
||||||
|
axios({
|
||||||
|
url: "/api/bilirecorder/"
|
||||||
|
}).then((response) => {
|
||||||
|
this.current_workflow = response.data;
|
||||||
|
})
|
||||||
axios({
|
axios({
|
||||||
url: "/api/config/"
|
url: "/api/config/"
|
||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user