-
Notifications
You must be signed in to change notification settings - Fork 179
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
Add support of cookies arguments commands of yt-dlp "--cookies-from-browser firefox" to play restircted videos of twitter #756
Comments
Hello, could you try this: diff --git a/src/qmplay2/YouTubeDL.cpp b/src/qmplay2/YouTubeDL.cpp
index fd4a5d24..c64eb6d1 100644
--- a/src/qmplay2/YouTubeDL.cpp
+++ b/src/qmplay2/YouTubeDL.cpp
@@ -63,6 +63,7 @@ QStringList YouTubeDL::getCommonArgs()
QStringList commonArgs {
"--no-check-certificate", // Ignore SSL errors
"--user-agent", Functions::getUserAgent(),
+ "--cookies-from-browser", "firefox",
};
const char *httpProxy = getenv("http_proxy"); ? |
Sorry I didn't understand well, i.e. I click on ctrl+u and I put all that? before doing that, I try with a link of a normal youtube video because I suceeded to watch bein sport live channel during the olympics games with QMPlay2 but I didn't try with a normal youtube video and it works !!! Our so bloved QMPlay2 can playback youtube video in my windows 7 SP1 32 bits without the need of comand cookies-from-browser firefox chrome !!!! I just proposed this idea of being able to add this command cookies-from-browser firefox in case there would be a future playback problem in the future, in addition I recently read a thread that advises against adding this command cookies-from-browser firefox chrome because youtube will block the video so cookies-from-browser firefox seems to have the opposite effect !! a user said this command cookies-from-browser firefox can work provided that we are not connected and if we are logged out of our youtube account...... but we still hope, in case youtube complicates things in the future, to be able to easily add custom command please, maybe that will solve some possible problems, for the moment I close my issue of the problem of youtube playback in windows 7 32 bits, and it's up to you to decide Mr Zaps166 if this issue of adding custom command argument should be closed or left open..... from what I've read, youtube seems to censor only ip addresses that download or use youtube too much.....a trick I found is it seems when we use aria2c and yt-dlp together, and I even added the argument cookies-from-browser firefox, we can download youtube videos and bypass possible blocking, I have used this beautiful downloader which allows us to add custom argument command and allows to add aria2c extension and combine it with yt-dlp to prove this theory : https://github.com/mhogomchungu/media-downloader Thanks a lot ! |
Hah, I was just going to suggest this because it actually works (provided you're logged in to YT in firefox I presume):
(very curious to have an age-limit on a video about guitar picking...) |
On Tuesday October 29 2024 12:04:21 trimechee wrote:
Try with these tools :
Is the `--cookies-from-browser` option not enough?
QMPlay2 uses its own yt-dlp copy so installing a plugin is probably going to be (much) more work than just adding an argument to its invocation!
|
FWIW, if the `--cookies-from-browser` option suffices there could be an additional simple choice in the Extensions/YouTube settings, e.g. a drop-down list with the known-supported browsers plus "none".
|
Yes it seems good idea 👍 💯 |
Hello, yesterday i tried to play twitter videos because videos on twitter are very heavy and lag freeze even lowest quality in my old laptop, i tried with Qmplay2, smplayer, potplayer with 3DYD Youtube Source plugin, mpc hc, mpc be, qmplay2...all these players fails to pay twitter videos and have message that i should add cookies commands like --cookies-from-browser firefox....
i am not expert, i tired to add --cookies-from-browser firefox to the yt-dlp engines of these media players but no video playback :(
my idea please is that media player allows to support or add cookies yt-dlp commands arguments --cookies-from-browser firefox --cookies-from-browser chrome --cookies-from-browser r3dfox ........to video stream detected so we can avoid possible bugs and we could playback restirctid videos of twitter in vlc or potplayer or smplayer...thank you very much!
The text was updated successfully, but these errors were encountered: