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

login required to download video from source #43

Open
judos opened this issue Apr 16, 2021 · 9 comments
Open

login required to download video from source #43

judos opened this issue Apr 16, 2021 · 9 comments
Assignees
Labels
enhancement New feature or request

Comments

@judos
Copy link

judos commented Apr 16, 2021

Is there an easy way to configure logins for webpages where this is required?
I am not familiar with youtube-dl/ffmpeg so far.

Thanks for your help! The Frontend is awesome btw!

@g0d-m0nky
Copy link

Is there an easy way to configure logins for webpages where this is required?
I am not familiar with youtube-dl/ffmpeg so far.

Thanks for your help! The Frontend is awesome btw!

hi, did you ever figure this out?

@nbr23 nbr23 self-assigned this Apr 19, 2021
@blackerking
Copy link

Hey there,
It would be a very bad idea to publish a plain http (unsecure) service in the web.
Most users have several services and use a https proxy for handling secure connections.
Inside such proxys (like Traefik or SWAG) you can add security features like password, OTP, etc.

On the otherside it is easy to hack a http password protection.

I don't like this idea.

@nbr23
Copy link
Owner

nbr23 commented May 17, 2021

@judos can you clarify what you are looking for here?
Is it to specify credentials for video sources ?
Or is it like @blackerking mentionned to add login/password to the youtube-dl-server interface? If it is this case, then it will not be implemented, and should be handled by your reverse proxy as @blackerking mentionned.

Thanks!

@judos
Copy link
Author

judos commented May 17, 2021

Yes I meant a way to specify credentials for video sources. Like when I tried to download a video it said "login required".
Sorry I didn't paste the logs. Gonna post them next time when I have this issue.

@judos judos changed the title login required login required to download video from source May 17, 2021
@judos
Copy link
Author

judos commented Jun 6, 2021

Found it finally again. I tried to download mp3 of this video:
https://www.youtube.com/watch?v=Nkwhj96kVyU

Log in the youtube-dl UI shows:

Error during download task:
Exception:
WARNING: unable to download video info webpage: HTTP Error 404: Not Found
ERROR: Sign in to confirm your age
This video may be inappropriate for some users.

Is there a way how I can configure it to use my account?

@nbr23
Copy link
Owner

nbr23 commented Jun 6, 2021

Hi @judos,

Thanks yeah I have something in mind to get this sorted out. I should have a fix soon.
Cheers,

@nbr23 nbr23 added the enhancement New feature or request label Aug 24, 2021
@yangchris4
Copy link

thanks for providing this great project! and it will be better if you can add the following function.

1.using youtube cookies to download some age-confirmed videos;
2.youtube-dl can automatically move the video into the specified folder after downloading it. (using --exec "mv {} /," )

best wishes!
@nbr23

@nbr23
Copy link
Owner

nbr23 commented Sep 16, 2021

@yangchris4 thanks for the suggestions!

  1. is definitely planned… daytime work got in the way, but I should have this ready soon!
  2. I'm not 100% sure (but happy to get convinced!) how this would be helpful compared to just changing the output location directly ?
ydl_options:
  output: '/youtube-dl/%(title)s [%(id)s].%(ext)s'

Cheers!

@yangchris4
Copy link

hi @nbr23 thank you for answering my question patiently.

ydl_options: output: '/youtube-dl/%(title)s [%(id)s].%(ext)s'

nice try,however sometimes the video files are either separated from audio and video, or there are many fragments like m3u8, which means that after the download is completed, it needs to be merged twice;

if it is to download the file directly to the vps local, merging local files is extremely fast; but if it is a mounted remote disk,These incomplete videos are downloaded and transmitted to the remote.

When merging, the downloaded incomplete files must be read from the remote. Pull it back from the remote and merge it for a second time,that's a big problem.

At this time, you need to download the file to the local first, and automatically move the complete video file to the specified remote folder after the merge is completed, so as to avoid the problem of slow speed or simply unable to download;

accroding to the offical documentation

–exec CMD
Execute a command on the file after downloading, similar to find’s -exec syntax. Example: –exec ‘adb push {} /sdcard/Music/ && rm {}’

For example youtube-dl -v --exec "mv {} /mnt/share/{}" https://www.youtube.com/watch?v=********

argument

mv :#command to move files
{} :#Get the file name parameter
/mnt/share:#This folder is the remote disk folder I mounted

This command works when I use it,XD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants