1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2025-12-07 12:43:32 +00:00

fish: use curl-impersonate instead of qtcurl for shub

This commit is contained in:
Phantop 2025-10-23 16:58:33 -04:00
parent db100df4df
commit e957e2bf86

View file

@ -1,7 +1,7 @@
#!/usr/bin/fish
set url $argv[1]
set base (qtcurl $url)
set base (curli -b toc_show=999 $url)
set author (echo $base | pup .auth_name_fic text{})
set chaps (echo $base | pup .toc_a attr{href})
@ -13,7 +13,7 @@ mkdir -- "$dir"
for i in $chaps
while true
set page (qtcurl $i)
set page (curli $i)
if test -z "$page"
echo "Invalid url: $i"
exit