Fixed misspelling in README.md

master
Adam Walsh 2014-12-02 20:16:04 -05:00 committed by flyingrub
parent b49b3cc8e5
commit 362fc19b82
3 changed files with 17 additions and 11 deletions

View File

@ -1,7 +1,7 @@
<p align="center">
<img src="http://soundcloud-dl.com/soundcloud-download-logo.png" alt="Logo"/>
</p>
# Souncloud Music Downloader
# Soundcloud Music Downloader
## Changelog
Current state : [Here](https://github.com/flyingrub/scdl/issues/2)
@ -27,16 +27,16 @@ ___
> get your auth token here : http://flyingrub.tk/soundcloud/
* This permitt scdl to access to your user profile data.
* For now scdl use it only to use `scdl.py me [OPTIONS]` instead of `scdl.py -l [url] [OPTIONS]`
* For now scdl use it only to use `scdl me [OPTIONS]` instead of `scdl -l [url] [OPTIONS]`
* (soon) scdl will download an user's stream thanks to this
## Help
### Usage:
```
scdl.py -l <track_url> [-a | -f | -t | -p][-c][-o <offset>][--hidewarnings][--addtofile]
scdl.py me (-s | -a | -f | -t | -p)[-c][-o <offset>][--hidewarnings][--addtofile]
scdl.py -h | --help
scdl.py --version
scdl -l <track_url> [-a | -f | -t | -p][-c][-o <offset>][--hidewarnings][--addtofile]
scdl me (-s | -a | -f | -t | -p)[-c][-o <offset>][--hidewarnings][--addtofile]
scdl -h | --help
scdl --version
```
### Options:
@ -54,6 +54,7 @@ ___
-o [offset] Begin with a custom offset.
--hidewarnings Hide Warnings. (use with precaution)
--addtofile Add the artist name to the filename if it isn't in the filename already
--path Path to download directory, can be set in the config. If none of this is set, it uses the current working directory
```

View File

@ -41,7 +41,7 @@ import json
import mutagen
token = ''
path = ''
offset = 0
filename = ''
@ -73,18 +73,22 @@ def main():
if arguments["--hidewarnings"]:
warnings.filterwarnings("ignore")
print("no warnings!")
# print("no warnings!") # Warn about no warnings...?
if arguments["--path"] is not None:
if os.path.exists(arguments["--path"]):
print('Downloading to '+arguments["--path"]+'...')
os.chdir(arguments["--path"])
else:
print('Invalid path...')
sys.exit()
if path is not None:
print('Downloading to '+path+'...')
os.chdir(path)
else:
print('Downloading to current directory...')
print('')
if arguments["-l"]:
parse_url(arguments["<track_url>"])
parse_url(arguments["-l"])
elif arguments["me"]:
if arguments["-a"]:
download_all_user_tracks(who_am_i())
@ -101,6 +105,7 @@ def get_config():
read the path where to store music
"""
global token
global path
config = configparser.ConfigParser()
config.read(os.path.join(os.path.expanduser('~'), '.config/scdl/scdl.cfg'))
try:

0
setup.py Normal file → Executable file
View File