mirror of
https://github.com/instaloader/instaloader.git
synced 2024-09-11 08:12:24 +02:00
Update 615_import_firefox_session.py
This fixes finding the cookies.sqlite file on MacOS as per https://github.com/instaloader/instaloader/issues/92#issuecomment-638361344.
This commit is contained in:
parent
26a78463f1
commit
c818165db4
@ -13,8 +13,8 @@ except ModuleNotFoundError:
|
|||||||
def get_cookiefile():
|
def get_cookiefile():
|
||||||
default_cookiefile = {
|
default_cookiefile = {
|
||||||
"Windows": "~/AppData/Roaming/Mozilla/Firefox/Profiles/*/cookies.sqlite",
|
"Windows": "~/AppData/Roaming/Mozilla/Firefox/Profiles/*/cookies.sqlite",
|
||||||
"Darwin": "~/Library/Application Support/Firefox/Profiles/*.default/cookies.sqlite",
|
"Darwin": "~/Library/Application Support/Firefox/Profiles/*/cookies.sqlite",
|
||||||
}.get(system(), "~/.mozilla/firefox/*.default/cookies.sqlite")
|
}.get(system(), "~/.mozilla/firefox/*/cookies.sqlite")
|
||||||
cookiefiles = glob(expanduser(default_cookiefile))
|
cookiefiles = glob(expanduser(default_cookiefile))
|
||||||
if not cookiefiles:
|
if not cookiefiles:
|
||||||
raise SystemExit("No Firefox cookies.sqlite file found. Use -c COOKIEFILE.")
|
raise SystemExit("No Firefox cookies.sqlite file found. Use -c COOKIEFILE.")
|
||||||
|
Loading…
Reference in New Issue
Block a user