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

Empty Setting in Audio and Video causing an error #219

Open
GAS85 opened this issue Sep 14, 2021 · 0 comments
Open

Empty Setting in Audio and Video causing an error #219

GAS85 opened this issue Sep 14, 2021 · 0 comments

Comments

@GAS85
Copy link
Contributor

GAS85 commented Sep 14, 2021

Steps to reproduce

  1. As mentioned in Some Settings (Proxy User, Password and Audio Format) being ignored or not sent to the youtube-dl #187 go to Admin Settings > Additional > ocDownloader
  2. Live empty Audio and Video fields:
    grafik
  3. See an error "Unable to get correct audio URL YouTube"
    grafik

Expected behaviour

Video still downloaded with default settings - no setting for audio and video:
Command to execute should looks like

sh -c /usr/local/bin/youtube-dl -i 'https://www.youtube.com/watch?v=xxxxxxxxxx' --get-url --get-filename  -4

Actual behaviour

Faulty command will be produced that breaks youtube-DL execution. -f should not be pushed without any parameter in this case (see Expected behaviour)

sh -c /usr/local/bin/youtube-dl -i 'https://www.youtube.com/watch?v=xxxxxxxxxx' --get-url --get-filename -f -4

Command line error will be produced:

/usr/local/bin/youtube-dl -i 'https://www.youtube.com/watch?v=xxxxxxxxxx' --get-url --get-filename -f -4
ERROR: requested format not available

Server configuration

Operating system: Ubuntu 20.04

Nextcloud version: 21.04

ocDownloader configuration:

Which downloader are you using: Curl

Do you use a proxy: No

Which protocols do you allow: FTP/HTTP/Youtube

GAS85 added a commit to GAS85/ocdownloader that referenced this issue Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant