Rudloff / alltube

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

Need help with video file name #355

Closed mikagrand closed 3 years ago

mikagrand 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.)?

What is your web server (Apache, IIS, etc.)?

What version of AllTube are you using?

How did you install AllTube (with Git or with a release package)?

What version of PHP are you using?

What version of Python are you using?

What version of youtube-dl are you using?

Do you get any PHP-related errors in your webserver's logs?

What is the content of your config/config.yml file?

# Insert content here.

Please provide the URL of a video that causes the issue.

Hello, i want to change videos and audio downloadable file, can you help me please. I use option "True to stream videos through server" to TRUE.

Thank

Rudloff commented 3 years ago

Hello, Please don't ignore the issue template.

What are you trying to achieve exactly? The filename can be customize with the --output option passed to youtube-dl. For example, you can add something like this to your config.yml file:

params:
  - --no-warnings
  - --ignore-errors
  - --flat-playlist
  - --restrict-filenames
  - --no-playlist
  - '--output=%(id)s.%(ext)s'

The format is explained here.

mikagrand commented 3 years ago

oh ok, i just want to replace "_" by space " " in file name.

And last, please how to add external script like google analytics, because i get src security error.

Thank

Rudloff commented 3 years ago

And last, please how to add external script like google analytics, because i get src security error.

The CSP is configured in CspMiddleware::applyHeader() so you would need to customize the directives here, but I won't provide support for doing that.