mirror of
https://github.com/instaloader/instaloader.git
synced 2024-09-11 16:22:24 +02:00
Fix pathname capitalization inconsistency issues
This commit is contained in:
parent
1fdce16f46
commit
b3f916b371
@ -90,7 +90,7 @@ def get_default_session_filename(username: str) -> str:
|
|||||||
"""Returns default session filename for given username."""
|
"""Returns default session filename for given username."""
|
||||||
dirname = tempfile.gettempdir() + "/" + ".instaloader-" + getpass.getuser()
|
dirname = tempfile.gettempdir() + "/" + ".instaloader-" + getpass.getuser()
|
||||||
filename = dirname + "/" + "session-" + username
|
filename = dirname + "/" + "session-" + username
|
||||||
return filename
|
return filename.lower()
|
||||||
|
|
||||||
|
|
||||||
def copy_session(session: requests.Session) -> requests.Session:
|
def copy_session(session: requests.Session) -> requests.Session:
|
||||||
@ -711,9 +711,9 @@ class Instaloader:
|
|||||||
"""
|
"""
|
||||||
profile_exists = len(json_data["entry_data"]) > 0 and "ProfilePage" in json_data["entry_data"]
|
profile_exists = len(json_data["entry_data"]) > 0 and "ProfilePage" in json_data["entry_data"]
|
||||||
if self.profile_subdirs:
|
if self.profile_subdirs:
|
||||||
id_filename = profile + "/id"
|
id_filename = profile.lower() + "/id"
|
||||||
else:
|
else:
|
||||||
id_filename = profile + "__id"
|
id_filename = profile.lower() + "__id"
|
||||||
try:
|
try:
|
||||||
with open(id_filename, 'rb') as id_file:
|
with open(id_filename, 'rb') as id_file:
|
||||||
profile_id = int(id_file.read())
|
profile_id = int(id_file.read())
|
||||||
|
Loading…
Reference in New Issue
Block a user