Git Product home page Git Product logo

Comments (15)

jabbey1 avatar jabbey1 commented on May 25, 2024

from ugdownloader.

jabbey1 avatar jabbey1 commented on May 25, 2024

To clarify, the problem is a popup asking you to accept cookies, correct? If not, possibly the uncommenting this line would help:

"profile.managed_default_content_settings.cookies": 2,

from ugdownloader.

Xentimus avatar Xentimus commented on May 25, 2024

I'm new to python so I just tried to fix it on my end, and thought that loading an extension to block cookies would be a nice idea, but I just have to add the crx manually on the folder of the program for now!

The popup is about privacy, not cookies as I thought at first, I managed to take a screenshot:

image

I will try this line too to see if it works! Thank you!;

from ugdownloader.

Xentimus avatar Xentimus commented on May 25, 2024

Yes your fix bypasses the popup so we don't need the extension anymore! Thank you.
Now I found another problem, that makes you to have to login again when trying to download a tab, as if you weren't logged in before. It's weird, but have to check it.

Edit: Found out that the login problem happens because of the argument to stop cookies... So back to square 1 for me haha

from ugdownloader.

jabbey1 avatar jabbey1 commented on May 25, 2024

Ah, that makes sense. I think changing the '2' in that line i mentioned to '1' will help. Looks like 2 disables all cookies vs. 1 which disables just third party cookies. Hopefully, changing it to one will keep first party cookies where login info is stored, but still block the popup by denying third party cookies.
Here's another possible solution, comment the line out again and add this line under it:
"profile.block_third_party_cookies": True,
I'm not sure how it would behave differently, maybe it can be used in addition to the other line. Hopefully one combo works

from ugdownloader.

jabbey1 avatar jabbey1 commented on May 25, 2024

You might want to try the latest source code. I've included the mentioned lines, but on my end it doesn't make any difference whether I include them or not so I'm wondering how they would impact you

from ugdownloader.

Xentimus avatar Xentimus commented on May 25, 2024

I will check everything! Thank you! I think that pop up is because we are in EU, where GDPR and cookies are mandatory, while probably you are in the US? I will come back to you when I check it! Thank you for your work!!

from ugdownloader.

Xentimus avatar Xentimus commented on May 25, 2024

Option 1 does not stop the popup, unfortunately.. I still keep using the extension option by adding the path to it!

from ugdownloader.

jabbey1 avatar jabbey1 commented on May 25, 2024

Yup, in the U.S. so that makes sense. Bummer it doesn't work- I'll have to mess with it more to see if I can get it to show up. I was having problems getting the extension to work in my code but I didn't work on it too long

from ugdownloader.

Xentimus avatar Xentimus commented on May 25, 2024

I made it work with this line: c_options.add_extension(str(Path.cwd()) + r'\\_UGDownloaderFiles\\extension_3_4_6_0.crx')
The line you had was checking in the temp directory of chrome or something i think!

from ugdownloader.

jabbey1 avatar jabbey1 commented on May 25, 2024

Ah I see- you can't use extensions while running chrome headless. Maybe at some point I'll add a checkbox that loads up the extension while disabling headless. Anyways, glad it's running for you!

from ugdownloader.

jabbey1 avatar jabbey1 commented on May 25, 2024

Try the latest code- added a checkbox in the GUI to load the extension

from ugdownloader.

Xentimus avatar Xentimus commented on May 25, 2024

Oh nice thank you! Yes I was trying it only without being headless, because I wanted to check where it stops! There is also a way to add Powertabs and blocked tabs if you want to do this too (but I don't know if UG will like the blocked tabs method).

from ugdownloader.

jabbey1 avatar jabbey1 commented on May 25, 2024

Yeah I saw sawyersteven had the blocked tabs in his fork. I hadn't personally run into an issue of wanting to download a blocked tab (I could just be downloading weird artists) so it wasn't really on my radar. Powertabs I might add at some point too, again I don't use them so I wasn't paying much attention to them

from ugdownloader.

Xentimus avatar Xentimus commented on May 25, 2024

Thanks for your work!

from ugdownloader.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.