diff --git a/README.md b/README.md index e42217bd..f73f6386 100644 --- a/README.md +++ b/README.md @@ -50,17 +50,22 @@ Please read the [FAQ](FAQ.md) for more information. ## Run using docker command ```bash -mkdir -p ./{config,downloads/files,downloads/tmp} && docker run -itd --rm --user "${UID}:${UID}" --name ytptube \ +mkdir -p ./{config,downloads/{files,tmp}} && docker run -itd --rm --user "${UID}:${UID}" --name ytptube \ -e YTP_TEMP_PATH=/downloads/tmp -e YTP_DOWNLOAD_PATH=/downloads/files \ -p 8081:8081 -v ./config:/config:rw -v ./downloads:/downloads:rw \ ghcr.io/arabcoders/ytptube:latest ``` -Then you can access the WebUI at `http://localhost:8081`. +## Run using podman -> [!NOTE] -> If you are using `podman` instead of `docker`, you can use the same command, but you need to change the user to `0:0` -> it will appears to be running as root, but it will run as the user who started the container. +```bash +mkdir -p ./{config,downloads/{files,tmp}} && podman run -itd --rm --userns=keep-id --name ytptube \ +-e YTP_TEMP_PATH=/downloads/tmp -e YTP_DOWNLOAD_PATH=/downloads/files \ +-p 8081:8081 -v ./config:/config:rw -v ./downloads:/downloads:rw \ +arabcoders/ytptube:latest +``` + +Then you can access the WebUI at `http://localhost:8081`. ## Using compose file @@ -70,6 +75,8 @@ The following is an example of a `compose.yaml` file that can be used to run YTP services: ytptube: user: "${UID:-1000}:${UID:-1000}" # change this to your user id and group id. + # comment out the above line and uncomment the below line if you are using podman-compose. + #userns_mode: keep-id image: ghcr.io/arabcoders/ytptube:latest container_name: ytptube restart: unless-stopped @@ -84,18 +91,14 @@ services: ``` > [!IMPORTANT] -> Make sure to change the `user` line to match your user id and group id. +> Make sure to change the `user` line to match your user id and group id in docker setups, or use `userns_mode: keep-id` in podman setups. ```bash -mkdir -p ./{config,downloads/files,downloads/tmp} && docker compose -f compose.yaml up -d +mkdir -p ./{config,downloads/{files,tmp}} && docker compose -f compose.yaml up -d ``` Then you can access the WebUI at `http://localhost:8081`. -> [!NOTE] -> you can use podman-compose instead of docker-compose, as it supports the same syntax. However, you should change the -> user to `0:0` it will appears to be running as root, but it will run as the user who started the container. - ## Unraid For `Unraid` users You can install the `Community Applications` plugin, and search for **ytptube** it comes diff --git a/sc_short.jpg b/sc_short.jpg index 864876e1..75b13cbc 100644 Binary files a/sc_short.jpg and b/sc_short.jpg differ diff --git a/sc_simple.jpg b/sc_simple.jpg index 45c9a11b..90705ef7 100644 Binary files a/sc_simple.jpg and b/sc_simple.jpg differ diff --git a/ui/app/components/NewDownload.vue b/ui/app/components/NewDownload.vue index 94cf7154..01dd008a 100644 --- a/ui/app/components/NewDownload.vue +++ b/ui/app/components/NewDownload.vue @@ -37,6 +37,7 @@ base: 'min-h-[7.25rem] bg-elevated/60 ring-default focus-visible:ring-primary', }" @keydown="handleKeyDown" + autofocus /> diff --git a/ui/app/components/VideoPlayer.vue b/ui/app/components/VideoPlayer.vue index d30e6f0a..4ae7a26b 100644 --- a/ui/app/components/VideoPlayer.vue +++ b/ui/app/components/VideoPlayer.vue @@ -99,10 +99,10 @@