28 lines
682 B
Python
28 lines
682 B
Python
# -*- encoding: utf-8 -*-
|
|
|
|
"""Python Soundcloud Music Downloader."""
|
|
|
|
import os
|
|
|
|
__version__ = 'v1.6.10'
|
|
CLIENT_ID = 'a3e059563d7fd3372b49b37f00a00bcf'
|
|
ALT_CLIENT_ID = '2t9loNQH90kzJcsFCODdigxfp325aq4z'
|
|
ALT2_CLIENT_ID = 'NONE'
|
|
|
|
dir_path_to_conf = os.path.join(os.path.expanduser('~'), '.config/scdl')
|
|
if 'XDG_CONFIG_HOME' in os.environ:
|
|
dir_path_to_conf = os.environ['XDG_CONFIG_HOME']
|
|
|
|
file_path_to_conf = os.path.join(dir_path_to_conf, 'scdl.cfg')
|
|
text = """[scdl]
|
|
auth_token =
|
|
path = .
|
|
"""
|
|
|
|
if not os.path.exists(dir_path_to_conf):
|
|
os.makedirs(dir_path_to_conf)
|
|
|
|
if not os.path.exists(file_path_to_conf):
|
|
with open(file_path_to_conf, 'w') as f:
|
|
f.write(text)
|