Skip to content
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

I have two very important things to consult about cobalt instances: #896

Closed
lpwyz opened this issue Nov 8, 2024 · 4 comments
Closed

I have two very important things to consult about cobalt instances: #896

lpwyz opened this issue Nov 8, 2024 · 4 comments

Comments

@lpwyz
Copy link

lpwyz commented Nov 8, 2024

problem description

I have two very important things to consult about cobalt instances:

(1) When I successfully generated youtube_oauth by running the recommended 'npm run token: YouTube' and following the steps. In my case, it also has a cookie expiration time of 1 day, which is 24 hours. Does this mean that I have to regenerate new cookies every 24 hours
(2) The format of the YouTube download link obtained by Cobalt is as follows:

{
"status": "tunnel",
"url": " https://ip/tunnel?id=dOxx&exp=xx&sig=xx7S7kVVixVuFzSnOtGbxP8&sec=xxrAFJsrpIrKkXXMJi12a47Q64UKik&iv=xxYcKefbA ",
"filename": "youtube_4sPesmcW9yM_1080x1920_h264.mp4"
}

From the URL, it appears that this video was downloaded from my own server. Does that mean that every time I download a Youtbe video, I need to use my own server's broadband and consume data from my own server

your instance configuration

No response

@dumbmoron
Copy link
Member

dumbmoron commented Nov 8, 2024

hi,

(1) When I successfully generated youtube_oauth by running the recommended 'npm run token: YouTube' and following the steps. In my case, it also has a cookie expiration time of 1 day, which is 24 hours. Does this mean that I have to regenerate new cookies every 24 hours

no, cobalt automatically refreshes the token

From the URL, it appears that this video was downloaded from my own server. Does that mean that every time I download a Youtbe video, I need to use my own server's broadband and consume data from my own server

yes, since the cobalt instance also has to process it in some way (either joining the video + audio tracks, or the manifest fragments)

@lpwyz
Copy link
Author

lpwyz commented Nov 10, 2024

Hello, when I successfully ran the cobalt instance, www.xx.com, and exposed the hidden port using nginx, I found that entering www.xx.com to directly access the browser would result in an HTML message. Can I hide this HTML or modify the pages inside

@lpwyz
Copy link
Author

lpwyz commented Nov 10, 2024

Or can we change it to this way? When configuring nginx, www.xx.com: 9000 can access the API, and the URL returned by the API does not include the 9000 port number. You can also download tunnel videos

@dumbmoron
Copy link
Member

i assume this is related to #902, so i will reiterate: if you do not wish to expose cobalt on port 9000, you need to configure a reverse proxy server (such as nginx)

@dumbmoron dumbmoron closed this as not planned Won't fix, can't repro, duplicate, stale Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants