<?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=286&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Fritz!Load… / Neuer Hoster: 1fichier.com (net/org/fr)]]></title>
		<link>http://ryblog.eu/fritzload/viewtopic.php?id=286</link>
		<description><![CDATA[Die aktuellsten Beiträge in Neuer Hoster: 1fichier.com (net/org/fr).]]></description>
		<lastBuildDate>Tue, 10 Jun 2014 10:36:56 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Antw.: Neuer Hoster: 1fichier.com (net/org/fr)]]></title>
			<link>http://ryblog.eu/fritzload/viewtopic.php?pid=1810#p1810</link>
			<description><![CDATA[<p>Habe ich eingecheckt.</p>]]></description>
			<author><![CDATA[dummy@example.com (rolex0815)]]></author>
			<pubDate>Tue, 10 Jun 2014 10:36:56 +0000</pubDate>
			<guid>http://ryblog.eu/fritzload/viewtopic.php?pid=1810#p1810</guid>
		</item>
		<item>
			<title><![CDATA[Neuer Hoster: 1fichier.com (net/org/fr)]]></title>
			<link>http://ryblog.eu/fritzload/viewtopic.php?pid=1750#p1750</link>
			<description><![CDATA[<p>Ganz frisch:</p><p>Datei &quot;/lib/hoster/onefichier_com.sh&quot;:</p><div class="codebox"><pre class="vscroll"><code class="language-none">#!/bin/ash
# Copyright (c) 2014 genuK/genuk@gmx.net
# Fritzload hosterplugin for http://onefichier.(com\|net\|org\|fr\)

DEBUG_GET=1

onefichier_com_onlineStatus() {
        local param=$1 url fid
        # Try to get a &quot;strict&quot; url
        fid=$(echo $param |\
        sed -n &#039;s|.*://\(www.\)\?\([a-zA-Z0-9]*\).1fichier.\(com\|net\|org\|fr\).*|\2|p&#039;) \
        &amp;&amp; url=&quot;http://$fid.1fichier.com&quot;
        print &quot;=== File id is: $fid ===&quot;
        print &quot;=== File url is: $url ===&quot;

        local checklink=&quot;https://www.1fichier.com/check_links.pl&quot;
        local checkdata=&quot;links[]=$url&quot;
        GET &quot;$checklink&quot; $f &quot;--data $checkdata&quot; &quot;GET-CHECKURL&quot;

        if grep -q -i &quot;NOT FOUND\|BAD LINK&quot; $f; then
                errmsg &quot;=== Link: $param nicht gefunden. Link ungueltig ===&quot;; return 1
        else
                echo &quot;$f&quot;
        fi
}

onefichier_com() {
        local link filename filesize data download_link
        local f=$tmp/response.htm c=$tmp/dl.cookie.txt
        local language=&quot;lg=en&quot;

        # check online availability
        if ! f=&quot;$(onefichier_com_onlineStatus &quot;$param&quot;)&quot;; then
                errmsg &quot;URL-Adresse: Offline ($param)&quot;
                return 1
        fi

        IFS=&#039;;&#039; read link filename filesize &lt;$f
        print &quot;=== Extracted link is: $link ===&quot;
        print &quot;=== Extracted filename is: $filename ===&quot;
        print &quot;=== Extracted filesize is: $filesize ===&quot;

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

                # get the url from downloadlist and load the answer in $f
                GET &quot;$param&quot; $f &quot;--cookie $c --cookie $language --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 grep -qiE &quot;color:red\&quot;&gt;Warning.*you must wait between each downloads&quot; $f; then
                        print &quot;=== Download limit erreicht. Versuche reconnect. ===&quot;
                        { needReconnect; continue; }
                elif grep -qiE &quot;color:red\&quot;&gt;Warning.*you can download only one file at a time&quot; $f; then
                        errmsgWait 0 10 &quot;Ein anderer Download laeuft noch.&quot;
                        continue
                fi
                # get filename if not already done
                if [ -z &quot;$filename&quot; ]; then
                        errmsg &quot;Der filename konnte nicht gefunden werden, eine 2. Methode wird versucht...&quot;
                        filename=&quot;$(grep &#039;Filename :&#039; $f | sed -e &#039;s/.*&lt;td&gt;\(.*[^&lt;\/]\)&lt;\/td&gt;.*/\1/&#039;)&quot;
                elif [ -z &quot;$filename&quot; ]; then
                        # write the log if &quot;$filename&quot; not found
                        errmsg &quot;FAILED: Could not resolve filename&quot;
                        return 1
                fi
                print &quot;=== Extracted filename is: $filename ===&quot;

                # get filesize if not already done
                if [ -z &quot;$filesize&quot; ]; then
                        errmsg &quot;filesize konnte nicht gefunden werden, eine 2. Methode wird versucht...&quot;
                        filesize=&quot;$(grep &#039;Size :&#039; $f | sed -e &#039;s/^.*&lt;td&gt;\(\([0-9]*\.[0-9]*\) [K\|M\|G][B\|b]\)&lt;\/td&gt;.*$/\1/&#039;)&quot;
                fi
                print &quot;=== Extracted filesize is: $filesize ===&quot;
                # extract the form action
                form_action=&quot;$(&lt;$f parse_form_action)&quot;
                if [ -z &quot;$form_action&quot; ]; then
                        # write the log if &quot;$form_action&quot; not found
                        errmsg &quot;FAILED: Could not resolve form_action URL&quot;
                        return 1
                fi
                print &quot;=== Extracted form_action is: $form_action ===&quot;
                data=&quot;id=Download&quot;

                GETN &quot;$form_action&quot; $f &quot;--referer $param --cookie-jar $c --data $data&quot; &quot;GET2&quot;

                download_link=$H_LOCATION
                if [ -z &quot;$download_link&quot; ]; then
                        errmsgWait 0 10 &quot;File link is alive but not currently available, try later.&quot;
                        continue
                fi
                print &quot;=== Extracted download_link is: $download_link ===&quot;

                notalreadyLoaded &quot;$targetdir/$filename&quot; || return
                if download &quot;$download_link&quot; &quot;$filename&quot; &quot;-b $c -c $c&quot;; then
                        succes=1
                        break
                fi
        done
}</code></pre></div><p>Weil die Links in der Form http://[a-zA-Z0-9].1fichier.(com|net|org|fr) sind, noch eine kleine Änderung in /lib/download.sh.<br />In der Funktion getmodulename()<br />die Zeile</p><div class="codebox"><pre><code class="language-none">local modulename=$(echo $hosterdomain | tr &#039;\-.&#039; &#039;_&#039;)</code></pre></div><p>mit</p><div class="codebox"><pre><code class="language-none">        local onefichier=&quot;$(echo $hosterdomain | grep &quot;1fichier\.&quot;)&quot;
        if [ ! -z &quot;$onefichier&quot; ]; then
                local modulename=&quot;onefichier_com&quot;
        else
                local modulename=$(echo $hosterdomain | tr &#039;\-.&#039; &#039;_&#039;)
        fi</code></pre></div><p>ersetzen.</p><p>Grüße&#160; <img src="http://ryblog.eu/fritzload/plugins/ezbbc/style/smilies/big_smile.png" alt="big_smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (genuk)]]></author>
			<pubDate>Fri, 02 May 2014 11:27:09 +0000</pubDate>
			<guid>http://ryblog.eu/fritzload/viewtopic.php?pid=1750#p1750</guid>
		</item>
	</channel>
</rss>
