1
0

Clear the output before writing the summary.

This commit is contained in:
Pierre Cazenave 2018-10-08 12:42:15 +01:00
parent f73247b2b0
commit fa11d33a3e

3
dl.py
View File

@ -75,7 +75,8 @@ if __name__ == '__main__':
video_time = datetime.fromtimestamp(mktime(item['published_parsed']))
if video_time > threshold_time:
videos.append(item['link'])
print(' ' * 100, end='\r')
if len(videos) == 0:
print('Sorry, no new video found')
else: