Open vraixen opened 5 months ago
"file": "../data/gallery-dl_cache.sqlite3"
Relative paths are relative to your working directory, not your script or config file. Maybe that's the problem.
While you are already using a config file, why not put your Reddit refresh token directly in there instead of relying on a cache file?
"file": "../data/gallery-dl_cache.sqlite3"
Relative paths are relative to your working directory, not your script or config file. Maybe that's the problem.
While you are already using a config file, why not put your Reddit refresh token directly in there instead of relying on a cache file?
because i tried but it doesn't seems to detect it. i also tried using it outside python using the powershell and it doesn't detect it.
"file": "../data/gallery-dl_cache.sqlite3"
Relative paths are relative to your working directory, not your script or config file. Maybe that's the problem. While you are already using a config file, why not put your Reddit refresh token directly in there instead of relying on a cache file?
because i tried but it doesn't seems to detect it. i also tried using it outside python using the powershell and it doesn't detect it.
What makes you think that?
429 errors are unrelated to a refresh token, by the way. For those you need a custom client ID and user agent.
"file": "../data/gallery-dl_cache.sqlite3"
Relative paths are relative to your working directory, not your script or config file. Maybe that's the problem. While you are already using a config file, why not put your Reddit refresh token directly in there instead of relying on a cache file?
because i tried but it doesn't seems to detect it. i also tried using it outside python using the powershell and it doesn't detect it.
What makes you think that?
429 errors are unrelated to a refresh token, by the way. For those you need a custom client ID and user agent.
because when i try to download an album it gives me this output
[reddit][info] Requesting public access token [reddit][info] Register your own OAuth application and use its credentials to prevent this error: https://github.com/mikf/gallery-dl/blob/master/docs/configuration.rst#extractorredditclient-id--user-agent [reddit][info] Waiting until 10:40:09 for rate limit reset.
https://github.com/mikf/gallery-dl/assets/58710194/06e5d199-8c21-446e-8707-373064692733
and if you wonder if i tried putting the refresh token in the config yes i already tried. maybe you can show me an example on how it should placed correctly inside the json maybe i did somethings wrong.
{
"extractor":
{
"base-directory": "./gallery-dl/",
"reddit":
{
"other_options": "here",
"refresh-token": "<token here>"
}
}
}
{ "extractor": { "base-directory": "./gallery-dl/", "reddit": { "other_options": "here", "refresh-token": "<token here>" } } }
is it correct if this appear? [reddit][info] Refreshing private access token
Yes, that's normal.
@vraixen
I'm having the same problem as you with a nearly exact Python code. Were you able to fix the problem?
In my python code i specify a config file with the argument --config. it does seems to detect it however when i try to download a reddit album it ignore the refresh token in it. also i tried specifying the cache file and i get the same thing
this is my config file
my python code
My objective is to keep all the configurations in the project data folder so i can move it somewhere else.