marcopeocchi / yt-dlp-web-ui

A terrible web ui and RPC server for yt-dlp. Designed to be self-hosted.
GNU General Public License v3.0
818 stars 85 forks source link

How can use yt-dlp-web-ui on AlpineLinux via Prebuilt binaries #82

Closed liuyinltemp closed 1 year ago

liuyinltemp commented 1 year ago

Hello , I install yt-dlp-web-ui Prebuilt binaries on AlpineLinux,when I use cmd like 'yt-dlp-webui --out /data --driver /usr/bin/yt-dlp --port 3033' it well done , but when I try to use '/usr/local/bin/yt-dlp-webui --conf /etc/yt-dlp-webui/config.conf' , it is wrong. then config.conf is

port: 3033 downloadPath: /data downloaderPath: /usr/bin/yt-dlp queue_size: 8

so how to write the rc-service of yt-dlp-web-ui for AlpineLinux , thank you!

liuyinltemp commented 1 year ago

maybe can use it for AlpineLinux,/etc/init.d/yt-dlp-webui

!/sbin/openrc-run

depend() { need net nginx }

name='yt-dlp-webui' command="/usr/bin/yt-dlp-webui" command_args=" --out /data --driver /usr/bin/yt-dlp --port 3033" pidfile="/run/yt-dlp-webui.pid" command_background="yes"

liuyinltemp commented 1 year ago

And I found yt-dlp-webui create it session file,and put it on /session.dat, how to change its address?

marcopeocchi commented 1 year ago

hi @liuyinltemp

unfortunately I'm no expert regarding Alpine Linux 😞

liuyinltemp commented 1 year ago

hi @liuyinltemp

unfortunately I'm no expert regarding Alpine Linux 😞

I found yt-dlp-webui create it session file,and put it on /session.dat, how to change its address?

marcopeocchi commented 1 year ago

atm is by design. could be changed by passing an argument for specifying the session file location.

liuyinltemp commented 1 year ago

atm is by design. could be changed by passing an argument for specifying the session file location.

Hello, how can I specify the session file location ?

marcopeocchi commented 1 year ago

@liuyinltemp check out the new release, now with --session you can specify the session file location.

liuyinltemp commented 1 year ago

@liuyinltemp check out the new release, now with --session you can specify the session file location. Hello ,thank you very much, I try to use /usr/bin/yt-dlp-webui --out /data/Alpine --driver /usr/bin/yt-dlp --port 8088 --session /var/log/session.dat but the session.dat go to root/session.dat ?

marcopeocchi commented 1 year ago

use /usr/bin/yt-dlp-webui --out /data/Alpine --driver /usr/bin/yt-dlp --port 8088 --session /var/log it's only the session file path as you can see from the -h

liuyinltemp commented 1 year ago

I just use /usr/bin/yt-dlp-webui --out /data/Alpine --driver /usr/bin/yt-dlp --port 8088 --session /var/log and the session file in root/session.dat always. 1

liuyinltemp commented 1 year ago

Or maybe we can use config,can you give us a template for config file

marcopeocchi commented 1 year ago

use session_fille_path key in config

liuyinltemp commented 1 year ago

Maybre I find the error I use /usr/bin/yt-dlp-webui --conf /etc/yt-dlp-webui/config.yml --port 8088 ,it is right and config.yml is:

port: 8088 downloadPath: /data downloaderPath: /usr/bin/yt-dlp session_file_path: /var/log queue_size: 16

but if I use I use /usr/bin/yt-dlp-webui --conf /etc/yt-dlp-webui/config.yml is wrong ,so port must in command?

marcopeocchi commented 1 year ago

hi @liuyinltemp, I've updated the binaries in the release section. Now all flags, including --session should work.

liuyinltemp commented 1 year ago

Thank you very much,the binaries works well