-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Checking up on using cache to store Oauth refresh-token #807
Comments
I'm a newbie at using at gallery-dl, could you explain the benefits of doing this? And how I should modify my own config file to do the same? I've been getting '429 too many requests' errors in spite of having my refresh-token in the config file, so maybe this might help. |
So, what I think the new cache/OAuth token thing does is reduce the amount of maintenance needed for sites that use refresh-tokens. Previously, the refresh-token was stored in the cache file, but you also needed to manually insert the token value into the config file. So long as the cache file isn't deleted, OAuth refresh-tokens have a life of about 3 months. What this new update has done is, by directing the refresh-token value to point to the cache, you won't have to manually write it in anymore; so it's closer to it being a "set it, and forget it" type of deal. All you have to do is run As for helping your setup, my suggestion is to list your Anything else, just make sure you have a |
I have made the modifications to the refresh-token and oauth configs. I would also like to change my cache location, but it doesn't seem to be working. The file doesn't appear in the location I put in. |
biznizz, don't mean to highjack your question, but I've got the following .conf and
and
Any correction you can provide would be helpful...? |
My original cache file was originally located on According to https://github.com/mikf/gallery-dl/blob/master/docs/configuration.rst#cache-file , the cache file should generate naturally, most likely as The location of the "cache" argument should be ideally be located as it's line not within another group (like "extractor" or "output"). I've uploaded a very condensed version of my conf in txt to show how I've set it up. So while your cache might be called I've added the relevant info back into your txt file. The important bit is that, whether you use the natural cookies.txt exported from your browser, or only copy site relevant cookies onto a new cookies.txt, you have to direct the conf file to where the txt you're using is. Example, if you have the cookies.txt you want to use on your desktop (assuming you're using Windows), you'd put this value in: Edit: Forgot to double slash for proper parsing, added in. Also, addition to help Kirby. |
You know that whole saying, "Reading is fundamental"? Uhhhh-yeah, it is. I saw somewhere else here on the site the use of the double-\ in the path, but totally forgot when I was pasting in the actual path. Kept getting an error on that line and thought maybe I had a hidden character or something. FINALLY, read all the way to the end, and it was alllllmmmmmost like you were warning me, "Make sure you do this..." Me = Duh! Thanks for the correction!! ;) |
@biznizz Setting If you don't like this behavior, you can of course disable it and do the old OAuth flow by manually inserting the tokens into your config file like before. (And the default location of cache files on Windows got changed to
No mistakes there. Everything should be working as intended. |
Sorry to bother, but I'm just trying to keep top of things.
With the newest version of gallery-dl, it's possible (and now the only way?) to have oauth
refresh-token
s written directly to cache files now.So, I'm just checking in to see if I've missed anything while making changes.
In my deviantart extractor in my .conf, I have written
"refresh-token": "cache",
In my oauth section in my .conf, I have
If I've made any mistakes, please let me know!
The text was updated successfully, but these errors were encountered: