all repos — sunstroke @ c4d85c371226380ae82f722938ca12eb5a528512

better print
Andronaco Marco marco.andronaco@olivetti.com
Wed, 12 Jul 2023 16:01:59 +0200
commit

c4d85c371226380ae82f722938ca12eb5a528512

parent

eceadcf2f0e4150b131b14e7c3c9553f1169b87e

1 files changed, 7 insertions(+), 5 deletions(-)

jump to
M main.pymain.py

@@ -36,19 +36,21 @@ try:

con = Pyload() return [ download_link(con, name, link) for link in links ] except URLError: - print("Connessione a Pyload rifiutata.") + print("\nConnessione a Pyload rifiutata.") print("Link da aggiungere manualmente:\n") - for x in links: - print(x) - print() + print("\n".join(links)) + print("") return [] def main(): newspapers = get_newspaper(NEWSPAPER_PREFIX, 0) # 0 -> today - name = NEWSPAPER_PREFIX + datetime.today().strftime("%Y-%m-%d") + name = f"{NEWSPAPER_PREFIX} - {datetime.today().strftime('%Y-%m-%d')}" links = get_sorted_links(newspapers) pids = handle_links(name, links) + print(len(pids), "link aggiunti a Pyload.") + print("Premi INVIO per uscire.") + input() if __name__ == "__main__": exit(main())