1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2025-01-09 14:47:55 +01:00
Commit Graph

3 Commits

Author SHA1 Message Date
Sergio Kef
e58f3a61fe Remove logic checking if file has changed 2020-04-20 15:11:17 +02:00
Sergio Kef
f947efd3e9 Improve docstring 2020-04-18 00:12:41 +02:00
Sergio Kef
dd065a7305 Add Archive class for efficient archiving
Currently we reread the file for every new link we download.
In cases where user runs youtube_dl to keep their library
up-to-date, this is very inefficient, as most of the links
are already downloaded.
Archive class works half way between a database and an append
log. It's an append log that also keeps a hash set in memory
for fast checking existing links.
A compatibility function was added for reading file's last
modification date
Tests have been added
2020-04-18 00:03:19 +02:00