Rudloff / alltube

Web GUI for youtube-dl
GNU General Public License v3.0
2.96k stars 582 forks source link

Error HTTP 500 whren trying to download a video #337

Open stemy2 opened 3 years ago

stemy2 commented 3 years ago

New issue

Your environment

Please answer these questions when reporting a new issue:

What is your operating system (Windows, Linux, OSX, etc.)? Yunohost (based on debian 10) What is your web server (Apache, IIS, etc.)? NGINX What version of AllTube are you using? 2.3.0 How did you install AllTube (with Git or with a release package)? Yunohost package What version of PHP are you using? 7.3 What version of Python are you using? 2.7.16-1 What version of youtube-dl are you using? Don't know Do you get any PHP-related errors in your webserver's logs? No What is the content of your config/config.yml file?

# Insert content here.
Path to your youtube-dl binary

youtubedl: vendor/ytdl-org/youtube-dl/youtube_dl/main.py
Path to your python binary

python: /usr/bin/python
An array of parameters to pass to youtube-dl

params:
- --no-warnings
- --ignore-errors
- --flat-playlist
- --restrict-filenames
- --no-playlist
True to enable audio conversion

convert: true
True to enable advanced conversion mode

convertAdvanced: true
List of formats available in advanced conversion mode

convertAdvancedFormats: [mp3, avi, flv, wav]
Path to your avconv or ffmpeg binary

avconv: /usr/bin/ffmpeg
avconv/ffmpeg logging level.

avconvVerbosity: error
Path to the directory that contains the phantomjs binary.

phantomjsDir: vendor/bin/
True to disable URL rewriting

uglyUrls: false
True to stream videos through server

stream: true
True to enable remux mode (merge best audio and best video)

remux: true
MP3 bitrate when converting (in kbit/s)

audioBitrate: 128
App name

appName: AllTube Download

Please provide the URL of a video that causes the issue. https://youtu.be/Vxx2euoc5zQ

With remux mode, a part of the audio track is wiped, making it shorter than the video track, so the last seconds of the video are muted.

Describe your issue

Any attempt of downloading give a HTTP 500 error ant the following message: ERROR: Vxx2euoc5zQ: YouTube said: Unable to extract video data

Rudloff commented 3 years ago

I can't reproduce with 3.0.0-beta5. This probably happens because the youtube-dl version in 2.3.0 is too old.

You can either try the 3.0.0 beta or try to update youtube-dl.

stemy2 commented 3 years ago

Ok, how can i upgrade it ? I have already the last version of alltube available on my platform.

Rudloff commented 3 years ago

I don't maintain or even use the Yunohost package, so I am not sure how it installs youtube-dl.

What you can do is install a recent youtube-dl manually then edit the youtubedl: option in your config file to point to it (or wait for Yunohost to upgrade their package).