Commit Graph

24 Commits

Author SHA1 Message Date
tastytea 840030ba9a Remove max_videos
`--playlist-end N` means that it stops considering videos after number N, not
that it only downloads N videos.
2022-01-13 12:30:56 +01:00
tastytea 88190ad14a Use yt-dlp if available, allow to set preferred binary. 2021-10-25 04:49:38 +02:00
tastytea f9e62efe73 find: specify global options (-maxdepth) before others. 2021-02-26 00:31:26 +01:00
tastytea 8fa4e9f903 Don't try to delete files when deleting empty directories. 2021-02-10 12:22:34 +01:00
tastytea 4462676df1 Remove empty directories. 2020-12-31 01:29:00 +01:00
tastytea 0cf9f65894 Replace # with _ in filenames.
Some media players don't like # in M3U playlists.
2020-12-25 18:21:01 +01:00
tastytea 94ab72a6ec Revert "Replace # with _ in m3u playlists."
This reverts commit 124032041f.

Changing the name in the palylist without changing the file name doesn't
help. 🤦
2020-12-25 17:58:31 +01:00
tastytea 124032041f Replace # with _ in m3u playlists.
Some players treat '#' in a filename as the beginning of a comment.
2020-12-25 13:48:50 +01:00
tastytea a2ff570736 Don't add subtitle files to playlist. 2020-12-24 00:19:10 +01:00
tastytea 713c3556fd Move delete above download.
I had a freshly downloaded video deleted immediately. Not sure why,
probably the wrong date was written. This change will make it possible
to check if that is the case.
2020-12-24 00:16:14 +01:00
tastytea 42d10093fa Add license. 2020-12-17 20:38:09 +01:00
tastytea 03c8b512ea Put time for playlist filename in a variable.
The old behaviour could have lead to more than 1 playlist per run.
2020-12-17 12:37:47 +01:00
tastytea a58b58a655 Make files_before and files_after local. 2020-12-16 21:21:20 +01:00
tastytea eab91953eb Change description. 2020-12-16 19:30:35 +01:00
tastytea c66f4051f6 Fix matching for playlist. 2020-12-16 19:12:55 +01:00
tastytea e619cae944 Don't exit on youtube-dl error. 2020-12-16 18:56:08 +01:00
tastytea 6b0cce9020 Add max_videos config option. 2020-12-16 18:55:12 +01:00
tastytea 2dc541250e use relative paths in playlist. 2020-12-16 18:21:07 +01:00
tastytea 1ca20f6884 Exit on youtube-dl error. 2020-12-16 18:13:16 +01:00
tastytea 568775eaba Split ytdl_extra_args on whitespace. 2020-12-16 18:12:36 +01:00
tastytea 6b8b02152f Make program executable. 2020-12-16 18:03:33 +01:00
tastytea 442e31d2fd Write M3U playlist with new videos. 2020-12-16 17:59:44 +01:00
tastytea 9c083ec36e Add ytdl_extra_args. 2020-12-16 17:22:33 +01:00
tastytea c8ff991a04 Rename program filename (drop .sh). 2020-12-16 16:55:33 +01:00