…ture to scrape soundcloud links from any page and download all at once
…entralized place where retry logic was being applied.
… are two places where retry-logic needs to be. 1) First when you get the html (which might not be html), and 2) where you try to get the stream token. This is still kind of a hack, but it works. I'm not sure if this is the best way to do it.
…, go ahead and change stuff, but please make sure errors are *still* handled after things get shifted around.
…run into a different error. It's not a good idea to exit while in a function. Return error values and exit out of main, or some other "main"ish place. Functions should mutate data. They should not kill the program 2 stacks deep. Also, where did the retry logic go?
…ile names only if it can't fetch title
…names... or if fetching the name fails.
* added *.mp3 to ignore file. * added the -u option that changes all spaces to underscores * added retry logic + the retry logic should probably end up in a function somewhere * Handled 404 errors in open_url * Introduced a MAX_NUMBER_OF_TRIES constant. (Should this be a passed in option?)
…eed to regex out title of song. (with much help from thedjpetersen and uberj