1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-16 20:02:47 +00:00
dotfiles/fish/functions/ytflux.fish
2023-11-02 17:58:42 -04:00

7 lines
251 B
Fish

function ytflux
set cat 3
set entries (eval curl (cat ~/.miniflux)/entries?status=unread\&category_id=$cat | jq -r .entries[].url)
eval curl -X PUT (cat ~/.miniflux)/categories/$cat/mark-all-as-read
parallel -u yt-dlp ::: $entries
end