Compare commits
No commits in common. "ffcf3ad4b0723d929db520846000e6c9cd65a991" and "fecb5e103e5b051e63b09db31a4f79a64e67fe57" have entirely different histories.
ffcf3ad4b0
...
fecb5e103e
@ -51,9 +51,7 @@ done
|
||||
if [ "$MIME" = "" ] || [ "$MIME" = "$1" ] || [ "$MIME" = "$INPUT" ]
|
||||
then
|
||||
echo "Determining MIME type of $INPUT:"
|
||||
# Determines HTTP code, might use for something else?
|
||||
# CODE=$(curl -fLIs "$INPUT" | sed -ne 's/ [[:space:]]*$//p' | sed -ne 's|^HTTP/.\+ ||p')
|
||||
MIME=$(curl -fLIs "$INPUT" | sed -ne 's/^[cC]ontent-[tT]ype: //p' | sed -e 's/;.\+//p' | tail -n1 | tr -d '\r')
|
||||
MIME=$(curl -I -s "$INPUT" | sed -ne 's/^[cC]ontent-[tT]ype: //p' | sed -e 's/;.\+//g' | tr -d '\r')
|
||||
echo $MIME
|
||||
fi
|
||||
|
||||
|
@ -1,3 +0,0 @@
|
||||
# EXT-TYPE=replace
|
||||
|
||||
replace youtube.com or youtu.be with piped.mint.lgbt
|
Loading…
x
Reference in New Issue
Block a user