1
0
Fork 0
mirror of synced 2024-06-30 12:00:41 +12:00

dont show in progresss message or regen index on exit

This commit is contained in:
Nick Sweeting 2019-03-20 02:36:55 -04:00
parent f9a7c530b9
commit 7f84c4b3c8
2 changed files with 9 additions and 7 deletions

View file

@ -112,10 +112,10 @@ def update_archive(archive_path, links, source=None, resume=None, append=True):
archive_link(link_dir, link) archive_link(link_dir, link)
except (KeyboardInterrupt, SystemExit, Exception) as e: except (KeyboardInterrupt, SystemExit, Exception) as e:
if isinstance(e, KeyboardInterrupt): # if isinstance(e, KeyboardInterrupt):
# Step 4: Re-write links index with updated titles, icons, and resources # # Step 4: Re-write links index with updated titles, icons, and resources
all_links, _ = load_links(archive_path=out_dir) # all_links, _ = load_links(archive_path=out_dir)
write_links_index(out_dir=out_dir, links=all_links, finished=True) # write_links_index(out_dir=out_dir, links=all_links, finished=True)
print() print()
print('\n{lightyellow}[X] [{now}] Downloading paused on link {timestamp} ({idx}/{total}){reset}'.format( print('\n{lightyellow}[X] [{now}] Downloading paused on link {timestamp} ({idx}/{total}){reset}'.format(
**ANSI, **ANSI,

View file

@ -117,9 +117,9 @@
body[data-status~=finished] .files-spinner { body[data-status~=finished] .files-spinner {
display: none; display: none;
} }
body[data-status~=running] .in-progress { /*body[data-status~=running] .in-progress {
display: inline-block; display: inline-block;
} }*/
</style> </style>
</head> </head>
<body data-status="$status"> <body data-status="$status">
@ -135,7 +135,9 @@
</a> </a>
</div> </div>
<div class="header-center"> <div class="header-center">
Archived Sites <span class="in-progress">(Currently Updating)</span><br/> Archived Sites
<!--<span class="in-progress">(Currently Updating)</span>-->
<br/>
<small>Last updated $time_updated</small> <small>Last updated $time_updated</small>
</div> </div>
</header> </header>