1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-12-26 06:57:58 +00:00

fish: use better instances for ytfluxfix

This commit is contained in:
Phantop 2024-07-02 13:00:50 -04:00
parent 57c21ff5d5
commit efbc3e874d

View file

@ -1,5 +1,5 @@
function ytfluxfix function ytfluxfix
set instances (curl https://redirect.invidious.io | pup noscript text{} | htmldecode | pup .instances-list a text{}) set instances (curl https://api.invidious.io/instances.json | jq -r '.[] | select(.[1].type == "https" and .[1].monitor.uptime >= 99) [0]')
for i in (eval curl (cat ~/.config/miniflux)/categories/3/feeds | jq -rc '.[] | select(.parsing_error_count!=0)' | head -n15) for i in (eval curl (cat ~/.config/miniflux)/categories/3/feeds | jq -rc '.[] | select(.parsing_error_count!=0)' | head -n15)
set url (trurl -s host=(random choice $instances) (echo $i | jq -r .feed_url)) set url (trurl -s host=(random choice $instances) (echo $i | jq -r .feed_url))
set id (echo $i | jq -r .id) set id (echo $i | jq -r .id)