1
0
Commit Graph

24 Commits

Author SHA1 Message Date
ea994e3d9f
Move subs.xml and last.txt into configs dir
New runtime option allows specifying an optional config directory in
which the two required configuration files will be stored. It is useful
to make this directory a mounted volume when running in a docker
container.
2019-11-07 06:45:49 -08:00
Pierre Cazenave
91b12116af Fix globbing and omit the last.txt file. 2018-10-08 12:42:28 +01:00
Pierre Cazenave
fa11d33a3e Clear the output before writing the summary. 2018-10-08 12:42:15 +01:00
Pierre Cazenave
f73247b2b0 Only download videos from more recently than the specified date (if given). 2018-10-08 12:42:01 +01:00
Pierre Cazenave
b723abc9d8 Save videos into a directory per channel. 2018-10-08 12:41:38 +01:00
Pierre Cazenave
4b1204ae65 Use nicer variable names and tidy the code a bit. 2018-10-08 12:41:15 +01:00
Pierre Cazenave
b5d74411cb Add new option to only download files since a given number of days. 2018-10-08 12:40:23 +01:00
Pierre Cazenave
7e92e2a6b7 Rearrange imports. 2018-10-08 12:39:45 +01:00
Pierre Cazenave
225da2a92e Actually remove the old videos. 2018-09-28 22:55:22 +01:00
Pierre Cazenave
2ec429f438 Turn off verbose output for youtube-dl. 2018-09-28 22:50:50 +01:00
Pierre Cazenave
768a3a6326 Remove extra blank line. 2018-09-28 22:50:31 +01:00
Pierre Cazenave
e7217e2713 Fix indent. 2018-09-28 22:44:56 +01:00
Pierre Cazenave
95aeb812a2 Add command line options.
Optionally specify a save directory.

Optionally specify a retention period (in days).
2018-09-28 22:44:35 +01:00
Pierre Cazenave
bf047176d3 Store the current time up front. 2018-09-28 22:43:43 +01:00
Pierre Cazenave
f90dc45c0b Open the XML file up front (more on this later). 2018-09-28 22:43:22 +01:00
Pierre Cazenave
3516d52162 Remove old time stamps (now created further up the script). 2018-09-28 22:42:59 +01:00
Pierre Cazenave
728c47942f Use f-strings and iterate through objects instead of indexing them. 2018-09-28 22:42:28 +01:00
Pierre Cazenave
12d5c7c27d Remove unused imports. 2018-09-28 22:41:45 +01:00
Pierre Cazenave
9263e599c3 Use with for opening files. 2018-09-28 22:41:33 +01:00
Jelle Besseling
5635dcca27 Include hashbang line (#9)
The hashbang allows you to run the script like this:
`./dl.py`
2018-08-14 10:45:17 -04:00
Jelle Besseling
656dcae1f9 Add ignore errors option for youtube-dl (#10)
This makes sure that the script continues if youtube-dl is unable to download one of the video's
2018-08-14 10:39:44 -04:00
Tomáš Hübelbauer
e85a52ae39
Switch to single quotes 2018-02-07 17:49:23 +01:00
Tomáš Hübelbauer
feac63df22
Check for Python 3 and bail if not met 2018-02-07 17:43:37 +01:00
mewfree
8657760b53 Initial commit 2015-05-12 00:22:27 -04:00