Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you help me how to make direct download for each quality ? #3

Closed
HandrianD opened this issue Nov 20, 2017 · 4 comments
Closed

Can you help me how to make direct download for each quality ? #3

HandrianD opened this issue Nov 20, 2017 · 4 comments

Comments

@HandrianD
Copy link

pls help me i cant do it get the data url from $gdata .
it always play video on new tab can you help me make direct it to download the video. it will great no more limited file . ty

@HandrianD
Copy link
Author

HandrianD commented Nov 20, 2017

i use like this can you resolve it , it always sow Invalid argument supplied for foreach()

file.'">'.$anu->label.'
'; } ?>

@japnimedev
Copy link
Member

@HandrianD,
from the line:

foreach ($o as $quality => $file) {
     $sources .= '{"type": "video/mp4", "label": "'.$quality.'", "file": "'.$file.'&apps=japnimeserver.com"},';
}

You can change the $sources that make them look like a direct download. For example:
$sources .= '<a href="'.$file.'&apps=japnimeserver.com" target="blank">File Quality: '.$quality.'</a>;

But I'm warning you that when they will download this files, the bandwidth of your server will be used and it may cause some "minimal" problems, I think.

@japnimedev
Copy link
Member

You can use some like bootstrap template for good framework design.

@HandrianD
Copy link
Author

Very nice ty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants