mirror of
https://github.com/xtream1101/humblebundle-downloader.git
synced 2024-11-20 08:49:17 +01:00
Typos and syntax issues
This commit is contained in:
parent
e93ff0628e
commit
1d3ae04a60
@ -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
|
||||
|
@ -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):
|
||||
|
@ -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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user