|
|
@@ -38,12 +38,25 @@ if [ $? -ne 0 ] ; then
|
|
|
beenden 1
|
|
|
fi
|
|
|
|
|
|
-find ${PFAD}/mount/Filme/h.264\ -\ 1080p/ -type d -printf '%f\n' | while read FILM; do
|
|
|
+#find ${PFAD}/mount/Filme/h.264\ -\ 1080p/ -type d -printf '%f\n' | while read FILM; do
|
|
|
+#find ${PFAD}/mount/Filme/h.264\ -\ 720p/ -type d -printf '%f\n' | while read FILM; do
|
|
|
+find ${PFAD}/mount/Filme/SD/ -type d -printf '%f\n' | while read FILM; do
|
|
|
rm -f ${PFAD}/searchresults.txt
|
|
|
|
|
|
- FILMHTML=$(echo $FILM | sed -f ${PFAD}/url_escape.sed)
|
|
|
+ echo "##############################"
|
|
|
+ sleep 30
|
|
|
+
|
|
|
+ #hier werden Wörter mit nur 3 Buchstaben entfernt sowie anschließend doppelte Leerzeichen und Leerzeichen am Anfang/Ende
|
|
|
+ FILMKURZ=$(echo ${FILM} | sed 's/\<.\{,3\}\>//g' | sed 's/-//g' |awk '{$1=$1};1')
|
|
|
+
|
|
|
+ if [ "$FILMKURZ" == "" ] ; then
|
|
|
+ echo "Name zu kurz, leerer String: ${FILM}"
|
|
|
+ continue
|
|
|
+ fi
|
|
|
+
|
|
|
+ FILMHTML=$(echo $FILMKURZ | sed -f ${PFAD}/url_escape.sed)
|
|
|
SEARCHURL=${SEARCHPREFIX}${FILMHTML}${SEARCHPOSTFIX}
|
|
|
- echo $FILMHTML
|
|
|
+ echo "Aktueller Film: $FILM"
|
|
|
echo $SEARCHURL
|
|
|
|
|
|
curl -s -L -H "${USERAGENT}" -b ${COOKIEFILE} "${SEARCHURL}" -o ${PFAD}/searchresults.txt
|
|
|
@@ -60,12 +73,12 @@ find ${PFAD}/mount/Filme/h.264\ -\ 1080p/ -type d -printf '%f\n' | while read FI
|
|
|
continue
|
|
|
fi
|
|
|
|
|
|
- grep "showthread.php" ${PFAD}/searchresults.txt | grep "subject_old" | sed 's@showthread.php@https://house-of-usenet.com/showthread.php@g' > "${PFAD}/results/${FILM}.html"
|
|
|
- echo "##############################" >> "${PFAD}/results/${FILM}.html"
|
|
|
- echo "Filmtitel auf Festplatte: ${FILM}" >> "${PFAD}/results/${FILM}.html"
|
|
|
- echo "##############################"
|
|
|
+ grep "showthread.php" ${PFAD}/searchresults.txt | grep "subject_old" | sed 's@showthread.php@https://house-of-usenet.com/showthread.php@g' | sed ':a;N;$!ba;s/\n/<br>\r\n/g' > "${PFAD}/results/${FILM}.html"
|
|
|
+ echo "<br>##############################" >> "${PFAD}/results/${FILM}.html"
|
|
|
+ echo "<br>Filmtitel auf Festplatte: ${FILM}" >> "${PFAD}/results/${FILM}.html"
|
|
|
+ #echo "##############################"
|
|
|
rm -f ${PFAD}/searchresults.txt
|
|
|
- sleep 60
|
|
|
+ #sleep 60
|
|
|
done
|
|
|
|
|
|
-beenden 0
|
|
|
+beenden 0
|