From 410c0f07e3c18a9ea820fdc2dfcdde69bf6c93bd Mon Sep 17 00:00:00 2001 From: Leilei332 Date: Sun, 29 Jan 2023 17:59:31 +0800 Subject: [PATCH 1/2] Add CLI version --- Python/.BiliccSrt_GUI.py.swp | Bin 0 -> 12288 bytes Python/BiliccSrt_CLI.py | 7 +++++++ .../__pycache__/BiliccSrt_Down.cpython-38.pyc | Bin 0 -> 3608 bytes 3 files changed, 7 insertions(+) create mode 100644 Python/.BiliccSrt_GUI.py.swp create mode 100644 Python/BiliccSrt_CLI.py create mode 100644 Python/__pycache__/BiliccSrt_Down.cpython-38.pyc diff --git a/Python/.BiliccSrt_GUI.py.swp b/Python/.BiliccSrt_GUI.py.swp new file mode 100644 index 0000000000000000000000000000000000000000..f67a44600633cb15f1f7248b8435042924c4cc8b GIT binary patch literal 12288 zcmeI2-%}e^6vuCU@VC{`7iWA~n}>v%G_V2MSSJqz`h&4r#uA?Dv`ey(m1H;FEG^(m zidLjxqpd9nZKt$ge*>MVQ%D2oi~6QB{&>2rd{EN zHD@<&s}84RJymUOTpd#4N@L^Zy}D7|(rd&t)#`~v(6N7KxY?KNU2`WszzJ{y4^Chs zsr8FBu1zlsFFYT9@a233C%_4C0-OLRzzJ{yoB$`l2|UyUjN}IL7b18BdKKDG52<{|NypO32rbLXROJ{QsZ*4dBaX3HbtAg04X) zpm(4?s29?pm!R)A67mgn5xM|PKw)SHrIC{r)&1KSDo1`=RYn z6Z8vW{TX60f5qbFjT7JmH~~(86L>fYL}F66+S#Rb`x26(#x*VJsUjq)E2<%Q+%A_( zDCSNV&mUR7Gipvxnu{mtK=y8KEZn+dbKuu>|2~yXp`Y~^&Yht*M(F&h{QON!zndGT znHf5J)|@%DoE|I;U12N4E%s*CLO1M4s;YF0zN8fC@}!ig9CYhSXUxEmJt71JqYJLc zx-Zmi7@F#dDk({QTamqn++zgYg<~ga=Cs=z(Gm$sjRt!n-or}Nhy}%ZZ%k%;1x0U% zrW!%dCb~FnF3c>CA6>rl@g}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Gt(W@M?zXOU@_Y6Msvu;v+sYRDvq8kMO9k#w&<`}Qs7DYm+S@N`wcpCx&Pp1L z9CIuW)Xe2=glvL6od~oZD{ppzYEBvsLC8QQpJ1c&2HnVd0)|h@8FEjLA$y*o;1gfu z<7&*@jpDuvBdPUZ9`UdqKaH(qE9G?v{yMRcX3nto679s(!4GHHp&8}}tR-OY&#(@M z?w?_Ai{WSEU(K*LXJ?+DVcTb$AJ4E=qWRCkFK6rDJ$KL($%*aaJXwW?CxNufD>ze# z;6!g&BxIvFYzB~!ffh=M-d~^@#@q0m&Rax*i;t$i_~X>M2a{vxr*7X6N!Qtl`@^-N z$5Wr(ns|6|ohfBPxgaCXORgE@hd>DJcWx3XY~#T%GSn(BJGMmxN~K=E(5<622Ju z#71Z$F%0$bWNh-zA13eqdFtk;VE)AYa}$q;#Yn)~rfHYOM;b~dlM!EP$eB#QGHE5` zT%7Vui!$ageP99We~~#`u*xx%*&MEkB_tI^6UCv?G;>~FP}Pet97cB$(~0{|ip)kb zBG^;zCo&BY^#tjhUyzTsQ>?n+Jp>Arg9O@}{WdS<&F!?w?gp5(imJ$L{x=h?)9ST^ Qp3;^_*?;~1ttNHtKgk#GcK`qY literal 0 HcmV?d00001 -- Gitee From 902f84f5d9b948e03d093d66ed6e70991a126200 Mon Sep 17 00:00:00 2001 From: Leilei332 Date: Sun, 29 Jan 2023 17:59:31 +0800 Subject: [PATCH 2/2] Add CLI version --- Python/BiliccSrt_CLI.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Python/BiliccSrt_CLI.py diff --git a/Python/BiliccSrt_CLI.py b/Python/BiliccSrt_CLI.py new file mode 100644 index 0000000..fdf141f --- /dev/null +++ b/Python/BiliccSrt_CLI.py @@ -0,0 +1,7 @@ +import argparse, BiliccSrt_Down +parser = argparse.ArgumentParser() +parser.add_argument("bv_num", help="视频BV号") +parser.add_argument("-e", "--encoding", choices=["utf-8", "utf-16"], default="utf-8", help="编码") +args = parser.parse_args() +BiliccSrt_Down.bianma = args.encoding +BiliccSrt_Down.downAll(args.bv_num) -- Gitee