Added projects, updated names

This commit is contained in:
2021-04-09 02:15:18 -05:00
parent 1180e3171f
commit 1f23cb73d1
101 changed files with 513 additions and 0 deletions

View File

@@ -0,0 +1,104 @@
#!/bin/bash
headOut()
{
touch ../tmp/tmpalphaListing
letterIn=$(echo "$QUERY_STRING" | sed -n 's/^.*letter=\([^&]*\).*$/\1/p')
wget http://www.crunchyroll.com/videos/anime/alpha?group=$letterIn -O ../tmp/tmpalphaListing
sed 1,650d ../tmp/tmpalphaListing > ../tmp/alphaListing
IFS=$'\n'
bgs=($(ls -L ../backgrounds/))
numdirs=${#bgs[@]}
index=$(( (( RANDOM % $numdirs ) - 2) + 1 ))
if [ -f ./000.jpg ]; then
bg="<div id="bg"><img src="./000.jpg"/></div>";
else
bg="<div id="bg"><img src="\"../backgrounds/${bgs[index]}"\"/></div>";
fi
echo '<!doctype html>
<html lang="en">
<head>
<title>MiniRoll App</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="../themes/bodyCss.css" type="text/css">
<link rel="stylesheet" href="../themes/menuCss.css" type="text/css">
</head>
<body>
'${bg}'
<center>
<ul><a href="../index.html"><li>Home</li></a>
<li>
Layout
<ul>
<a href="../cgi-bin/listOnLeftTheme.cgi"><li>List On The Left</li></a>
<a href="../cgi-bin/gridTheme.cgi"><li>Grid</li></a>
<a href="../cgi-bin/centerList.cgi"><li>List Centered</li></a>
</ul>
</li>
<li>About</li>
<a href="../cgi-bin/quit.cgi"><li>Quit</li></a>
<a href="#" onclick="location.reload(true); return false;"><li>Refresh</li></a>
</ul>
</center>
<br>
' > ../tmp/alist.html
main
}
main()
{
sed -n 's/.*title="\([^"]*\).*/\1/p' ../tmp/alphaListing > ../tmp/preaTitles
head -n -6 ../tmp/preaTitles > ../tmp/aTitles
sed -n 's/.*src="\([^"]*\).*/\1/p' ../tmp/alphaListing > ../tmp/preaImgList
sed -i '/.js/d' ../tmp/preaImgList
sed -i '/.gif/d' ../tmp/preaImgList
cat ../tmp/preaImgList > ../tmp/aImgList
sed -n 's/.*group_id="\([^"]*\).*/\1/p' ../tmp/alphaListing > ../tmp/tmpaGrpIds
head -n -7 ../tmp/tmpaGrpIds > ../tmp/aGrpIds
d=$(cat ../tmp/aGrpIds | wc -l) >> /dev/null ;
i="1"
while [ $i -le $d ]; do
title=$(sed -n "${i}p" ../tmp/aTitles);
imgLnk=$(sed -n "${i}p" ../tmp/aImgList);
groupID=$(sed -n "${i}p" ../tmp/aGrpIds);
vdoLnk="http://www.crunchyroll.com/swf/StandardVideoPlayer.swf?config_url=http%3A%2F%2Fwww.crunchyroll.com%2Fxml%2F%3Freq%3DRpcApiVideoPlayer_GetStandardConfig%26media_id%3D"$groupID""
echo '
<div class="lnksNdirs">
<a target="frame" href="'${vdoLnk}'" style="color:#00E8FF;">
<img src="'${imgLnk}'" /> <br>
'${title}'</a>
</div>' >> ../tmp/alist.html ;
i=$[$i++1];
done
endOut
}
endOut()
{
echo '
<iframe id="frame" name="frame" frameborder="0" class="iframer"></iframe>
</body>
</html>' >> ../tmp/alist.html
redirect
}
redirect()
{
echo "Content-type: text/html"
echo ""
echo "<html>"
echo "<head>"
echo "<title>Loading...</title>"
echo "<meta http-equiv='refresh' content='1;URL=../tmp/alist.html'>"
echo "</head>"
echo "<body style='background-color:#000000'>"
echo "<center>
<font color='#FFFFFF'>You will be redirected in a few seconds...</font>
<img style='width:30em;height:30em;margin-left:50%;margin-top:15%;' src='../icons/loading.gif'></img>"
echo "</center>"
echo "</body>"
echo "</html>"
}
headOut

View File

@@ -0,0 +1,124 @@
#!/bin/bash
headOut()
{
animeIn=$(echo "$QUERY_STRING" | sed -n 's/^.*anime=\([^&]*\).*$/\1/p')
touch ../tmp/tmpShow ../tmp/animeShow ../tmp/tmpVdoPg
wget http://www.theanimenetwork.com/Watch-Anime/"${animeIn}" -O ../tmp/tmpShow
sed 1,195d ../tmp/tmpShow > ../tmp/animeShow
IFS=$'\n'
bgs=($(ls -L ../backgrounds/))
numdirs=${#bgs[@]}
index=$(( (( RANDOM % $numdirs ) - 2) + 1 ))
if [ -f ./000.jpg ]; then
bg="<div id="bg"><img src="./000.jpg"/></div>";
else
bg="<div id="bg"><img src="\"../backgrounds/${bgs[index]}"\"/></div>";
fi
echo '<!doctype html>
<html lang="en">
<head>
<title>MiniRoll App</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="../themes/bodyCss.css" type="text/css">
<link rel="stylesheet" href="../themes/menuCss.css" type="text/css">
</head>
<body>
'${bg}'
<center>
<ul><a href="../index.html"><li>Home</li></a>
<li>
Layout
<ul>
<a href="../cgi-bin/listOnLeftTheme.cgi"><li>List On The Left</li></a>
<a href="../cgi-bin/gridTheme.cgi"><li>Grid</li></a>
<a href="../cgi-bin/centerList.cgi"><li>List Centered</li></a>
</ul>
</li>
<li>About</li>
<a href="#" onclick="location.reload(true); return false;"><li>Refresh</li></a>
<a href="../cgi-bin/quit.cgi"><li>Quit</li></a>
</ul>
</center>
<br>
' > ../tmp/list.html
main
}
main()
{
sed -n 's/.*title="\([^"]*\).*/\1/p' ../tmp/animeShow > ../tmp/tmptitles
sed -i '/Spoilers!!!/d' ../tmp/tmptitles
sed -i '/You must be a premium subscriber to watch this video./d' ../tmp/tmptitles
sed -i '/The Add To Queue feature is available to premium subscribers./d' ../tmp/tmptitles
sed -i '/^\s*$/d' ../tmp/tmptitles
awk 'NR%2==1' ../tmp/tmptitles > ../tmp/titles
sed -n 's/.*src="\([^"]*\).*/\1/p' ../tmp/animeShow > ../tmp/imgList
awk 'NR%2==1' ../tmp/imgList > ../tmp/tmpImgList
head -n -3 ../tmp/tmpImgList > ../tmp/imgList
sed -n 's/.*href="\([^"]*\).*/\1/p' ../tmp/animeShow > ../tmp/mediaIds
sed -i '/\/xx/d' ../tmp/mediaIds
awk 'NR%2==1' ../tmp/mediaIds > ../tmp/tmpIds
head -n -3 ../tmp/tmpIds > ../tmp/mediaIds
d=$(cat ../tmp/mediaIds | wc -l) >> /dev/null ;
i="1"
# World-God-Only-Knows-The-Season-1
# Log-Horizon
echo "" > ../tmp/tmpIds
echo "" > ../tmp/tmpIds2
while [ $i -le $d ]; do
meiaID=$(sed -n "${i}p" ../tmp/mediaIds);
wget http://www.theanimenetwork.com"${meiaID}" -O ../tmp/tmpVdoPg
sed -n 146,152p ../tmp/tmpVdoPg > ../tmp/tmpIds
sed -n 's/.*src="\([^"]*\).*/\1/p' ../tmp/tmpIds >> ../tmp/tmpIds2
i=$[$i++1];
done
sed -i '/^\s*$/d' ../tmp/tmpIds2
cat ../tmp/tmpIds2 > ../tmp/mediaIds
i="1"
while [ $i -le $d ]; do
title=$(sed -n "${i}p" ../tmp/titles);
imgLnk=$(sed -n "${i}p" ../tmp/imgList)
meiaID=$(sed -n "${i}p" ../tmp/mediaIds);
vdoLnk=""$meiaID""
echo '
<div class="lnksNdirs">
<a target="frame" href="'${vdoLnk}'" style="color:#00E8FF;">
<img src="'${imgLnk}'" /> <br>
'${title}'</a>
</div>' >> ../tmp/list.html ;
i=$[$i++1];
done
endOut
}
endOut()
{
echo '
<iframe id="frame" name="frame" frameborder="0" class="iframer"></iframe>
<iframe sandbox id="invisFrame" name="invisFrame" frameborder="0"></iframe>
</body>
</html>' >> ../tmp/list.html
redirect
}
redirect()
{
echo "Content-type: text/html"
echo ""
echo "<html>"
echo "<head>"
echo "<title>Loading...</title>"
echo "<meta http-equiv='refresh' content='1;URL=../tmp/list.html'>"
echo "</head>"
echo "<body style='background-color:#000000'>"
echo "<center><font color='#FFFFFF'>You will be redirected in a few seconds...</font></center>"
echo "<img style='width:30em;height:30em;margin-left:50%;margin-top:15%;' src='../icons/loading.gif'></img>"
echo "</body>"
echo "</html>"
}
headOut

View File

@@ -0,0 +1,9 @@
#!/bin/bash
. lastSearch.cgi
main()
{
cat ../themes/"List Centered.css" > ../themes/bodyCss.css
check
}
main

View File

@@ -0,0 +1,122 @@
#!/bin/bash
headOut()
{
animeIn=$(echo "$QUERY_STRING" | sed -n 's/^.*anime=\([^&]*\).*$/\1/p')
touch ../tmp/tmpShow ../tmp/animeShow
wget http://www.crunchyroll.com/"${animeIn}" -O ../tmp/tmpShow
sed 1,335d ../tmp/tmpShow > ../tmp/animeShow
IFS=$'\n'
bgs=($(ls -L ../backgrounds/))
numdirs=${#bgs[@]}
index=$(( (( RANDOM % $numdirs ) - 2) + 1 ))
if [ -f ./000.jpg ]; then
bg="<div id="bg"><img src="./000.jpg"/></div>";
else
bg="<div id="bg"><img src="\"../backgrounds/${bgs[index]}"\"/></div>";
fi
echo '<!doctype html>
<html lang="en">
<head>
<title>MiniRoll App</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="../themes/bodyCss.css" type="text/css">
<link rel="stylesheet" href="../themes/menuCss.css" type="text/css">
</head>
<body>
'${bg}'
<center>
<ul><a href="../index.html"><li>Home</li></a>
<li>
Layout
<ul>
<a href="../cgi-bin/listOnLeftTheme.cgi"><li>List On The Left</li></a>
<a href="../cgi-bin/gridTheme.cgi"><li>Grid</li></a>
<a href="../cgi-bin/centerList.cgi"><li>List Centered</li></a>
</ul>
</li>
<li>About</li>
<a href="#" onclick="location.reload(true); return false;"><li>Refresh</li></a>
<a href="../cgi-bin/quit.cgi"><li>Quit</li></a>
</ul>
</center>
<br>
' > ../tmp/list.html
main
}
main()
{
rm ../tmp/titles ../tmp/imgList
sed -n 's/.*title="\([^"]*\).*/\1/p' ../tmp/animeShow > ../tmp/tmptitles
sed -n 's/.*src="\([^"]*\).*/\1/p' ../tmp/animeShow > ../tmp/tmpimgList
sed -n 's/.*data-thumbnailUrl="\([^"]*\).*/\1/p' ../tmp/animeShow >> ../tmp/tmpimgList
sed -n 's/.*media_id="\([^"]*\).*/\1/p' ../tmp/animeShow > ../tmp/mediaIds
d=$(cat ../tmp/mediaIds | wc -l) >> /dev/null ;
junkCount="1"
i="1"
while [ $i -le $d ]; do
title=$(sed -n "${i}p" ../tmp/tmptitles);
if [[ "${title}" == *"Episode"* ]]; then
echo "${title}" >> ../tmp/titles
else
junkCount=$[$junkCount++1];
fi
i=$[$i++1];
done
i="1"
while [ $i -le $d ]; do
image=$(sed -n "${i}p" ../tmp/tmpimgList);
if [[ "${image}" == *".jpg"* && \
"${image}" != *"_full.jpg"* && \
"${image}" != *"_thumb.jpg"* ]]; then
echo "${image}" >> ../tmp/imgList
else
junkCount=$[$junkCount++1];
fi
i=$[$i++1];
done
i="1"
while [ $i -le $d ]; do
title=$(sed -n "${i}p" ../tmp/titles);
imgLnk=$(sed -n "${i}p" ../tmp/imgList)
meiaID=$(sed -n "${i}p" ../tmp/mediaIds);
vdoLnk="http://static.ak.crunchyroll.com/versioned_assets/StandardVideoPlayer.cc7e8515.swf?config_url=http%3A%2F%2Fwww.crunchyroll.com%2Fxml%2F%3Freq%3DRpcApiVideoPlayer_GetStandardConfig%26media_id%3D"$meiaID"video_format%3D106%26video_quality%3D61"
echo '
<div class="lnksNdirs">
<a target="frame" href="'${vdoLnk}'" style="color:#00E8FF;">
<img src="'${imgLnk}'" /> <br>
'${title}'</a>
</div>' >> ../tmp/list.html ;
i=$[$i++1];
done
endOut
}
endOut()
{
echo '
<iframe id="frame" name="frame" frameborder="0" class="iframer"></iframe>
<iframe id="invisFrame" name="invisFrame" frameborder="0"></iframe>
</body>
</html>' >> ../tmp/list.html
redirect
}
redirect()
{
echo "Content-type: text/html"
echo ""
echo "<html>"
echo "<head>"
echo "<title>Loading...</title>"
echo "<meta http-equiv='refresh' content='1;URL=../tmp/list.html'>"
echo "</head>"
echo "<body style='background-color:#000000'>"
echo "<center><font color='#FFFFFF'>You will be redirected in a few seconds...</font></center>"
echo "<img style='width:30em;height:30em;margin-left:50%;margin-top:15%;' src='../icons/loading.gif'></img>"
echo "</body>"
echo "</html>"
}
headOut

View File

@@ -0,0 +1,129 @@
#!/bin/bash
headOut()
{
letterIn=$(echo "$QUERY_STRING" | sed -n 's/^.*letter=\([^&]*\).*$/\1/p')
touch ../tmp/alphaListing
wget http://www.crunchyroll.com/videos/anime/alpha?group=$letterIn -O ../tmp/alphaListing
IFS=$'\n'
bgs=($(ls -L ../backgrounds/))
numdirs=${#bgs[@]}
index=$(( (( RANDOM % $numdirs ) - 2) + 1 ))
if [ -f ./000.jpg ]; then
bg="<div id="bg"><img src="./000.jpg"/></div>";
else
bg="<div id="bg"><img src="\"../backgrounds/${bgs[index]}"\"/></div>";
fi
echo '<!doctype html>
<html lang="en">
<head>
<title>MiniRoll App</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="../themes/bodyCss.css" type="text/css">
<link rel="stylesheet" href="../themes/menuCss.css" type="text/css">
</head>
<body>
'${bg}'
<center>
<ul><a href="../index.html"><li>Home</li></a>
<li>
Layout
<ul>
<a href="../cgi-bin/listOnLeftTheme.cgi"><li>List On The Left</li></a>
<a href="../cgi-bin/gridTheme.cgi"><li>Grid</li></a>
<a href="../cgi-bin/centerList.cgi"><li>List Centered</li></a>
</ul>
</li>
<li>About</li>
<a href="../cgi-bin/quit.cgi"><li>Quit</li></a>
<a href="#" onclick="location.reload(true); return false;"><li>Refresh</li></a>
</ul>
</center>
<br>
' > ../tmp/alist.html
main
}
main()
{
if [[ -f ../tmp/preaTitles.txt && -f ../tmp/preaImgList.txt && -f ../tmp/aTitles.txt && -f ../tmp/aImgList.txt && -f ../tmp/aMediaIds.txt ]]
then
touch ../tmp/preaTitles.txt ;
touch ../tmp/preaImgList.txt ;
touch ../tmp/aTitles.txt ;
touch ../tmp/aImgList.txt ;
touch ../tmp/aMediaIds.txt ;
sed -n 's/.*title="\([^"]*\).*/\1/p' ../tmp/alphaListing > ../tmp/preaTitles.txt
sed -n 's/.*src="\([^"]*\).*/\1/p' ../tmp/alphaListing > ../tmp/preaImgList.txt
sed -n 's/.*group_id="\([^"]*\).*/\1/p' ../tmp/alphaListing > ../tmp/aMediaIds.txt
else
sed -n 's/.*title="\([^"]*\).*/\1/p' ../tmp/alphaListing > ../tmp/preaTitles.txt
sed -n 's/.*src="\([^"]*\).*/\1/p' ../tmp/alphaListing > ../tmp/preaImgList.txt
sed -n 's/.*group_id="\([^"]*\).*/\1/p' ../tmp/alphaListing > ../tmp/aGrpIds.txt
fi
d=$(cat ../tmp/aGrpIds.txt | wc -l) >> /dev/null ;
i="1"
while [ $i -le $d ]; do
title=$(sed -n "${i}p" ../tmp/preaTitles.txt);
imgLnk=$(sed -n "${i}p" ../tmp/preaImgList.txt);
if [[ "$imgLnk" == *".jpg"* ]]
then
echo "$imgLnk" >> ../tmp/aImgList.txt
else
echo "Not an img..."
fi
if [[ "$title" == *"Spring"* || "$title" == *"Summer"* \
|| "$title" == *"Fall"* || "$title" == *"Winter"* ]]
then
echo "Not a title..."
else
echo "$title" >> ../tmp/aTitles.txt ;
fi
i=$[$i++1];
done
i="1";
while [ $i -le $d ]; do
title=$(sed -n "${i}p" ../tmp/aTitles.txt);
imgLnk=$(sed -n "${i}p" ../tmp/aImgList.txt);
groupID=$(sed -n "${i}p" ../tmp/aGrpIds.txt);
vdoLnk="http://www.crunchyroll.com/swf/StandardVideoPlayer.swf?config_url=http%3A%2F%2Fwww.crunchyroll.com%2Fxml%2F%3Freq%3DRpcApiVideoPlayer_GetStandardConfig%26media_id%3D"$groupID""
echo '
<div class="lnksNdirs">
<a target="frame" href="'${vdoLnk}'" style="color:#00E8FF;">
<img src="'${imgLnk}'" /> <br>
'${title}'</a>
</div>' >> ../tmp/alist.html ;
i=$[$i++1];
done
endOut
}
endOut()
{
echo '
<iframe id="frame" name="frame" frameborder="0" class="iframer"></iframe>
</body>
</html>' >> ../tmp/alist.html
redirect
}
redirect()
{
echo "Content-type: text/html"
echo ""
echo "<html>"
echo "<head>"
echo "<title>Loading...</title>"
echo "<meta http-equiv='refresh' content='1;URL=../tmp/alist.html'>"
echo "</head>"
echo "<body style='background-color:#000000'>"
echo "<center>
<font color='#FFFFFF'>You will be redirected in a few seconds...</font>
<img style='width:30em;height:30em;margin-left:50%;margin-top:15%;' src='../icons/loading.gif'></img>"
echo "</center>"
echo "</body>"
echo "</html>"
}
headOut

View File

@@ -0,0 +1,9 @@
#!/bin/bash
. lastSearch.cgi
main()
{
cat ../themes/"Grid List.css" > ../themes/bodyCss.css
check
}
main

View File

@@ -0,0 +1,50 @@
#!/bin/bash
check()
{
start
}
start()
{
if [[ -f ../tmp/list.html ]]
then
pre;
echo "<meta http-equiv='refresh' content='0;URL=../tmp/list.html'>"
post;
elif [[ -f ../tmp/alist.html ]]
then
pre;
echo "<meta http-equiv='refresh' content='0;URL=../tmp/alist.html'>"
post;
elif [[ ! -f ../tmp/aList.html && ! -f ../tmp/alist.html ]]
then
pre;
echo "<meta http-equiv='refresh' content='1;URL=../index.html'>"
echo "</head>"
echo "<body style='background-color:#000000'>"
echo -e "<center><font color='#FFFFFF'>No Last Search... \n Loading Home...</font></center>"
echo "<img style='width:30em;height:30em;margin-left:50%;margin-top:15%;' src='../icons/loading.gif'></img>"
echo "</body>"
echo "</html>"
fi
}
pre()
{
echo "Content-type: text/html"
echo ""
echo "<html>"
echo "<head>"
echo "<title>Loading...</title>"
}
post()
{
echo "</head>"
echo "<body style='background-color:#000000'>"
echo -e "<center><font color='#FFFFFF'>Loading Last Search...</font></center>"
echo "<img style='width:30em;height:30em;margin-left:50%;margin-top:15%;' src='../icons/loading.gif'></img>"
echo "</body>"
echo "</html>"
}
check

View File

@@ -0,0 +1,9 @@
#!/bin/bash
. lastSearch.cgi
main()
{
cat ../themes/"List On The Left.css" > ../themes/bodyCss.css
check
}
main

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,24 @@
#!/bin/bash
main()
{
readarray -t pids < pids
programGuiID=${pids[0]}
serverID=${pids[1]}
kill $programGuiID $serverID ;
echo "" > ./pids
rm -rf \
../tmp/*tmp* \
../tmp/*Show* \
../tmp/*img* \
../tmp/*titles* \
../tmp/*media* \
../tmp/aGrpIds \
../tmp/aImgList \
../tmp/alphaListing \
../tmp/aTitles \
../tmp/preaImgList \
../tmp/preaTitles
}
main