Fixed misspelling in README.md
parent
b49b3cc8e5
commit
362fc19b82
13
README.md
13
README.md
|
@ -1,7 +1,7 @@
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="http://soundcloud-dl.com/soundcloud-download-logo.png" alt="Logo"/>
|
<img src="http://soundcloud-dl.com/soundcloud-download-logo.png" alt="Logo"/>
|
||||||
</p>
|
</p>
|
||||||
# Souncloud Music Downloader
|
# Soundcloud Music Downloader
|
||||||
## Changelog
|
## Changelog
|
||||||
Current state : [Here](https://github.com/flyingrub/scdl/issues/2)
|
Current state : [Here](https://github.com/flyingrub/scdl/issues/2)
|
||||||
|
|
||||||
|
@ -27,16 +27,16 @@ ___
|
||||||
> get your auth token here : http://flyingrub.tk/soundcloud/
|
> get your auth token here : http://flyingrub.tk/soundcloud/
|
||||||
|
|
||||||
* This permitt scdl to access to your user profile data.
|
* 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
|
* (soon) scdl will download an user's stream thanks to this
|
||||||
|
|
||||||
## Help
|
## Help
|
||||||
### Usage:
|
### Usage:
|
||||||
```
|
```
|
||||||
scdl.py -l <track_url> [-a | -f | -t | -p][-c][-o <offset>][--hidewarnings][--addtofile]
|
scdl -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 me (-s | -a | -f | -t | -p)[-c][-o <offset>][--hidewarnings][--addtofile]
|
||||||
scdl.py -h | --help
|
scdl -h | --help
|
||||||
scdl.py --version
|
scdl --version
|
||||||
```
|
```
|
||||||
|
|
||||||
### Options:
|
### Options:
|
||||||
|
@ -54,6 +54,7 @@ ___
|
||||||
-o [offset] Begin with a custom offset.
|
-o [offset] Begin with a custom offset.
|
||||||
--hidewarnings Hide Warnings. (use with precaution)
|
--hidewarnings Hide Warnings. (use with precaution)
|
||||||
--addtofile Add the artist name to the filename if it isn't in the filename already
|
--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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
15
scdl/scdl.py
15
scdl/scdl.py
|
@ -41,7 +41,7 @@ import json
|
||||||
import mutagen
|
import mutagen
|
||||||
|
|
||||||
token = ''
|
token = ''
|
||||||
|
path = ''
|
||||||
offset = 0
|
offset = 0
|
||||||
|
|
||||||
filename = ''
|
filename = ''
|
||||||
|
@ -73,18 +73,22 @@ def main():
|
||||||
|
|
||||||
if arguments["--hidewarnings"]:
|
if arguments["--hidewarnings"]:
|
||||||
warnings.filterwarnings("ignore")
|
warnings.filterwarnings("ignore")
|
||||||
print("no warnings!")
|
# print("no warnings!") # Warn about no warnings...?
|
||||||
|
|
||||||
if arguments["--path"] is not None:
|
if arguments["--path"] is not None:
|
||||||
if os.path.exists(arguments["--path"]):
|
if os.path.exists(arguments["--path"]):
|
||||||
|
print('Downloading to '+arguments["--path"]+'...')
|
||||||
os.chdir(arguments["--path"])
|
os.chdir(arguments["--path"])
|
||||||
else:
|
else:
|
||||||
print('Invalid path...')
|
if path is not None:
|
||||||
sys.exit()
|
print('Downloading to '+path+'...')
|
||||||
|
os.chdir(path)
|
||||||
|
else:
|
||||||
|
print('Downloading to current directory...')
|
||||||
|
|
||||||
print('')
|
print('')
|
||||||
if arguments["-l"]:
|
if arguments["-l"]:
|
||||||
parse_url(arguments["<track_url>"])
|
parse_url(arguments["-l"])
|
||||||
elif arguments["me"]:
|
elif arguments["me"]:
|
||||||
if arguments["-a"]:
|
if arguments["-a"]:
|
||||||
download_all_user_tracks(who_am_i())
|
download_all_user_tracks(who_am_i())
|
||||||
|
@ -101,6 +105,7 @@ def get_config():
|
||||||
read the path where to store music
|
read the path where to store music
|
||||||
"""
|
"""
|
||||||
global token
|
global token
|
||||||
|
global path
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
config.read(os.path.join(os.path.expanduser('~'), '.config/scdl/scdl.cfg'))
|
config.read(os.path.join(os.path.expanduser('~'), '.config/scdl/scdl.cfg'))
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue