Permalink
Commits on Nov 6, 2011
  1. Reworked how I implimented the error checking that was removed. There…

    … 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.
    uberj committed Nov 6, 2011
  2. Re-introduced a whole bunch of error handling code. This is important…

    …, go ahead and change stuff, but please make sure errors are *still* handled after things get shifted around.
    uberj committed Nov 6, 2011
  3. Carpet bombing exception handling is bad. You don't know if you have …

    …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?
    uberj committed Nov 6, 2011
  4. cleaned up the code, fixed typos, made sane default, and use random f…

    …ile names only if it can't fetch title
    Kevin Ngo committed Nov 6, 2011
  5. Added random name generator. This will be usefull if you want random …

    …names... or if fetching the name fails.
    uberj committed Nov 6, 2011
  6. Changes:

    * 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?)
    uberj committed Nov 6, 2011
  7. renamed to soundcloud-dl, fixed shebang

    Kevin Ngo committed Nov 6, 2011
  8. merge

    Kevin Ngo committed Nov 6, 2011
  9. Adding logic to deal with different options

    David committed Nov 6, 2011
  10. Adding a readme

    David committed Nov 6, 2011
  11. Refactoring for reability

    David committed Nov 6, 2011
  12. Getting song title too

    David committed Nov 6, 2011
Commits on Nov 5, 2011
  1. Merge pull request #1 from uberj/patch-1

    uberj's typo fix
    Kevin Ngo committed Nov 5, 2011
  2. Add me as a contributer?

    uberj committed Nov 5, 2011
  3. finish. now successfully downloads .mp3 files and saves it to file. n…

    …eed to regex out title of song. (with much help from thedjpetersen and uberj
    Kevin Ngo committed Nov 5, 2011
  4. initial commit, can't get cookies out

    Kevin Ngo committed Nov 5, 2011