Du bist nicht angemeldet.
Hi,
ich würde hier die Zeile:
fileid=$(echo $param | sed -n 's|.*://\(www.\)\?oboom\?.com/#\([A-Z0-9]\{8\}\).*|\2|p')
in
fileid=$(echo $param | sed -n 's|.*://\(www.\)\?oboom\?.com/#\?\([A-Z0-9]\{8\}\).*|\2|p')
ändern.
Es sieht so aus daß Links in der Form (/#[A-Z0-9]{8}) oder auch (/[A-Z0-9]{8}) geben kann.
Grüße.
Auch ganz frisch:
file: filesfrog__net.sh
#!/bin/ash
# Copyright (c) 2014 genuK/genuk@gmx.net
# Fritzload hosterplugin for http://filesfrog.net
DEBUG_GET=1
filesfrog_net_onlineStatus() {
local url=$1
local checklink="http://www.filesfrog.net/?op=checkfiles"
local checkdata="op=checkfiles&process=Check+URLs&list="$url
GET "$checklink" $f "--data $checkdata --cookie $c -cookie-jar $c" "GET-CHECKURL"
if grep -q -i '<td style="color:red;">Not found!</td>' $f; then
errmsg "=== Link: $param nicht gefunden. Link ungueltig ==="; return 1
elif grep -q -i "<td style=\"color:red;\">Filename don't match!</td>" $f; then
errmsg "=== Link: $param - Filename don't match!. Link ungueltig ==="; return 1
elif grep -q -i '<td style="color:green;">Found</td>' $f; then
print "=== Link: $param gefunden. Link gueltig ==="; return 0
else
errmsg "=== Link Check! Something doesn't work! Please report! ==="; return 1
fi
}
filesfrog_net() {
local filename filesize data download_link
local f=$tmp/response.htm c=$tmp/dl.cookie.txt
if ! filesfrog_net_onlineStatus "$param";then
errmsg "URL-Adresse: Offline ($param)"
return 1
fi
while [ $try -lt $retries ]; do
try=$(($try+1))
# get the url($param) from downloadlist and load the answer in $f
GET "$param" $f "--cookie $c --cookie-jar $c" "GET1"
# check http status code
if [ "$H_CODE" = 404 ] && grep -qiE "<h3>File Not found</h3>" $f ;then
errmsg "SERVER-FEHLER: Link nicht gefunden!; HTTP-Statuscode: $H_CODE"
errmsg "Link Adresse falsch?"
return 1
elif [ "$H_CODE" != 200 ]; then
errmsg "SERVER-FEHLER: $H_CODE"
return 1
fi
# extract the filename
filename="$(formValue 'fname' $f 0)"
if [ -z "$filename" ];then
# write the log and quit if "$filename" not found
errmsg "FAILED: Could not resolve FILENAME"
return 1
fi
print "=== Extracted filename is: $filename ==="
notalreadyLoaded "$targetdir/$filename" || return
# extract the form parameters values
data="$(formParams 'op;id;fname;referer;method_free' $f 0)"
print "=== Extracted Form-data is: $data ==="
# submit the form-data and load the answer in $f
GET "$param" $f "--data $data --cookie $c --cookie-jar $c" "GET2"
# check http status code
if [ "$H_CODE" = 404 ] && grep -qiE "<h3>File Not found</h3>" $f ;then
errmsg "SERVER-FEHLER: Link nicht gefunden!; HTTP-Statuscode: $H_CODE"
errmsg "Link Adresse falsch?"
return 1
elif [ "$H_CODE" != 200 ]; then
errmsg "SERVER-FEHLER: $H_CODE"
return 1
elif grep -q -i "<div class=\"err\">You have to wait" $f; then
print "=== Download limit erreicht. Versuche reconnect. ==="
{ needReconnect; continue; }
fi
# extract the form parameters values
data="$(formParams 'op;id;rand;referer;method_free;method_premium;down_direct' $f 0)"
print "=== Extracted Form-data is: $data ==="
# captcha processing
if is_captcha $f; then
captcha_service_active || return
captcha_solution $f || continue
else
captcha_type_unknown
return
fi
# submit the form+captcha and load the answer in $f
GET "$param" $f "--data $data&$CAPTCHA_RESPOND --cookie $c --cookie-jar $c" "GET3"
if grep -q -i '<div class="err">Wrong captcha' $f; then
print "'Wrong captcha' was found on the second page"
captcha_wrong
continue
elif grep -q -i '<div class="err">Expired download session' $f; then
print "Expired download session"
continue
elif grep -q -i "<h3>File Download Link Generated</h3>" $f ||\
grep -q -i "This direct link will be available for your IP next 8 hours" $f ; then
print "Download Link Button gefunden auf die 3. Seite"
captcha_correct
else
errmsg "Something goes wrong. Plugin needs update? Please report!"
return 1
fi
# extract the filesize
filesize="$(grep "Size:" $f | sed -e 's/^.*[^0-9]\(\([0-9]*\.[0-9]*\) [K\|M\|G][B\|b]\).*$/\1/')"
print "=== Extracted filesize is: $filesize ==="
# extract the download link
download_link="$(grep "var download_url" $f | sed -e "s/\(.*var download_url = '\)\([^']*\).*/\2/")"
if [ -z "$download_link" ]; then
errmsg "Der Download url konnte nicht gefunden werden, eine 2. Methode wird versucht..."
# try to get the download url from the ahref
download_link="$(grep '<a href=.*http.*'"$filename" $f | sed -e 's/\(.*a href=\"\)\([^\"\]*\)".*/\2/$
elif [ -z "$download_link" ]; then
# write the log if "$download_link" not found
errmsg "FAILED: Could not resolve download URL"
return 1
fi
print "=== Extracted download_link is: $download_link ==="
if download "$download_link" "$filename" "--cookie $c --cookie-jar $c";then
succes=1
break
fi
done
}
Testlinks via PM.
Ganz frisch:
1. die Datei : fcore_eu.sh
#!/bin/ash
# Copyright (c) 2014 genuK/genuk@gmx.net
# Fritzload hosterplugin for http://fcore.eu
DEBUG_GET=1
###########################################
# ev. Kandidat fuer die captcha libs #
###########################################
solvePlaintextCaptcha() {
local span loesung
span=$(grep ";background:#ccc;text-align" $f|\
sed -e 's/<div[^>]*>//g' -e 's/\(^.*\)<\/div>/\1/g' \
-e 's/<\/span><span /\n/g' -e 's/<span //' -e 's/<\/span>//')
loesung=$(echo "$span"|sed 's/.*-left:\([0-9]*\)px[^>]*>\(.*\)/\1 \2/g'|\
sort -g |sed -e 's/[0-9]* //' -e 's/0/0/' -e 's/1/1/' \
-e 's/2/2/' -e 's/3/3/' -e 's/4/4/' -e 's/5/5/' \
-e 's/6/6/' -e 's/7/7/' -e 's/8/8/' -e 's/9/9/')
loesung=$(echo "$loesung"| tr -d '\n')
echo $loesung
}
fcore_eu_onlineStatus() {
local url=$1
local checklink="http://filecore.co.nz/?op=checkfiles"
local checkdata="op=checkfiles&process=Check+URLs&list="$url
GET "$checklink" $f "--data $checkdata --cookie $c -cookie-jar $c" "GET-CHECKURL"
if grep -q -i '<td style="color:red;">Not found!</td>' $f; then
errmsg "=== Link: $param nicht gefunden. Link ungueltig ==="; return 1
elif grep -q -i "<td style=\"color:red;\">Filename don't match!</td>" $f; then
errmsg "=== Link: $param - Filename don't match!. Link ungueltig ==="; return 1
elif grep -q -i '<td style="color:green;">Found</td>' $f; then
print "=== Link: $param gefunden. Link gueltig ==="; return 0
else
errmsg "=== Link Check! Something doesn't work! Please report! ==="; return 1
fi
}
fcore_eu() {
local filename filesize data download_link
local f=$tmp/response.htm c=$tmp/dl.cookie.txt
# check if link has the minimum length
# if the link is too long will be catched by fcore_eu_onlineStatus
if ! echo $param | grep -E "([a-z0-9]{12})" ; then
errmsg "Link $param is too short! Please check your link!"
return 1
fi
# check online availability
if ! fcore_eu_onlineStatus "$param";then
errmsg "URL-Adresse: Offline ($param)"
return 1
fi
while [ $try -lt $retries ]; do
try=$(($try+1))
# get the url from downloadlist and load the answer in $f
GET "$param" $f "--cookie $c --cookie-jar $c" "GET1"
# check http status code
if [ "$H_CODE" = 404 ] && grep -qiE "<h3>File Not found</h3>" $f ;then
errmsg "SERVER-FEHLER: Link nicht gefunden!; HTTP-Statuscode: $H_CODE"
errmsg "Link Adresse falsch?"
return 1
elif grep -qi "No such file\|File Not Found\|The file was removed by\|Reason for deletion" $f; then
errmsg "File not found"
return 1
elif grep -qi "This server is in maintenance mode" $f; then
errmsg "This server is in maintenance mode"
break
elif grep -qiE "You have reached the download[-\ ]limit" $f; then
print "=== Download limit erreicht. Versuche reconnect. ==="
{ needReconnect; continue; }
fi
# extract the form with name="F1"
extractForm $f "name=\"F1\"" || extractForm $f "name='F1'" || continue
# extract the form parameters values
data="$(formParams 'op;id;rand;method_free;down_direct;down_script' $f 0)"
# captcha processing
local code
if grep -q ";background:#ccc;text-align" $f.form ; then
print "=== Detected captcha method \"Plaintext Captcha\" ==="
code=$(solvePlaintextCaptcha $f)
print "=== extracted Plaintext Captcha code is: $code ==="
data=$data"&code="$code
elif grep '/captchas/' $f.form ; then
print "=== Detected captcha method \"Standard captcha\" ==="
# extract the captcha link
local capurl="$(grep '/captchas/' $f.form | sed -e 's/.*\"\(.*[^\"]\)\".*/\1/g')"
print "=== Extracted capurl is: $capurl"
# get the captcha image
local capfile=$tmp/dl.captcha.jpg
curl -s --cookie $c "$capurl" -o $capfile
set_captcha_solution "$capurl" || continue
rm -rf $capfile
data=$data"&code="$CAPTCHA_STRING
elif is_captcha $f; then
if grep -q "api.recaptcha.net\|google.com/recaptcha/api/" $f.form ; then
print "=== Detected captcha method \"Re Captcha\" ==="
elif grep -q "solvemedia.com/papi/" $f.form ; then
print "=== Detected captcha method \"Solve Media\" ==="
elif grep -q "id=\"capcode\" name= \"capcode\"" $f.form ; then
print "=== Detected captcha method \"Key Captcha\" ==="
fi
captcha_service_active || return
captcha_solution $f || continue
print "=== Returned CAPTCHA_RESPOND is: $CAPTCHA_RESPOND ==="
data=$data"&"$CAPTCHA_RESPOND
else
captcha_type_unknown
return
fi
print "=== Form-Data with Captcha-Code is: $data ==="
# submit the form-data and load the answer in $f
GET "http://filecore.co.nz/download.html" $f "--data $data --cookie $c --cookie-jar $c" "GET2"
if grep -q -i '<div class="err">Wrong captcha' $f; then
print "'Wrong captcha' was found on the second page"
captcha_wrong
continue
elif grep -q -i '<div class="err">Expired download session' $f; then
print "Expired download session"
continue
elif grep -q -i "images/dl.png" $f; then
print "Download Link Button gefunden auf die 2. Seite"
captcha_correct
else
errmsg "Something goes wrong. Plugin needs update? Please report!"
return 1
fi
download_link="$(grep 'images/dl.png' $f | sed -e 's/.*[^"]"\(http.*[^"]\)">.*/\1/g')"
if [ -z "$download_link" ]; then
# write the log if "$download_link" not found
errmsg "FAILED: Could not resolve download URL"
return 1
fi
print "=== Extracted download_link is: $download_link ==="
filename="$(echo $download_link| sed -e 's@.*/\(.*\)@\1@')"
if [ -z "$filename" ]; then
# write the log if "$filename" not found
errmsg "FAILED: Could not resolve filename"
return 1
fi
print "=== Extracted filename is: $filename ==="
notalreadyLoaded "$targetdir/$filename" || return
if download "$download_link" "$filename" "-b $c -c $c"; then
succes=1
break
fi
done
}
2. die Datei : filecore_co_nz.sh
#!/bin/ash
# Copyright (c) 2014 genuK/genuk@gmx.net
# Fritzload hosterplugin for http://filecore.co.nz
. $pdir/lib/hoster/fcore_eu.sh
filecore_co_nz() {
fcore_eu "$param"
return $?
}
Testlinks via PM.
Hi,
bitte die Zeile:
referer=$H_LOCATION
mit:
if [ -z "$H_LOCATION" ]; then
referer=$param
else
referer=$H_LOCATION
fi
ersetzten.
Hier eine kleine Update. Der Test-Link funzt bei mir hanz gut. Bitte auch mit andere Links testen!
#!/bin/sh
# Fix and update genuK/genuk@gmx.net 15.04.2014
# captcha without tesseract
ziddu_com(){
local c=$tmp/ziddu.cookie.txt f=$tmp/dl.response.htm
local referer filename
while [ $try -lt $retries ]; do
try=$(($try+1))
GET "$param" $f "--cookie $c --cookie-jar $c" "GET1" || { needReconnect; continue; }
if grep -q -i "File not found\|may be deleted by the user or by the Administrator\|src=\"images/oops.png\"\|The requested URL was not found on this server" $
f ; then
errmsg "Die Datei konnte nicht gefunden werden!"
return 1
fi
referer=$H_LOCATION
filename=$(<$f sed -n "/top.document.title/s/^.*=\"Download \(.*\) in Ziddu.*$/\1/p")
print "=== extracted filename is $filename ==="
notalreadyLoaded "$filename" || return
local formaction="$(<$f parse_form_action)"
print "=== extracted formaction is:$formaction ==="
local baseurl="http://downloads.ziddu.com"
local data="$(formParams 'Submit;lang;mmemid;mname;lang' $f 0)"
print "=== 1. extracted form-data is:$data ==="
# submit form and load the answer in $f // press "Download" button
GET "$baseurl$formaction" $f "--data $data --referer $referer --cookie $c --cookie-jar $c" "GET2" || continue
local finalformaction="${baseurl}$(<$f parse_form_action)"
print "=== Extracted finalformaction is: $finalformaction ==="
# http://www.white-hat-web-design.co.uk/blog/php-captcha-security-images/
local capurl="http://downloads.ziddu.com/CaptchaSecurityImages.php?width=100&height=38&characters=5"
# get the captcha image
local capfile=$tmp/dl.captcha.jpg
curl -s --referer "$baseurl$formaction" --cookie $c "$capurl" -o $capfile
set_captcha_solution "$capfile"
# extract the form parameter values from the form with the name="securefrm"
data="$(formParams 'fid;tid;fname;clientos;Keyword;submit' $f 0)"
print "=== Extracted Form-Data ist: $data ==="
data=$data"&securitycode="$CAPTCHA_STRING
print "=== Form-Data with securitycode ist: $data ==="
if download "$finalformaction" "$filename" "--data $data --cookie $c --cookie-jar $c"; then
captcha_correct
break
else
captcha_wrong
fi
done
}
@99Luftabllons ich meine dass Tesseract nicht unbedingt nötig ist. Mal sehen ob ich etwas machen kann.
Bei mir funzt auch nach der FB FW-Update.
Benutze aber eine ältere FL Version: V0.42/Rev.: 2480
Gruß
ein Tick zu spät ... hier meine Variante
#!/bin/ash
# Copyright (c) 2014 genuK/genuk@gmx.net
# Fritzload hosterplugin for http://potload.com
# 03.02.2014
DEBUG_GET=1
potload_com(){
local filename data filesize url f=$tmp/response.htm c=$tmp/dl.cookie.txt
local checklink="http://potload.com/?op=checkfiles&list="
while [ $try -lt $retries ]; do
try=$(($try+1))
# check link availability
GET "$checklink$param" $f "-b $c -c $c" "GET-CHECKURL"
# check $f if link is still available
if grep -q -i "$param".*"Filename don't match!" $f; then
errmsg "=== Link: $param not found! Falsche link adress? ===" ; return 1
elif grep -q -i "$param".*"not found" $f; then
errmsg "=== Link: $param nicht gefunden. Link ungueltig ==="; return 1
elif grep -q -i "$param".*"found" $f; then
print "=== Link: $param gefunden. Link gueltig ==="
else
errmsg "=== Checking link ...Something doesn't work! ==="; return 1
fi
# get the url from downloadlist and load the answer in $f
GET "$param" $f "--cookie $c --cookie-jar $c" "GET1"
# check http status code
if [ "$H_CODE" = 404 ] && grep -qiE "<h3>File Not found</h3>" $f ;then
errmsg "SERVER-FEHLER: Link nicht gefunden!; HTTP-Statuscode: $H_CODE"
errmsg "Link Adresse falsch?"
return 1
elif [ "$H_CODE" != 200 ]; then
errmsg "SERVER-FEHLER: $H_CODE"
return 1
elif grep -qiE "You have reached the download[-\ ]limit" $f; then
print "=== Download limit erreicht. Versuche reconnect. ==="
{ needReconnect; continue; }
fi
# extract the filename from the form in $f
filename=$(formValue fname $f)
if [ -z "$filename" ];then
# write the log and quit if "$filename" not found
errmsg "FAILED: Could not resolve FILENAME"
return 1
else
# write the log and do a check if file already loaded
print "=== Filename gefunden: $filename ==="
notalreadyLoaded "$targetdir/$filename" || return
fi
# TODO
# ev get the filesize
# there are 2 forms on the page
# one to login : <form method="POST" action="http://potload.com/" name="FL" id="signin">
# one to submit the download: <Form method="POST" action=''>
# better extract the 2. Form with no action
extractForm $f "action=''" || extractForm $f "action=\"\"" || continue
print "### extracted form is: $(cat $f.form | sed -n 's/^$//;t;p;') ###"
# extract the form parameter values # don't extract op because it get it from the first form
data="$(formParams 'op;id;fname;method_free' $f.form 0)"
print "=== extracted form-data is: $data ==="
# submit form and load the answer in $f
GETN "$param" $f "-d $data -b $c -c $c" "GET2"
#Get the Waiting time:
local waitingtext=$(grep Wait $f | sed 's/.*<span id="\([^"].*\)">\([0-9]*\)<\/span>\(.*\)<\/span>.*/\2\3/')
print "=== waitingtext is: $waitingtext ==="
local wait=$(grep Wait $f | sed 's/.*<span id="\([^"].*\)">\([0-9]*\)<\/span>\(.*\)<\/span>.*/\2/')
print "=== wait is: $wait ==="
# waiting the waittime
waiting $wait
#submit download
# better extract the 2. Form
extractForm $f "action=''" || extractForm $f "action=\"\"" || continue
print "### extracted form is: $(cat $f.form | sed -n 's/^$//;t;p;') ###"
# extract the form parameter values
data="$(formParams 'op;id;rand;referer;method_free;down_script' $f.form 0)"
print "=== extracted form-data is: $data ==="
# submit form and load the answer in $f
GETN "$param" $f "-d $data -b $c -c $c" "GET3"
# link is between 2 patterns
url=$(sed -n '/<div class=\"downloadurl\">/,/<\/div>/{/<div class=\"downloadurl\">/d;/<\/div>/d;p;}' $f | sed 's/<a href=\"\([^\"].*\)\".*/\1/')
print "=== url is: $url ==="
# test if allready loaded
notalreadyLoaded "$targetdir/$filename" || return
if download $url "$filename" "-b $c -c $c"; then
succes=1
break
fi
# Do it realy need a reconnect
# needReconnect; continue
done
}
Es kann sein...Ich bin kein Programierer und offen für Ratschläge.
print() ist definiert in /lib/util_msg.sh
Und bei mir funzt ganz gut...Sonst wurde das hier gar nicht posten.
Viele Plugins verwenden auch print...
Filename:
hugefiles_net.sh
#!/bin/ash
# Copyright (c) 2014 genuK/genuk@gmx.net
# Fritzload hosterplugin for http://hugefiles.net
# Version 1.00 31.01.2014
# Maxfilesize for freeuser (5Gb?)
# Maxparalell downloads (?)
# can resume
DEBUG_GET=1
# CAN_RESUME=1
hugefiles_net() {
local filename data1 data2 filesize url f=$tmp/response.htm c=$tmp/dl.cookie.txt
local checklink="http://hugefiles.net/?op=checkfiles"
while [ $try -lt $retries ]; do
try=$(($try+1))
# check link availability
local datacheck="op=checkfiles&process=Check+URLs&list="$param
print "=== datacheck is:$datacheck ==="
GET "$checklink" $f "-d $datacheck -b $c -c $c" "GET-CHECKURL"
# check $f if link is still available
if grep -q -i "$param".*"Filename don't match!" $f; then
errmsg "=== Link: $param not found! False link adress? ===" ; return 1
elif grep -q -i "$param".*"not found" $f; then
errmsg "=== Link: $param nicht gefunden. Link ungueltig ==="; return 1
elif grep -q -i "$param".*"found" $f; then
print "=== Link: $param gefunden. Link gueltig ==="
else
errmsg "=== Something doesn't work! ==="; return 1
fi
# get the url from downloadlist and load the answer in $f
GET "$param" $f "--cookie $c --cookie-jar $c" "GET1"
# check http status code
if [ "$H_CODE" = 404 ] && grep -qiE "<h3>File Not found</h3>" $f ;then
errmsg "SERVER-FEHLER: Link nicht gefunden!; HTTP-Statuscode: $H_CODE"
errmsg "Link Adresse falsch?"
return 1
elif [ "$H_CODE" != 200 ]; then
errmsg "SERVER-FEHLER: $H_CODE"
return 1
elif grep -qiE "You have reached the download[-\ ]limit" $f; then
print "=== Download limit erreicht. Versuche reconnect. ==="
{ needReconnect; continue; }
fi
# extract the filename from the form in $f
filename=$(formValue fname $f)
if [ -z "$filename" ];then
# write the log and quit if "$filename" not found
errmsg "FAILED: Could not resolve FILENAME"
return 1
else
# write the log and do a check if file already loaded
print "=== Filename gefunden: $filename ==="
notalreadyLoaded "$targetdir/$filename" || return
fi
# get filesize
filesize="$(grep -m1 "File Size" $f | sed -e 's/^.*[^0-9]\(\([0-9]*\.[0-9]*\) [K\|M\|G][B\|b]\).*$/\1/')"
print "=== filesize is: $filesize ==="
# note: there are 2 identical forms with method="POST": in the mobile-version and in the full-version
# extract the form parameter values
data1="$(formParams 'op;usr_login;id;fname;referer;method_free' $f 0)"
print "=== extracted form-data1 is: $data1 ==="
# submit form and load the answer in $f
GETN "$param" $f "-d $data1 -b $c -c $c" "GET2"
# # extract the form with "name=F1" from "$f" in "$f.form"
# extractForm $f "name=\"F1\"" || continue
# print "### extracted form is: $(cat $f.form | sed -n 's/^$//;t;p;') ###"
# # extract form-hidden-params and cut "&adcopy_response=" from it
# data2="$(formHiddenParams $f.form | sed -e 's/&adcopy_response=//')"
# # delete "$f.form"
# rm -f $f.form
# print "### data2 is: $data2 ###"
# extract the form parameter values
data2="$(formParams 'op;id;rand;referer;method_free;method_premium;down_direct' $f 0)"
print "=== Extracted form-data2 is: $data2 ==="
# captcha processing
if is_captcha $f; then
captcha_service_active || return
captcha_solution $f || continue
else
captcha_type_unknown
return
fi
print "=== Returned CAPTCHA_RESPOND is: $CAPTCHA_RESPOND ==="
# submit the form+captcha and load the answer in $f
GETN "$param" $f "-d $data2&$CAPTCHA_RESPOND -b $c -c $c" "GET3"
if [ -n "$H_LOCATION" ];then
captcha_correct
print "=== download link is:$H_LOCATION ==="
# TODO check filesize against the downloaded filesize; is possible somehow?
# TODO resume; anyone does it?
local resumeoption="-C -"
if download "$H_LOCATION" "$filename" "-b $c -c $c $resumeoption";then
succes=1
break
fi
else
if grep -q '"err">Wrong captcha' $f;then
captcha_wrong
else
captcha_unknown
fi
errmsg "No location link found"
continue
fi
return 1
done
}
Weil's keiner machen wollte ...
Filename: one80upload_com.sh
#!/bin/ash
# Copyright (c) 2013 genuK/genuk@gmx.net
# Fritzload hosterplugin for http://180upload.com/
# Version 1.00 31.01.2014
# Bis zu 2048 Mb, 10 Dateien maximal
# can resume
DEBUG_GET=1
# CAN_RESUME=1
one80upload_com() {
local filename filesize url f=$tmp/response.htm c=$tmp/dl.cookie.txt language="lang=english"
local checklinkurl="http://180upload.com/?op=checkfiles&process=Check+URLs&list="
while [ $try -lt $retries ]; do
try=$(($try+1))
# check link availability
GET "$checklinkurl$param" $f "--cookie $c --cookie $language --cookie-jar $c" "CHECKLINK"
# check $f if link is still available
if grep -q -i "$param found" $f; then
print "=== Link: $param gefunden. Link ist gueltig ==="
elif grep -q -i "$param not found" $f; then
errmsg "Link: $param nicht gefunden. Link ist ungueltig" ; return 1
fi
# get the url from downloadlist and load the answer in $f.
GET "$param" $f "--cookie $c --cookie $language --cookie-jar $c" "GET1"
# check http status code
if [ "$H_CODE" = 404 ] && grep -qE "<h2>File Not Found</h2>" $f ;then
errmsg "SERVER-FEHLER: Link nicht gefunden!; HTTP-Statuscode: $H_CODE"
errmsg "Link Adresse falsch?"
return 1
elif [ "$H_CODE" != 200 ];then
errmsg "SERVER-FEHLER: $H_CODE"
return 1
fi
# Server in maintenance; wait and try again
if grep -q -i "This server is in maintenance mode. Refresh this page in some minutes." $f; then
errmsg "Der Server befindet sich im Wartung. Es wird erneut versucht die Seite zu laden in 5 Minuten."
waiting 300
{ needReconnect; continue;}
fi
# other possibilities
if grep -q -i "File Not Found, Copyright infringement issue, file expired or deleted by its owner." $f; then
errmsg "'File Not Found, Copyright infringement issue, file expired or deleted by its owner.' gefunden auf die erste Seite!"
errmsg "Die Datei wurde nicht gefunden. Geloescht oder abgelaufen?"
return 1
elif ! grep -q -i "Click here to continue to the video or file\|Continue" $f; then
errmsg "'Click here to continue to the video or file\|Continue' nicht gefunden auf die erste Seite!"
errmsg "Site update? Das Plugin braucht vielleicht eine Aktualisierung.";
return 1
elif grep -qiE "You have reached the download[-\ ]limit" $f; then
print "=== Download limit erreicht. Versuche reconnect. ==="
{ needReconnect; continue; }
fi
# get the filename from the first page (GET1) # maybe better to get the file name on the second page (?)
filename="$(grep -m1 -o -E "<b>Filename:</b></td><td nowrap>(.*?)</td></tr>" $f | sed -e 's/.*<td nowrap>\(.*\)<\/td><\/tr>/\1/')"
print "=== Filename gefunden: $filename ==="
if [ -z "$filename" ]; then
errmsg "Der Dateiname konnte nicht gefunden werden, eine 2. Methode wird versucht..."
filename= "$(grep -m1 -o -E '^<b>(.*)</b>' $f | sed -e 's/^<b>\(.*\)<\/b>/\1/')"
print "=== Filename gefunden: $filename ==="
fi
# extract the form parameter values
local data="$(formParams 'op;id;rand;fname;referer;method_free;method_premium;down_direct' $f 0)"
print "=== Extracted Form-Data ist: $data ==="
# captcha processing
if is_captcha $f; then
captcha_service_active || return
captcha_solution $f || continue
else
captcha_type_unknown
return
fi
# submit the form+captcha and load the answer in $f
GETN "$param" $f "-d $data&$CAPTCHA_RESPOND -b $c -b $language -c $c" "GET2"
# check http status code
if [ "$H_CODE" != 200 ];then
echo "SERVER-FEHLER: $H_CODE"
return 1
elif grep -q -i '<div class="err">Wrong captcha' $f; then
print "'Wrong captcha' was found on the second page"
captcha_wrong
continue
elif grep -q -i "This download link will be available for you for the next 7 hours\|By downloading the file you agree to the TOS of 180upload" $f; then
print "'This download link will be available for you for the next 7 hours\|By downloading the file you agree to the TOS of 180upload' gefunden auf die 2. Seite"
captcha_correct
fi
# if filename not allready found try to get it from the 2. Page
if [ -z "$filename" ]; then
filename="$(grep -m1 -o -E '^<b>(.*)</b>' $f | sed -e 's/<b>\(.*\)<\/b>/\1/')"
print "=== Filename gefunden: $filename ==="
elif [ -z "$filename" ]; then
errmsg "Der Dateiname konnte nicht gefunden werden, eine 5. Methode wird versucht..."
filename= "$(grep -m1 -o -E '<!--<tr><td align=right><b>Filename:</b></td><td nowrap>(.*)</td></tr>-->' $f | sed -e 's/^.*<b>Filename:<\/b><\/td><td nowrap>\(.*\)<\/td>.*/\1/')"
print "=== Filename gefunden: $filename ==="
fi
# get download url from the visible link
url="$(grep -m1 -E -o '<h1><a id=\"lnk_download\" href=\"(.*)\">' $f | sed -e 's/.*href=\"\(.*\)\".*/\1/')"
print "=== Download url gefunden: $url ==="
if [ -z "$url" ]; then
errmsg "Der Download url konnte nicht gefunden werden, eine 2. Methode wird versucht..."
# try to get the download url from the JavaScript "var file_link"
url="$(grep -m1 -o -E "var file_link = '(.*)'" $f | sed -e "s/\(var file_link = '\)\(.*\)\('\)/\2/")"
print "=== Download url gefunden: $url ==="
elif [ -z "$url" ]; then
errmsg "Der Download url konnte immer noch nicht gefunden werden, eine 3. Methode wird versucht..."
# try to get the download url from the JavaScript "var installer_link"
url="$(grep -m1 -o -E "&product_download_url=(.*)'" $f | sed -e "s/\(&product_download_url=\)\(.*\)\('\)/\2/")"
print "=== Download url gefunden: $url ==="
fi
if [ -z "$url" ];then
# write the log if "$url" not found
errmsg "FAILED: Could not resolve download URL"
return 1
elif [ -z "$filename" ];then
# write the log if "$filename" not found
errmsg "FAILED: Could not resolve FILENAME"
return 1
fi
# get the filesize from the JavaScript "var file_size"
filesize="$(grep -m1 -o -E "var file_size = '(.*)'" $f | sed -e "s/\(var file_size = '\)\(.*\)\('\)/\2/")"
print "=== Filesize gefunden: $filesize ==="
# test if allready loaded
notalreadyLoaded "$targetdir/$filename" || return
# TODO check filesize against the downloaded filesize; is possible somehow?
# TODO count the time and by failure download again; the link is available 7 hours; What if IP changes? Is the link still available?
# TODO resume; anyone does it?
local resumeoption="-C -"
if download "$url" "$filename" "-b $c -c $c $resumeoption"; then
break
fi
done
}
Nicht vergessen die Dateien zu ändern:
/lib/download.sh
die Zeilen:
getmodulenamePattern(){
local modulename=$1
case $modulename in
twoshared_com) echo "2shared.com|twoshared.com" ;;
fourshared_com) echo "4shared.com|fourshared.com" ;;
crocko_com) echo "easy.share.com|crocko.com" ;;
ändern in
getmodulenamePattern(){
local modulename=$1
case $modulename in
one80upload_com) echo "180upload.com|one80upload.com" ;;
twoshared_com) echo "2shared.com|twoshared.com" ;;
fourshared_com) echo "4shared.com|fourshared.com" ;;
crocko_com) echo "easy.share.com|crocko.com" ;;
weiter die Zeilen:
case $modulename in
2shared_com) modulename=twoshared_com ;;
4shared_com) modulename=fourshared_com ;;
easy_share_com) modulename=crocko_com ;;
freakshare_com) modulename=freakshare_net ;;
tubeload_to) modulename=mystream_to ;;
ul_to) modulename=uploaded_to ;;
yourfiles_biz) modulename=yourfiles_to ;;
esac
ändern in:
case $modulename in
180upload_com) modulename=one80upload_com ;;
2shared_com) modulename=twoshared_com ;;
4shared_com) modulename=fourshared_com ;;
easy_share_com) modulename=crocko_com ;;
freakshare_com) modulename=freakshare_net ;;
tubeload_to) modulename=mystream_to ;;
ul_to) modulename=uploaded_to ;;
yourfiles_biz) modulename=yourfiles_to ;;
esac
Die Datei:
/lib/util_stat.sh
Die Zeilen:
get_hostername() {
echo "$1" | sed -e 's/^twoshared_com/2shared.com/' \
-e 's/^fourshared_com/4shared.com/' \
-e 's/^ul_to/uploaded.to/' \
-e 's/^videos_arte_tv/videos.arte.tv/' \
-e 's/^files_mail_ru/files.mail.ru/' \
-e 's/^\(.*\)_\(.*\)$/\1\.\2/' \
-e 's/_/-/g'
}
ändern in:
get_hostername() {
echo "$1" | sed -e 's/^one80upload_com/180upload.com/' \
-e 's/^twoshared_com/2shared.com/' \
-e 's/^fourshared_com/4shared.com/' \
-e 's/^ul_to/uploaded.to/' \
-e 's/^videos_arte_tv/videos.arte.tv/' \
-e 's/^files_mail_ru/files.mail.ru/' \
-e 's/^\(.*\)_\(.*\)$/\1\.\2/' \
-e 's/_/-/g'
}
die Datei :
/parlib/parbundle.sh
case $modulename in
2shared_com) modulename=twoshared_com ;;
4shared_com) modulename=fourshared_com ;;
easy_share_com) modulename=crocko_com ;;
freakshare_com) modulename=freakshare_net ;;
tubeload_to) modulename=mystream_to ;;
ul_to) modulename=uploaded_net ;;
uploaded_to) modulename=uploaded_net ;;
yourfiles_biz) modulename=yourfiles_to ;;
esac
ändern in:
case $modulename in
180upload_com) modulename=one80upload_com ;;
2shared_com) modulename=twoshared_com ;;
4shared_com) modulename=fourshared_com ;;
easy_share_com) modulename=crocko_com ;;
freakshare_com) modulename=freakshare_net ;;
tubeload_to) modulename=mystream_to ;;
ul_to) modulename=uploaded_net ;;
uploaded_to) modulename=uploaded_net ;;
yourfiles_biz) modulename=yourfiles_to ;;
esac
Hi!
Ein Plugin für http://180upload.com wäre auch nett...
Hier ein Paar Links-Beispiele:
http://180upload.com/60mx0pnek1uy
http://180upload.com/t7cr28tjgnil
180upload.com funktioniert gut im pyload:
from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo
class HundredEightyUploadCom(XFileSharingPro):
__name__ = "HundredEightyUploadCom"
__type__ = "hoster"
__pattern__ = r"http://(?:\w*\.)?180upload\.com/(\w+).*"
__version__ = "0.01"
__description__ = """180upload.com hoster plugin"""
__author_name__ = ("stickell")
__author_mail__ = ("l.stickell@yahoo.it")
FILE_NAME_PATTERN = r'Filename:</b></td><td nowrap>(?P<N>.+)</td></tr>-->'
FILE_SIZE_PATTERN = r'Size:</b></td><td>(?P<S>[\d.]+) (?P<U>[A-Z]+)\s*<small>'
HOSTER_NAME = "180upload.com"
getInfo = create_getInfo(HundredEightyUploadCom)
Danke.
MfG