Commit Graph

166 Commits

Author SHA1 Message Date
Ritiek Malhotra
c1b3949edb Disable logs from chardet 2020-05-20 12:32:21 +05:30
Ritiek Malhotra
6288e3c6e5 Prepare for v2.0.5 2020-05-20 12:21:20 +05:30
Ritiek Malhotra
2aa7dce4a4 Derive download directory from filename itself
In some cases when using `-f` to create sub-directories from metadata,
where the full slugified download filename and the non-slugified
download directory happen to differ, the download would fail. This
happens because the directory the track needs to be downloaded doesn't
get created.

With this, the download directory will now be derived from filename
itself so that the sub-directory name always overlaps.

Fixes #727.
2020-05-20 12:19:13 +05:30
Ritiek Malhotra
19ae8fd408 Don't remove track from file on KeyboardInterrupt
This allows the download to continue from this KeyboardInterrupted
track on the next run, when using `--list`.
2020-05-19 13:15:39 +05:30
Ritiek Malhotra
debe7ee902 Optional parameter to check if the encoder exists
If `must_exists` is `False` when intializing `EncoderFFmpeg()`, skip
skip checking whether the FFmpeg binary exists.

Fixes #722.
2020-05-19 12:49:00 +05:30
Ritiek Malhotra
046e7e9d3c Fix crash if FFmpeg isn't found
`EncoderFFmpeg()` objects are now initialized while the program is
running, instead on invocation.
2020-05-19 00:07:35 +05:30
Ritiek Malhotra
29b1f31a26 Fix tests 2020-05-18 18:00:09 +05:30
Ritiek Malhotra
64d54d7943 Retry a few times if Genius returns an invalid response 2020-05-18 17:50:01 +05:30
Ritiek Malhotra
85c12a91ef Call debug statements when fetching lyrics 2020-05-18 16:28:10 +05:30
Ritiek Malhotra
9795d7e9b8 Release v2.0.2 2020-05-18 15:16:00 +05:30
Ritiek Malhotra
bbe43da191 Bugfix: crash when skipping track with -m [Fixes #721] 2020-05-18 15:14:22 +05:30
Ritiek Malhotra
8b7fd04321 Bump to v2.0.1 2020-05-18 14:13:00 +05:30
Ritiek Malhotra
cd5f224e37 Bugfix: -o m4a would fail [Fixes #720]
In FFmpeg, a given encoding may not always point to the same format
string.
2020-05-18 14:01:01 +05:30
Ritiek Malhotra
675d1805ed logger.error when no streams found for input format 2020-05-18 13:13:41 +05:30
Ritiek Malhotra
ac6997e05e Show possible special tags in -h 2020-05-18 04:53:30 +05:30
Ritiek Malhotra
fe4276e27c Rename *.html to *html.test 2020-05-18 04:38:05 +05:30
Ritiek Malhotra
a833f190e1 Bugfix: default config saved is overwritten with passed args 2020-05-18 04:10:43 +05:30
Ritiek Malhotra
fec187994b Bugfix: writing to STDOUT would do opposite 2020-05-18 03:56:10 +05:30
Ritiek Malhotra
0a8244fc74 Rename spotdl.command_line.lib to spotdl.command_line.core 2020-05-18 03:40:14 +05:30
Ritiek Malhotra
c5a85eb343 Don't bother for lyrics with --no-metadata 2020-05-18 01:39:57 +05:30
Ritiek Malhotra
81a6cb052b Implement --write-successful-file and --skip-file 2020-05-18 00:11:33 +05:30
Ritiek Malhotra
23e18e1550 Fail to run on <2.0.0 configuration files 2020-05-17 03:37:47 +05:30
Ritiek Malhotra
e0e7048ced Add --remove-config 2020-05-16 09:07:33 +05:30
Ritiek Malhotra
9c61d9951e Config dir must exist before creating config file 2020-05-15 17:10:21 +05:30
Ritiek Malhotra
39ebd5f57e Fix tests 2020-05-15 15:00:51 +05:30
Ritiek Malhotra
e71989a963 Feed arguments in libary usage mode 2020-05-15 00:32:54 +05:30
Ritiek Malhotra
f40f69fdc5 Better handling when FFmpeg isn't found 2020-05-12 20:41:00 +05:30
Ritiek Malhotra
ad34bb01a3 Handle FFmpeg trim silence option 2020-05-12 19:56:35 +05:30
Ritiek Malhotra
635c18723b "--write-to -" for writing to to STDOUT 2020-05-12 03:49:37 +05:30
Ritiek Malhotra
a365746e45 Remove unused functions 2020-05-12 03:24:47 +05:30
Ritiek Malhotra
e3e56b76a2 Remove sys.exit from sub-modules 2020-05-12 02:50:19 +05:30
Ritiek Malhotra
150d8b0b81 Search format enhancements 2020-05-10 18:52:50 +05:30
Ritiek Malhotra
819bb87fc2 Calling ._get_id isn't required in new spotipy versions 2020-05-10 18:16:57 +05:30
Ritiek Malhotra
b958212805 Add CHANGELOG 2020-05-10 17:32:17 +05:30
Ritiek Malhotra
083af5b802 Nuke avconv 2020-05-10 04:44:31 +05:30
Ritiek Malhotra
4abdecf9ec Write to {filename}.temp when downloading 2020-05-09 20:09:00 +05:30
Ritiek Malhotra
e0362b6e8c Retry a few times to workaround random YouTube issues 2020-05-08 22:14:51 +05:30
Ritiek Malhotra
007fc0be67 Faster generation of m3u playlists 2020-05-07 23:38:34 +05:30
Ritiek Malhotra
c9bf0bc020 De-clutter metadata search 2020-05-07 19:36:38 +05:30
Ritiek Malhotra
ec5704e050 zfill track number metadata 2020-05-05 14:17:27 +05:30
Ritiek Malhotra
c3e8a0f0db Link arguments to spotipy helpers 2020-05-05 02:25:05 +05:30
Ritiek Malhotra
5a75687722 Add debug log statements 2020-05-04 14:50:05 +05:30
Ritiek Malhotra
4495755edc Setup coloredlogs to remove logzero 2020-05-03 16:34:49 +05:30
Ritiek Malhotra
ec765119fa Setup coloredlogs 2020-05-03 09:06:03 +05:30
Ritiek Malhotra
715a95df1e Move command-line class methods to module fns as needed 2020-04-27 00:59:48 +05:30
Ritiek Malhotra
a7578e9de0 Create a class for command-line functions 2020-04-27 00:28:15 +05:30
Ritiek Malhotra
35461e8602 Setup logzero.logger 2020-04-26 12:29:41 +05:30
Ritiek Malhotra
629d1643c7 Remove --avconv in favour of --encoder 2020-04-23 23:06:15 +05:30
Ritiek Malhotra
2feb9c4b49 Implement --manual 2020-04-23 22:38:27 +05:30
Ritiek Malhotra
300f17e5cd Merge options -f and -ff into -f 2020-04-23 14:55:52 +05:30