minor changes to yt
This commit is contained in:
parent
f7e4897de8
commit
45a4320693
6
yt
6
yt
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
DATFILE="~/.config/youtube/dat"
|
DATFILE="${HOME}/.config/youtube/dat"
|
||||||
CACHEDIR="~/.config/youtube/cache"
|
CACHEDIR="${HOME}/.config/youtube/cache"
|
||||||
tmp1=$(mktemp)
|
tmp1=$(mktemp)
|
||||||
tmp2=$(mktemp)
|
tmp2=$(mktemp)
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ mkdir -p $CACHEDIR
|
||||||
|
|
||||||
sync () {
|
sync () {
|
||||||
for i in $(cat $DATFILE | tr '\n' ' '); do
|
for i in $(cat $DATFILE | tr '\n' ' '); do
|
||||||
curl -s \
|
torify curl -s \
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=$i\
|
https://www.youtube.com/feeds/videos.xml?channel_id=$i\
|
||||||
> ${CACHEDIR}/$i
|
> ${CACHEDIR}/$i
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue