cleanup console logging messages

This commit is contained in:
Nick Sweeting
2018-04-17 03:22:59 -04:00
parent 1ea695d7b7
commit 2cd11feaac
4 changed files with 25 additions and 9 deletions

View File

@@ -32,6 +32,8 @@ Link {
"""
import datetime
from util import (
domain,
base_url,
@@ -39,6 +41,7 @@ from util import (
get_link_type,
merge_links,
)
from config import ANSI
def validate_links(links):
@@ -95,7 +98,11 @@ def links_after_timestamp(links, timestamp=None):
yield from links
return
print('[.] [{}] Resuming...'.format(timestamp))
print('▶️ [{}] {green}Resuming downloads at {}...{reset}'.format(
datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
timestamp,
**ANSI,
))
for link in links:
try:
if float(link['timestamp']) <= float(timestamp):