changed keyword order

This commit is contained in:
Pablo Ferreiro 2023-04-27 20:23:23 +02:00
parent e43580f3f9
commit 19a2066fc2
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24
15 changed files with 41 additions and 40 deletions

View file

@ -10,7 +10,7 @@ class ProxyController {
"tiktokcdn.com", "tiktokcdn-us.com", "tiktok.com"
];
static public function stream() {
public static function stream() {
self::checkUrl();
$url = $_GET['url'];
$config['user_agent'] = Misc::env("USER_AGENT", TikScraperUserAgents::DEFAULT);
@ -18,7 +18,7 @@ class ProxyController {
$streamer->url($url);
}
static public function download() {
public static function download() {
self::checkUrl();
$method = Cookies::downloader();
$downloader = new \TikScraper\Download($method);