mirror of
https://github.com/imputnet/cobalt.git
synced 2026-05-22 22:39:42 -05:00
Empty file downloaded from youtube by selfhosted cobalt #414
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FixFever on GitHub (Sep 3, 2024).
bug description
cobalt.tools successfully downloads videos from YouTube. But selfhosted solution downloads an empty file for any video from YouTube.
reproduction steps
docker-compose:
All quality and codec settings are similar to those in cobalt.tools.
Version similar: v.7.15-05ba1f0 (current)
Trying download any video from youtube from cobalt.tools and selfhosted app.
screenshots
@KwiatekMiki commented on GitHub (Sep 3, 2024):
Set up cookies for YouTube.
https://github.com/imputnet/cobalt/issues/687#issuecomment-2293405845
@FixFever commented on GitHub (Oct 12, 2024):
Just adding cookies didn't help. In addition to adding cookies, downloading from YouTube worked when changing the file /app/src/modules/processing/services/youtube.js:
change
info = await yt.getBasicInfo(o.id, yt.session.logged_in ? 'ANDROID' : 'IOS');to
info = await yt.getBasicInfo(o.id, 'ANDROID');I dont know why, but it works
@wukko commented on GitHub (Oct 13, 2024):
are you sure the cookie file path is correct?
@wukko commented on GitHub (Oct 13, 2024):
but yeah, i think we should make android client the only default @dumbmoron