Coder Social home page Coder Social logo

mega-downloader's People

Contributors

andeyashwanth avatar dependabot[bot] avatar peter279k avatar zond80 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mega-downloader's Issues

Error on Big Files

Hi my friend.
If I tried to download big files (I am trying with a file of 1.3Gb) the file didn't download complety, when I saw the file it has about 300 to 500Mb.
Maybe if it possible to add partials download it can be fixed (as some gestor like JDownloader).
Not sure if we can do the partials download.
Thanks =).

Work?

hi i wanted to ask if this code still works?

Folders

Hi my friend.

I check a possible issue, if you enter an URL that is into a folder it has something like this:
https://mega.nz/#F!8ll3lb6R!ErrnqjmvDc1I9CsrJIkExQ!xt9WiT5S

In the function mega_get_folder_info the preg_match separe the string by:
$id = 8ll3lb6R
$key = ErrnqjmvDc1I9CsrJIkExQ!xt9WiT5S

And the correct key is ErrnqjmvDc1I9CsrJIkExQ whitout the last part that represent the folder.

At the moment (not the best solution) y remove the !xt9WiT5S with:
preg_match('/!(.?)!(.)/', $hash, $matches);
$id = $matches[1];
$key = $matches[2];
$pos = strpos($key,'!');
if($pos) $key = substr($key,0,$pos);

But maybe can be another solution because if the upper folder has more files them it going to give all.

See you =).

mega resume support

hi sir i was able to make resume support with mega files. But it's not completely done. The problem is the download manager shows resume capabiltiy . But if i stop and start it again, the resume start from 0. I hope you can help me little bit with this problem

Stream download

Hi sir i wanted to implement this code with mine. But i would like to know that streaming download using your code will give me resume or not.

PHP Notice: Undefined variable: buffer

Hi @ZonD80 , I think your mega.class.php has some bugs.

I noticed that it will output undefined message when I execute the example_file.php

PHP Notice:  Undefined variable: buffer in /home/webserver/mega-downloader/src/mega.class.php on line 203
PHP Notice:  Undefined variable: buffer in /home/webserver/mega-downloader/src/mega.class.php on line 206

Please fix it.

example_folder.php doesn't work now

Hi @ZonD80 , thank you for providing the project.
When I tried to run this PHP program, it's not worked.
It always output error message.

Notice: Undefined offset: 4 in C:\Users\lee\Desktop\mega-downloader\src\mega.class.php on line 266

Call Stack:
    0.0003     233088   1. {main}() C:\Users\lee\Desktop\mega-downloader\example_folder.php:0
    0.0024     403256   2. MEGA->__construct() C:\Users\lee\Desktop\mega-downloader\example_folder.php:6
    0.0027     403536   3. MEGA->mega_get_folder_info() C:\Users\lee\Desktop\mega-downloader\src\mega.class.php:22


Notice: Undefined offset: 5 in C:\Users\lee\Desktop\mega-downloader\src\mega.class.php on line 266

Call Stack:
    0.0003     233088   1. {main}() C:\Users\lee\Desktop\mega-downloader\example_folder.php:0
    0.0024     403256   2. MEGA->__construct() C:\Users\lee\Desktop\mega-downloader\example_folder.php:6
    0.0027     403536   3. MEGA->mega_get_folder_info() C:\Users\lee\Desktop\mega-downloader\src\mega.class.php:22


Notice: Undefined offset: 6 in C:\Users\lee\Desktop\mega-downloader\src\mega.class.php on line 266

Call Stack:
    0.0003     233088   1. {main}() C:\Users\lee\Desktop\mega-downloader\example_folder.php:0
    0.0024     403256   2. MEGA->__construct() C:\Users\lee\Desktop\mega-downloader\example_folder.php:6
    0.0027     403536   3. MEGA->mega_get_folder_info() C:\Users\lee\Desktop\mega-downloader\src\mega.class.php:22


Notice: Undefined offset: 7 in C:\Users\lee\Desktop\mega-downloader\src\mega.class.php on line 266

Call Stack:
    0.0003     233088   1. {main}() C:\Users\lee\Desktop\mega-downloader\example_folder.php:0
    0.0024     403256   2. MEGA->__construct() C:\Users\lee\Desktop\mega-downloader\example_folder.php:6
    0.0027     403536   3. MEGA->mega_get_folder_info() C:\Users\lee\Desktop\mega-downloader\src\mega.class.php:22

No such folder on mega. Maybe it was deleted.

It is possible to fix it ? Thanks.

Vendor autoload is missing?

Warning: require(vendor/autoload.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/mega/src/mega.class.php on line 5

Fatal error: require(): Failed opening required 'vendor/autoload.php' (include_path='.:/Applications/MAMP/bin/php/php5.6.10/lib/php') in /Applications/MAMP/htdocs/mega/src/mega.class.php on line 5

memory issue ?

how to fix ?

ob_clean(): failed to delete buffer. No buffer to delete in

mega.class.php on line 204

How to download folders ?

Hello @ZonD80 , do you know how can I download folders , With your class ?

Here is an example folder i want to download
https://mega.nz/#F!7sUWDarI!PlPZJyGBfk9SCLMdHCt_4g

Big problem

It's not support resumable capability. Can you work on it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.