Skip to content
Permalink
Browse files

Limit downloadspeed, Change Interface

  • Loading branch information...
Insax committed Aug 5, 2017
2 parents 904c74a + eaf3294 commit a3c9ee81c40e7994e697fa18b537ecd14067b568
@@ -6,8 +6,17 @@
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Support\Facades\View;
use Illuminate\Http\Request;
class Controller extends BaseController
{
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
public function __construct(Request $request)
{
$cookies = $request->cookie('projects');
if($cookies)
View::share('cookies', $cookies);
}
}
@@ -0,0 +1,13 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class SubtitleController extends Controller
{
public function index()
{
return view('subtitle.home');
}
}
@@ -54,7 +54,7 @@ public function __construct($url, $loc, $name, $sound, $res, $limit, $start, $en
*/
public function handle()
{
$dl = new YoutubeDl(['continue' => true, 'format' => 'best']);
$dl = new YoutubeDl(['continue' => true, 'format' => 'best', 'rate-limit' => '50K']);
$dl->setDownloadPath($this->loc);
$video = $dl->download($this->url);

0 comments on commit a3c9ee8

Please sign in to comment.
You can’t perform that action at this time.