minor changes to yt
This commit is contained in:
parent
f7e4897de8
commit
45a4320693
6
yt
6
yt
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue