-
Notifications
You must be signed in to change notification settings - Fork 63
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
Page download failing for Youtube when using browser cookie #24
Comments
Is it possible for me to reproduce the issue? |
I guess not, unless you're willing to use my cookie file, then I could dm you my cookie file. After looking into it more, I found that my script file may also be contributing to the issue. I may be grasping at straws and since you haven't reproduced the issue you probably won't know, but my script basically ensures the image quality is at the highest plus with cookies there would be more images and content populating the page. As such, for a huge webpage with lots of images, I'm guessing this could cause an issue since removing either my cookies or script in the command(so either less data being saved or a very large image is perhaps causing issue) won't result in the error? edit: Manually running each part of my script on chrome and then using the single file extension seems to work though so I'm at a lost edit2: Sorry for being a pain but setting images to a smaller size of max height of 720 fixed the issue so I am guessing large image(s) is causing issue with base64 string being too large? Script in question(not great with javascript, but it's been doing it's job fine on other smaller pages):
|
single-file-cli is failing when using it on a Youtube Community page with the below error and only failing strictly when the browser height is too large(>~50000 pixels) and browser cookie is used from an account that has membership of the channel.
Command:
single-file --browser-cookies-file="I:\archive scripts\batch scripts\singlefile_script\cookie.txt" --browser-executable-path="C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --browser-script="I:\archive scripts\batch scripts\singlefile_script\replace_image_url_script.js" --browser-load-max-time=120000 --browser-wait-delay=20000 --browser-height=200000 --crawl-replace-urls=true "https://www.youtube.com/channel/UCqm3BQLlJfvkTsX_hvm0UmA/community"
Error:
The text was updated successfully, but these errors were encountered: