multiupload?

Post your questions about using our Download Station here.
Forum rules
1) This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:
https://myds.synology.com/support/suppo ... p?lang=enu
2) To avoid putting users' DiskStation at risk, please don't paste links to any patches provided by our Support team as we will systematically remove them. Our Support team will provide the correct patch for your DiskStation model.

multiupload?

Postby neilmcg » Tue Mar 29, 2011 2:28 pm

Does anyone have experience of getting multiupload.com links downloaded on a DS?
• Model: DS111; Firmware: DSM 5.0-4493|5; HDD: WD Red 3TB • iTunes Server | Photo | VPN
• Model: DS212; Firmware: DSM 5.0-4493|5; HDD: WD Red 3TB x2 • Server

Netgear WNR3500L
ASUS RT-AC68U
Sonos ZoneBridge | Sonos ZonePlayer ZP90 | Sonos ZonePlayer play:5 [White] x 2 | Apple Airport Express | Revo BLiK DAB

• Model: DS106j; Firmware: 4.0-2166 β; HDD: WD 1TB • Server - http ; (Goetz Tip) based on DS108j x 2
User avatar
neilmcg
Versed
Versed
 
Posts: 202
Joined: Tue Jan 01, 2008 3:36 pm
Location: West Coast, Sweden

Re: multiupload?

Postby Count » Wed Jan 11, 2012 12:26 am

I just developed a hoster script for multiupload.com links.

You need to replace every "private function" with "protected function" in /usr/syno/synoman/webman/modules/DownloadStation/hostscript/hosts/megaupload/megaupload.php

Then create a folder /usr/syno/synoman/webman/modules/DownloadStation/hostscript/hosts/multiupload.

And create these 2 files (INFO + multiupload.php) in the folder you created :

file: INFO
Code: Select all
{
"name": "multiupload",
"hostprefix": "multiupload.com",
"displayname": "Multiupload",
"version": "1.0",
"majorversion": "3",
"minorversion": "2",
"minfirmware": "1834",
"authentication": "yes",
"module": "multiupload.php",
"class": "SynoFileHostingMultiupload",
"description": "Premium or free account not supported."
}


file: multiupload.php
Code: Select all
<?php
/* Copyright (c) 2011 Synology Inc. All rights reserved. */

require_once '/usr/syno/synoman/webman/modules/DownloadStation/hostscript/hosts/megaupload/megaupload.php';
class SynoFileHostingMultiupload extends SynoFileHostingMegaupload {

        public function __construct($Url, $Username, $Password, $HostInfo)
        {
                parent::__construct($Url, $Username, $Password, $HostInfo);
                $test = preg_match('/^http\:\/\/www\.multiupload\.com\/([0-9A-Z]+)$/', $this->Url, $matches);
                if($test){
                        $this->Url = 'http://www.multiupload.com/MU_'.$matches[1];
                }
        }

        protected function DownloadWaiting($IsLoadCookie)
        {
                $this->getMegauploadUrl();
                return parent::DownloadWaiting($IsLoadCookie);
        }

        protected function DownloadPremium($CookieValue)
        {
                $this->getMegauploadUrl();
                return parent::DownloadPremium($CookieValue);
        }

        protected function GetMegauploadUrl()
        {
                $test = preg_match('/^http\:\/\/www\.multiupload\.com\/([0-9A-Z]+)$/', $this->Url, $matches);
                if($test){
                        $this->Url = 'http://www.multiupload.com/MU_'.$matches[1];
                }

                $ch = curl_init($this->Url);
                curl_setopt($ch, CURLOPT_HEADER, 1);
                curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                $c = curl_exec($ch);
                if(preg_match('/Location\s?\:\s?([^\s]+)\s/i', $c, $matches)){
                        $this->Url = $matches[1];
                }
        }
}


Now you can open Download Station and modify your account setting for multiupload.com (it takes a megaupload.com account)

To download a multiupload.com file, copy the link in the textbox of Download Station(for example : http://www.multiupload.com/WODUJT7CBZ ).
Count
I'm New!
I'm New!
 
Posts: 1
Joined: Wed Jan 11, 2012 12:09 am

Re: multiupload?

Postby neilmcg » Wed Jan 11, 2012 1:22 pm

Nice, thanks - I'll try this.
• Model: DS111; Firmware: DSM 5.0-4493|5; HDD: WD Red 3TB • iTunes Server | Photo | VPN
• Model: DS212; Firmware: DSM 5.0-4493|5; HDD: WD Red 3TB x2 • Server

Netgear WNR3500L
ASUS RT-AC68U
Sonos ZoneBridge | Sonos ZonePlayer ZP90 | Sonos ZonePlayer play:5 [White] x 2 | Apple Airport Express | Revo BLiK DAB

• Model: DS106j; Firmware: 4.0-2166 β; HDD: WD 1TB • Server - http ; (Goetz Tip) based on DS108j x 2
User avatar
neilmcg
Versed
Versed
 
Posts: 202
Joined: Tue Jan 01, 2008 3:36 pm
Location: West Coast, Sweden


Return to Download Station

Who is online

Users browsing this forum: stanno and 2 guests