Resonite-Issues icon indicating copy to clipboard operation
Resonite-Issues copied to clipboard

Add the abilitytouse cookies.txt as an argument for YouTube DL for any Firefox/chromium Based browser

Open epicEaston197 opened this issue 7 months ago • 16 comments

Is your feature request related to a problem? Please describe.

While Firefox and chromium are options they're open source meaning that they're open to forks Resonite cannot possibly support all these forks so it'd be nice if we could have cookies.txt as an argument For You Tube DL

Describe the solution you'd like

I want youtube DL to use cookies.Txt when it's in the runtime data folder

Describe alternatives you've considered

None

Additional Context

Youtube recently completely broke Youtube videos for me as it requires a login to view video content Image

Requesters

@epicEaston197

epicEaston197 avatar May 23 '25 21:05 epicEaston197

This should already be supported?

Under Settings -> Networking -> Use Cookies From Browser

Does that not work for you?

Frooxius avatar May 23 '25 21:05 Frooxius

This should already be supported?

Under Settings -> Networking -> Use Cookies From Browser

Does that not work for you?

I use LibreWolf which is not a supported option

epicEaston197 avatar May 23 '25 21:05 epicEaston197

To explain, if you're using a browser that isn't supported by either the enum to select the browser or the yt-dlp --use-cookies-from-browser, it would be great if you could use exported browser cookies to watch videos fetched from yt-dlp.

Exported browser cookies from most browsers are exported in the same format. This would make it so you wouldn't have to add more browsers than the sane ones to the list, and allow people who use unsupported browsers to use the --cookie FILE flag in yt-dlp to achieve the same result

Lexevolution avatar May 23 '25 21:05 Lexevolution

They want to specifically use the "--cookies" flag that lets you provide a Netscape Cookie file. The --cookies-from-browser flag only searches the profile locations of the standard official versions of each browser.

Trying to search %appdata%\mozilla\firefox doesn't do much when your profile is actually in %appdata%\waterfox\profiles\

ko-tengu avatar May 23 '25 21:05 ko-tengu

example from me: i use marble, a fork of firefox, it just adds native titlebar support (i like my windows aero effect :3)

Redd56 avatar May 23 '25 21:05 Redd56

Oh, so this would essentially be providing a path to the file instead? That can be added then, thanks!

Frooxius avatar May 23 '25 21:05 Frooxius

For the "Netscape Cookie file" is this the only format supported for that option? Do most browsers use that file type?

ProbablePrime avatar May 23 '25 21:05 ProbablePrime

At least for Firefox it exports Depending on the website www.youtube.com_cookies.txt I don't know what followed for him at this is cause it appears to just be a Text file

epicEaston197 avatar May 23 '25 21:05 epicEaston197

For the "Netscape Cookie file" is this the only format supported for that option? Do most browsers use that file type?

It is the format that ytdlp uses, and it's standard; but it does require a specific export format.

https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp

ko-tengu avatar May 23 '25 21:05 ko-tengu

Looks like you can also tell it where "Chrome" is, so that might be another option for a custom path.

In case you install Chrome using Flatpak, the config is located in ~/.var/app/com.google.Chrome. To pass the cookies from this location use --cookies-from-browser chrome:~/.var/app/com.google.Chrome/

ProbablePrime avatar May 23 '25 22:05 ProbablePrime

Looks like you can also tell it where "Chrome" is, so that might be another option for a custom path.

I would like to be able to just set an arbitrary path for example there would be a text field or something that I could just put this into C:\programs\Steam\steamapps\common\Resonite\RuntimeData\www.youtube.com_cookies.txt

epicEaston197 avatar May 23 '25 22:05 epicEaston197

Looks like you can also tell it where "Chrome" is, so that might be another option for a custom path.

Not sure if this would work with a couple of use cases:

  • Privacy focused browsers which periodically delete cookies. Exporting them instead of providing custom browser location would be the only option in this case
  • Using a more custom browser, such as Ladybird, which uses a custom browser engine, would not work with any of the cookies from browser option, and would need to be exported. (While my specific example doesn't currently support cookie export, there could be one out there (lynx maybe?) that allows cookie export, but not compatible with the browser option)

Lexevolution avatar May 23 '25 22:05 Lexevolution

I would like to be able to just set an arbitrary path.

I understand, but:

Based on my reading, the cookie file can sometimes need to manually generated and updated and synced etc. So if the other one can fetch it automaticaly from browsers when it knows where they are, that might be a more automatic thing.

ProbablePrime avatar May 23 '25 22:05 ProbablePrime

Yeah, supporting both would also be useful for handling portable installs or proton/linux support since those would be normal browsers but in an unusual location.

ko-tengu avatar May 23 '25 22:05 ko-tengu

So apparently this isn't a blanket ban youtube is apparently flagging users IPs who use youtubeDL

epicEaston197 avatar May 23 '25 22:05 epicEaston197

Wait I'm not getting blocked anymore? Image Maybe I hit like some form of "limit" And I can only load a certain amount of videos before it thinks I'm a bot downloading videos? So if you're in a session with people importing youtube videos a lot you might hit this "limit" and not be able to load youtube videos anymore Until this arbitrary time expires then you'll be able to watch more youtube videos

This is just my guess

epicEaston197 avatar May 23 '25 22:05 epicEaston197