From bdd7e7855b80708b9bb0ab1fb10cbb1550813826 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Fri, 3 Jan 2025 11:59:53 -0700 Subject: [PATCH] Modify project to use Gitea URLs. --- README.md | 2 +- bashrc.sh | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 72a88fa..5bfe69a 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Hyperling's scripts for a productive Termux environment. 1. Download the repository. ```sh - git clone https://github.com/Hyperling/Termux termux + git clone https://git.hyperling.com/me/env-termux env-termux ``` 1. Dive into the directory. diff --git a/bashrc.sh b/bashrc.sh index 16d4a2d..9c822e3 100644 --- a/bashrc.sh +++ b/bashrc.sh @@ -62,7 +62,7 @@ function process-video-usage { echo -n "Bitrates default to 2000k and 192k, size is 720, passes is 1, and force is N." echo "These work well on Odysee and are fairly small as backups." echo "Examples:" - echo "- Create a small file for quick streaming." + echo "- Create a small file for quick streaming." echo " process-video youcut.mp4 20240210.mp4 1200k 128k 480" echo "- Create a larger file for something like YouTube." echo " process-video youcut.mp4 20240210_1080p.mp4 5000k 256k 1080" @@ -94,7 +94,7 @@ function process-video { process-video-usage return 1 fi - + echo "`date` - Converting '$file' to '$newfile'." if [[ -z $video ]]; then @@ -115,7 +115,7 @@ function process-video { size="720" fi size="-filter:v scale=-1:$size" - + if [[ -z $passes ]]; then passes=1 fi @@ -143,7 +143,7 @@ function process-video { return 1 fi fi - + set -x && ffmpeg -nostdin -hide_banner -loglevel quiet \ -i "$file" $size $video $audio \ @@ -153,7 +153,7 @@ function process-video { status="$?" set +x echo "`date` - Done with the final pass." - + if [[ $passes == 2 && $status == 0 ]]; then mv -v ffmpeg2pass*.log* ~/TRASH/ fi @@ -189,7 +189,8 @@ function commit { # Otherwise can just source this file unless testing setup.sh. function test-termux { sh -c "rm -rf ~/termux-deleteme ~/TRASH/termux-deleteme" 2>/dev/null - git clone https://github.com/Hyperling/Termux ~/termux-deleteme --branch=dev + git clone https://git.hyperling.com/me/env-termux \ + --branch=dev ~/termux-deleteme chmod 755 ~/termux-deleteme/*.sh ~/termux-deleteme/setup.sh }