<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://ryblog.eu/fritzload/extern.php?action=feed&amp;tid=281&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Fritz!Load… / Neuer Hoster: filesfrog.net]]></title>
		<link>http://ryblog.eu/fritzload/viewtopic.php?id=281</link>
		<description><![CDATA[Die aktuellsten Beiträge in Neuer Hoster: filesfrog.net.]]></description>
		<lastBuildDate>Mon, 28 Apr 2014 11:08:31 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Antw.: Neuer Hoster: filesfrog.net]]></title>
			<link>http://ryblog.eu/fritzload/viewtopic.php?pid=1713#p1713</link>
			<description><![CDATA[<p>Eingecheckt.</p>]]></description>
			<author><![CDATA[dummy@example.com (rolex0815)]]></author>
			<pubDate>Mon, 28 Apr 2014 11:08:31 +0000</pubDate>
			<guid>http://ryblog.eu/fritzload/viewtopic.php?pid=1713#p1713</guid>
		</item>
		<item>
			<title><![CDATA[Antw.: Neuer Hoster: filesfrog.net]]></title>
			<link>http://ryblog.eu/fritzload/viewtopic.php?pid=1710#p1710</link>
			<description><![CDATA[<p><img src="http://ryblog.eu/fritzload/plugins/ezbbc/style/smilies/hmm.png" alt="hmm" />&#160; copy&amp;paste aus nano:</p><div class="codebox"><pre><code class="language-none">			download_link=&quot;$(grep &#039;&lt;a href=.*http.*&#039;&quot;$filename&quot; $f | sed -e &#039;s/\(.*a href=\&quot;\)\([^\&quot;\]*\)&quot;.*/\2/&#039;)&quot;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (genuk)]]></author>
			<pubDate>Sun, 27 Apr 2014 22:41:52 +0000</pubDate>
			<guid>http://ryblog.eu/fritzload/viewtopic.php?pid=1710#p1710</guid>
		</item>
		<item>
			<title><![CDATA[Antw.: Neuer Hoster: filesfrog.net]]></title>
			<link>http://ryblog.eu/fritzload/viewtopic.php?pid=1708#p1708</link>
			<description><![CDATA[<p>In der Zeile stimmt was nicht:</p><div class="codebox"><pre><code>download_link=&quot;$(grep &#039;&lt;a href=.*http.*&#039;&quot;$filename&quot; $f | sed -e &#039;s/\(.*a href=\&quot;\)\([^\&quot;\]*\)&quot;.*/\2/$</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (rolex0815)]]></author>
			<pubDate>Sun, 27 Apr 2014 21:48:10 +0000</pubDate>
			<guid>http://ryblog.eu/fritzload/viewtopic.php?pid=1708#p1708</guid>
		</item>
		<item>
			<title><![CDATA[Neuer Hoster: filesfrog.net]]></title>
			<link>http://ryblog.eu/fritzload/viewtopic.php?pid=1701#p1701</link>
			<description><![CDATA[<p>Auch ganz frisch:</p><p>file: filesfrog__net.sh</p><div class="codebox"><pre class="vscroll"><code class="language-none">#!/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=&quot;http://www.filesfrog.net/?op=checkfiles&quot;
        local checkdata=&quot;op=checkfiles&amp;process=Check+URLs&amp;list=&quot;$url
        GET &quot;$checklink&quot; $f &quot;--data $checkdata --cookie $c -cookie-jar $c&quot; &quot;GET-CHECKURL&quot;

        if grep -q -i &#039;&lt;td style=&quot;color:red;&quot;&gt;Not found!&lt;/td&gt;&#039; $f; then
                errmsg &quot;=== Link: $param nicht gefunden. Link ungueltig ===&quot;; return 1
        elif grep -q -i &quot;&lt;td style=\&quot;color:red;\&quot;&gt;Filename don&#039;t match!&lt;/td&gt;&quot; $f; then
                errmsg &quot;=== Link: $param - Filename don&#039;t match!. Link ungueltig ===&quot;; return 1
        elif grep -q -i &#039;&lt;td style=&quot;color:green;&quot;&gt;Found&lt;/td&gt;&#039; $f; then
                print &quot;=== Link: $param gefunden. Link gueltig ===&quot;; return 0
        else
                errmsg &quot;=== Link Check! Something doesn&#039;t work! Please report! ===&quot;; 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 &quot;$param&quot;;then
                errmsg &quot;URL-Adresse: Offline ($param)&quot;
                return 1
        fi

        while [ $try -lt $retries ]; do
                try=$(($try+1))

                # get the url($param) from downloadlist and load the answer in $f
                GET &quot;$param&quot; $f &quot;--cookie $c --cookie-jar $c&quot; &quot;GET1&quot;

                # check http status code
                if [ &quot;$H_CODE&quot; = 404 ] &amp;&amp; grep -qiE &quot;&lt;h3&gt;File Not found&lt;/h3&gt;&quot; $f ;then
                        errmsg &quot;SERVER-FEHLER: Link nicht gefunden!; HTTP-Statuscode: $H_CODE&quot;
                        errmsg &quot;Link Adresse falsch?&quot;
                        return 1
                elif [ &quot;$H_CODE&quot; != 200 ]; then
                        errmsg &quot;SERVER-FEHLER: $H_CODE&quot;
                        return 1
                fi

                # extract the filename
                filename=&quot;$(formValue &#039;fname&#039; $f 0)&quot;
                if [ -z &quot;$filename&quot; ];then
                        # write the log and quit if &quot;$filename&quot; not found
                        errmsg &quot;FAILED: Could not resolve FILENAME&quot;
                        return 1
                fi
                print &quot;=== Extracted filename is: $filename ===&quot;
                notalreadyLoaded &quot;$targetdir/$filename&quot; || return

                # extract the form parameters values
                data=&quot;$(formParams &#039;op;id;fname;referer;method_free&#039; $f 0)&quot;
                print &quot;=== Extracted Form-data is: $data ===&quot;

                # submit the form-data and load the answer in $f
                GET &quot;$param&quot; $f &quot;--data $data --cookie $c --cookie-jar $c&quot; &quot;GET2&quot;

                # check http status code
                if [ &quot;$H_CODE&quot; = 404 ] &amp;&amp; grep -qiE &quot;&lt;h3&gt;File Not found&lt;/h3&gt;&quot; $f ;then
                        errmsg &quot;SERVER-FEHLER: Link nicht gefunden!; HTTP-Statuscode: $H_CODE&quot;
                        errmsg &quot;Link Adresse falsch?&quot;
                        return 1
                elif [ &quot;$H_CODE&quot; != 200 ]; then
                        errmsg &quot;SERVER-FEHLER: $H_CODE&quot;
                        return 1
                elif grep -q -i &quot;&lt;div class=\&quot;err\&quot;&gt;You have to wait&quot; $f; then
                        print &quot;=== Download limit erreicht. Versuche reconnect. ===&quot;
                        { needReconnect; continue; }
                fi

                # extract the form parameters values
                data=&quot;$(formParams &#039;op;id;rand;referer;method_free;method_premium;down_direct&#039; $f 0)&quot;
                print &quot;=== Extracted Form-data is: $data ===&quot;

                # 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 &quot;$param&quot; $f &quot;--data $data&amp;$CAPTCHA_RESPOND --cookie $c --cookie-jar $c&quot; &quot;GET3&quot;

                if grep -q -i &#039;&lt;div class=&quot;err&quot;&gt;Wrong captcha&#039; $f; then
                        print &quot;&#039;Wrong captcha&#039; was found on the second page&quot;
                        captcha_wrong
                        continue
                elif grep -q -i &#039;&lt;div class=&quot;err&quot;&gt;Expired download session&#039; $f; then
                        print &quot;Expired download session&quot;
                        continue
                elif grep -q  -i &quot;&lt;h3&gt;File Download Link Generated&lt;/h3&gt;&quot; $f ||\
                        grep -q  -i &quot;This direct link will be available for your IP next 8 hours&quot; $f ; then
                        print &quot;Download Link Button gefunden auf die 3. Seite&quot;
                        captcha_correct
                else
                        errmsg &quot;Something goes wrong. Plugin needs update? Please report!&quot;
                        return 1
                fi

                # extract the filesize
                filesize=&quot;$(grep &quot;Size:&quot; $f | sed -e &#039;s/^.*[^0-9]\(\([0-9]*\.[0-9]*\) [K\|M\|G][B\|b]\).*$/\1/&#039;)&quot;
                print &quot;=== Extracted filesize is: $filesize ===&quot;

                # extract the download link
                download_link=&quot;$(grep &quot;var download_url&quot; $f | sed -e &quot;s/\(.*var download_url = &#039;\)\([^&#039;]*\).*/\2/&quot;)&quot;
                if [ -z &quot;$download_link&quot; ]; then
                        errmsg &quot;Der Download url konnte nicht gefunden werden, eine 2. Methode wird versucht...&quot;
                        # try to get the download url from the ahref
                        download_link=&quot;$(grep &#039;&lt;a href=.*http.*&#039;&quot;$filename&quot; $f | sed -e &#039;s/\(.*a href=\&quot;\)\([^\&quot;\]*\)&quot;.*/\2/$
                elif [ -z &quot;$download_link&quot; ]; then
                        # write the log if &quot;$download_link&quot; not found
                        errmsg &quot;FAILED: Could not resolve download URL&quot;
                        return 1
                fi
                print &quot;=== Extracted download_link is: $download_link ===&quot;

                if download &quot;$download_link&quot; &quot;$filename&quot; &quot;--cookie $c --cookie-jar $c&quot;;then
                        succes=1
                        break
                fi
        done
}</code></pre></div><p>Testlinks via PM.</p>]]></description>
			<author><![CDATA[dummy@example.com (genuk)]]></author>
			<pubDate>Sun, 27 Apr 2014 18:35:09 +0000</pubDate>
			<guid>http://ryblog.eu/fritzload/viewtopic.php?pid=1701#p1701</guid>
		</item>
	</channel>
</rss>
