Jump to content

uploaded.to

- - - - -

[Req] Apktops.com Download Plugin


2 replies to this topic

#1 Mohsen.R

    Advanced Member

  • Members
  • PipPipPip
  • 67 posts
  • Gender:Male
  • Location:Iran

Posted 29 January 2012 - 06:11 PM

link:
http://www.apktops.com/sgsii-weather-widget-11-06-27-01.html


this site give dllink after several redirects and I can't write plugin for this.

Please help me.

#2 _R_V_T_™

    Rapidleecher

  • Super MOD
  • PipPipPipPip
  • 1,927 posts
  • Gender:Male
  • Location:Indonesia

Awards

Contributer Altruistic

Posted 29 January 2012 - 06:47 PM

View PostMohsen.R, on 29 January 2012 - 06:11 PM, said:

link:
http://www.apktops.com/sgsii-weather-widget-11-06-27-01.html


this site give dllink after several redirects and I can't write plugin for this.

Please help me.


what redirect? when you use GetPage at first, you already see the download link...

use regex for that...

HOW TO REPORT BROKEN DOWNLOAD PLUGIN, CLICK THIS



USE YOUR EYES, YOUR BRAIN, YOUR HAND, MOVE YOUR FINGER AND TYPE ANYTHING YOU NEED IN SEARCH FUNCTION BEFORE YOU REQUEST SOME FEATURE, FIX OR ANYTHING RELATED TO RAPIDLEECH SCRIPT! IF YOU CAN'T FIND THINGS YOU NEED FOR, THEN YOU CAN POST THE THREAD ABOUT YOUR REQUEST/PROBLEM IN FORUM!


#3 Mohsen.R

    Advanced Member

  • Members
  • PipPipPip
  • 67 posts
  • Gender:Male
  • Location:Iran

Posted 29 January 2012 - 08:10 PM

View Post_R_V_T_™, on 29 January 2012 - 06:47 PM, said:

what redirect? when you use GetPage at first, you already see the download link...

use regex for that...

Ok
now my code work:
<?php
if (!defined('RAPIDLEECH')) {
	require_once ('index.html');
	exit();
}

class apktops_com extends DownloadClass {
   
	public function Download($link) {
		$page = $this->GetPage($link);
		is_notpresent($page, "<strong>Download From apktop:</strong>", "download link not found!");
		$page = cut_str ($page, '<strong>Download From apktop:</strong>', '</a>');
		$dlink = cut_str ($page, '<a href="', '"');
		$FileName = basename($dlink);
		$this->RedirectDownload($dlink, $FileName, 0, 0, $link);
		exit();
	}
}
?>

Thank you.

Edited by Mohsen.R, 29 January 2012 - 08:12 PM.