Commit Graph

12 Commits

Author SHA1 Message Date
Joshua Boniface 402d88fcec Fix bad variable override 2023-04-06 22:20:50 -04:00
Joshua Boniface ef66420f4e Adjust default structure again 2023-04-06 20:14:24 -04:00
Joshua Boniface a766f2a61f Add linting/formatting and convert to module 2023-04-06 19:33:52 -04:00
Joshua Boniface ca36555e6b Ensure basic HTML parsing is in retry block 2023-04-06 12:54:10 -04:00
Joshua Boniface 6ec8923336 Improve download link handling
The previous method relied on the main "download link" in the list page.
But this link was broken a solid 1/4 of the time, and far more often for
some artists.

Instead, during DB build, grab and parse each actual song page too, and
grab from it all possible download links. Use a ThreadPoolExecutor to do
this in a reasonable amount of time (default of 10 workers, but user
configurable).

Then when downloading, iterate over all download links, or provide some
user options for filtering these by ID or description.
2023-04-06 02:56:12 -04:00
Joshua Boniface 3a0ef3dcc6 Fix bad ref to variable 2023-04-05 00:09:55 -04:00
Joshua Boniface 8365ed51a6 Lower to 3 attempts 2023-04-03 04:59:03 -04:00
Joshua Boniface f3b4119e1a Ensure empty fields are filled 2023-04-03 04:55:46 -04:00
Joshua Boniface 2d82329e4f Create directory only after download is ready
Avoid creating junky empty dirs on failed downloads
2023-04-03 04:52:23 -04:00
Joshua Boniface a9f54b8f42 Alter default structure to focus author 2023-04-03 04:39:04 -04:00
Joshua Boniface 765bedeb50 Add gitignore 2023-04-02 15:14:28 -04:00
Joshua Boniface cdc67eb114 Add c2dbdl script 2023-04-02 15:14:13 -04:00