Fixed merge logic error

This commit is contained in:
Kepoor Hampond 2017-03-15 20:50:37 -07:00
parent 4a1d34db0b
commit df86541d62
2 changed files with 8 additions and 4 deletions

View file

@ -297,9 +297,13 @@ def check_sources(ripper, key, default=None, environment=False, where=None):
#============
from .config import CONFIG
def check_sources(ripper, key, default=None, environment=False):
if ripper.args.get(key):
return ripper.args.get(key)
def check_sources(ripper, key, default=None, environment=False, where=None):
tmp_args = ripper.args
if where != None and ripper.args.get(where):
tmp_args = ripper.args.get(where)
if tmp_args.get(key):
return tmp_args.get(key)
elif CONFIG.get(key):
return CONFIG.get(key)
elif os.environ.get(key) and environment == True:

View file

@ -2,7 +2,7 @@ from setuptools import setup
setup(
name='irs',
version='6.1.2',
version='6.2.2',
description='A music downloader that just gets metadata.',
url='https://github.com/kepoorhampond/irs',
author='Kepoor Hampond',