I also forget to add files
This commit is contained in:
parent
88e0992d38
commit
a8f3a2d5e1
15
md.sh
Executable file
15
md.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
function generate_link { echo https://mangadex.org/title/$1/`tr '[:upper:] ' '[:lower:]-' <<< "${*:2}" | tr -cd '[:lower:]-'`; }
|
||||
|
||||
function search { curl -s "https://api.mangadex.org/manga?contentRating[]=safe&contentRating[]=suggestive&contentRating[]=erotica&contentRating[]=pornographic&title=$(sed 's/ /+/g' <<< $*)" | jq ".data | .[] | .id,.attributes.title.en?,.attributes.description.en?,\"\""; }
|
||||
|
||||
function information { curl -s "https://api.mangadex.org/manga/$1" | jq ".data | .id,.attributes.title.en?,.attributes.description.en?,\"\""; }
|
||||
|
||||
function chapter_information { inf=$(curl -s "https://api.mangadex.org/chapter/$1"); jq '.data.attributes | .volume+" "+.chapter' <<< "$inf"; mdi $(jq -r '.data.relationships[] | select (.type=="manga").id' <<< "$inf"); }
|
||||
|
||||
function download { dler.py $@; }
|
||||
|
||||
function update_from_v3_to_v5 { curl -si https://mangadex.org/title/$1 | grep -i location; }
|
||||
|
||||
function login { INSTANCE=api.mangadex.org; TOKE=`curl -s https://$INSTANCE/auth/login --json '{"username":"'$USERNAME'","password":"'$PASSWORD'"}' | jq -r .token.session`; }
|
||||
|
||||
$@
|
Loading…
Reference in New Issue
Block a user