youtube-dl-subscriptions icon indicating copy to clipboard operation
youtube-dl-subscriptions copied to clipboard

Improved how last.txt is handled

Open julienc91 opened this issue 6 years ago • 0 comments

Currently, last.txt is created on the first run, but the script doesn't do anything else on this first time.

With my PR, if last.txt does not exist, or if its content is invalid (issue #4), the current timestamp is used instead. Consequently, there is no need to run the script twice on the first run anymore.

I also applied flake8 on the code to clean it up against pep8 rules, and reorganized a little bit the code into functions for better readability.

julienc91 avatar Oct 04 '18 17:10 julienc91