mirror of
https://codeberg.org/Yael-II/ArXtic.git
synced 2026-03-14 22:06:27 +01:00
2025-10-18: Automatic update
This commit is contained in:
1
setup.sh
1
setup.sh
@@ -33,6 +33,7 @@ mkdir -p -v db
|
||||
touch db/read.bib
|
||||
touch db/unread.bib
|
||||
touch db/local.bib
|
||||
touch db/today.bib
|
||||
chmod u+x *.sh
|
||||
echo "=== Done ==="
|
||||
|
||||
|
||||
@@ -88,8 +88,10 @@ if __name__ == "__main__":
|
||||
arg0 = args[0].lower()
|
||||
|
||||
try:
|
||||
if arg0[0] == "!":
|
||||
exec(val[1:])
|
||||
|
||||
if arg0 in ["quit", "exit", "q"]:
|
||||
elif arg0 in ["quit", "exit", "q"]:
|
||||
if s == True:
|
||||
q = True
|
||||
else:
|
||||
@@ -113,6 +115,13 @@ if __name__ == "__main__":
|
||||
elif arg0 in ["local"]:
|
||||
libraries["local"] = local_api.update_local_pdf(
|
||||
library=libraries["local"])
|
||||
s = False
|
||||
|
||||
elif arg0 in ["today"]:
|
||||
today_lib = arxiv_api.arxiv_today()
|
||||
libraries_names.append("today")
|
||||
libraries["today"] = today_lib
|
||||
s = False
|
||||
|
||||
elif arg0 in ["print"]:
|
||||
if nargs == 2:
|
||||
|
||||
Reference in New Issue
Block a user