File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed
Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,16 @@ pip install -r requirements.txt
155155
156156#### 4. bilitool 登录
157157
158- 首先按照 [ bilitool] ( https://github.com/timerring/bilitool ) 登录b站,通过 ` bilitool login ` 扫码登录。
158+ > 由于一般日志打印不出二维码效果(docker 的日志不确定是否能打印,等发布新image时再修改,docker 版本请先参考文档[ bilive] ( https://bilive.timerring.com ) ,本 README 只针对源码部署),所以这步需要提前在机器上安装 [ bilitool] ( https://github.com/timerring/bilitool ) :
159+
160+ ```
161+ pip install bilitool
162+ # 然后使用 app 端扫码登录
163+ # 会导出 cookie.json 文件
164+ bilitool login --export
165+ ```
166+
167+ 将登录的 cookie.json 文件留在本项目根目录下,` ./upload.sh ` 启动后即可删除该文件。(持久化登录,该步只需执行一次)
159168
160169[ 常见问题收集] ( https://timerring.github.io/bilive/biliup.html )
161170
@@ -270,7 +279,7 @@ docker compose up -d
270279
271280## 特别感谢
272281
273- - [ biliup/biliup-rs] ( https://github.com/biliup/biliup-rs )
274- - [ hihkm/DanmakuFactory] ( https://github.com/hihkm/DanmakuFactory )
275282- [ acgnhiki/blrec] ( https://github.com/acgnhiki/blrec )
276- - [ OpenAI/whisper] ( https://github.com/OpenAI/whisper )
283+ - [ OpenAI/whisper] ( https://github.com/OpenAI/whisper )
284+ - [ biliup/biliup-rs] ( https://github.com/biliup/biliup-rs )
285+ - [ hihkm/DanmakuFactory] ( https://github.com/hihkm/DanmakuFactory )
Original file line number Diff line number Diff line change @@ -74,7 +74,9 @@ def read_append_and_delete_lines():
7474 if LoginController ().check_bilibili_login ():
7575 pass
7676 else :
77- LoginController ().login_bilibili (export = False )
77+ file = BILIVE_DIR + "/cookie.json"
78+ LoginController ().login_bilibili_with_cookie_file (file )
79+ # LoginController().login_bilibili(export=False)
7880 continue
7981 # with read_lock:
8082 upload_queue = get_single_upload_queue ()
@@ -98,9 +100,6 @@ def read_append_and_delete_lines():
98100 upload_video (video_path )
99101 else :
100102 upload_dict = FeedController ().get_video_dict_info (20 , "pubed,not_pubed,is_pubing" )
101- # result = subprocess.check_output("bilitool" + " list", shell=True)
102- # # print(result.decode("utf-8"), flush=True)
103- # upload_list = result.decode("utf-8").splitlines()
104103 bv_result = upload_dict .get (query )
105104 if bv_result :
106105 upload_log .info (f"The series of videos has already been uploaded, the BV number is: { bv_result } " )
You can’t perform that action at this time.
0 commit comments