Typos and syntax issues

This commit is contained in:
Eddy Hintze 2020-01-19 18:43:35 -05:00
parent e93ff0628e
commit 1d3ae04a60
3 changed files with 3 additions and 2 deletions

View File

@ -4,3 +4,4 @@
- Started change log
- Added more detail to readme
- Removed the use of f-strings to support more python versions
- Fixed bug where folders and files were only a single letter

View File

@ -14,7 +14,7 @@ def _clean_name(dirty_str):
if c.isalpha() or c.isdigit() or c in allowed_chars:
clean.append(c)
return "".join(c.strip())
return "".join(clean).strip()
def download_library(cookie_path, library_path, progress_bar=False):

View File

@ -11,7 +11,7 @@ def _get_cookie_str(driver):
raw_cookies = driver.get_cookies()
baked_cookies = ''
for cookie in raw_cookies:
baked_cookies += cookie['name'] + "=" + {cookie['value'] + ";"
baked_cookies += cookie['name'] + "=" + cookie['value'] + ";"
# Remove the trailing ;
return baked_cookies[:-1]