minor changes to yt

This commit is contained in:
randomuser 2020-12-20 13:59:30 -06:00
parent f7e4897de8
commit 45a4320693
1 changed files with 3 additions and 3 deletions

6
yt
View File

@ -1,7 +1,7 @@
#!/bin/sh
DATFILE="~/.config/youtube/dat"
CACHEDIR="~/.config/youtube/cache"
DATFILE="${HOME}/.config/youtube/dat"
CACHEDIR="${HOME}/.config/youtube/cache"
tmp1=$(mktemp)
tmp2=$(mktemp)
@ -10,7 +10,7 @@ mkdir -p $CACHEDIR
sync () {
for i in $(cat $DATFILE | tr '\n' ' '); do
curl -s \
torify curl -s \
https://www.youtube.com/feeds/videos.xml?channel_id=$i\
> ${CACHEDIR}/$i
done