chore: commit pre beets

This commit is contained in:
Jan-Ole Hübner 2025-06-08 15:19:51 +02:00
parent 1c5a3ba8e8
commit 40d9d75228
4 changed files with 55 additions and 59 deletions

View file

@ -58,7 +58,7 @@ cd "$mount_point/$path_on_nas"
echo "SMB share mounted successfully."
if [[ "$*" == *"tidal.com"* ]]; then
echo "TIDAL DETECTED"
tidal-dl -l $*
uvx tidal-dl -l $*
else
echo "Using qobuz-dl via uvx at: $(which uvx)"
echo "QOBUZ URL: $*"
@ -69,12 +69,12 @@ echo "Unmounting SMB share..."
sleep 1
/sbin/umount -f "$mount_point"
cd $cwd
if declare -f jelly_rescan > /dev/null; then
echo "Waiting $jelly_wait secs before triggering automatic library scan..."
sleep $jelly_wait
jelly_rescan
echo "done"
fi
#if declare -f jelly_rescan > /dev/null; then
# echo "Waiting $jelly_wait secs before triggering automatic library scan..."
# sleep $jelly_wait
# jelly_rescan
# echo "done"
#fi
}
d () {
local url="${1:-$(pbpaste)}"

View file

@ -55,6 +55,7 @@ insta () {
user_list=("${insta_default_users[@]}")
fi
#local cmd=(uvx --with browser_cookie3 instaloader -b Firefox -B '/Users/janolehuebner/Library/Application Support/zen/Profiles/frbi8zqc.insta/cookies.sqlite' "${user_list[@]}" --fast-update --abort-on=302,400,401,429)
local cmd=(uvx --with browser_cookie3 instaloader -b Safari "${user_list[@]}" --fast-update --abort-on=302,400,401,429)
if $stories_only; then
cmd+=(--stories --no-profile-pic --no-posts)

View file

@ -2,7 +2,5 @@ jelly_rescan(){
JELLYFIN_URL="http://$NAS_IP:8096"
API_KEY="$(pass jelly)"
LIBRARY_ID="8a05b0252259a1dbd62df97522638439"
curl -X POST -H "X-Emby-Token: $API_KEY" \
"$JELLYFIN_URL/Library/VirtualFolders/$LIBRARY_ID/Refresh"
curl -X POST -H "X-Emby-Token: $API_KEY" "$JELLYFIN_URL/Items/$LIBRARY_ID/Refresh?Recursive=true"
}

View file

@ -5,8 +5,5 @@ alias nano="nvim"
alias tg="terragrunt"
alias tf="tofu"
alias terraform="tofu"
alias pip="pip3"
alias python="python3"
alias cookies="open $HOME/Library/Containers/com.apple.Safari/Data/Library/Cookies/"
alias dotfiles="git --work-tree=$HOME --git-dir=$HOME/.dotgit "
alias instaedit="nvim ~/.environment.d/insta.env"
alias instaloader="uvx --with browser_cookie3 instaloader"