1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-17 04:12:44 +00:00
dotfiles/fish/functions/ytflux.fish

7 lines
265 B
Fish
Raw Normal View History

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