fixed #15;added support for downloading via bittorrent files;added new class for getting download statistics
This commit is contained in:
@@ -124,7 +124,7 @@ class Helper
|
||||
'/[’‘‹›‚]/u' => '', // Literally a single quote
|
||||
'/[“”«»„]/u' => '', // Double quote
|
||||
'/ /' => '_', // nonbreaking space(equiv. to 0x160)
|
||||
'/[^a-z0-9_\s.-]/i' => '_',
|
||||
// '/[^a-z0-9_\s.-]/i' => '_',
|
||||
);
|
||||
return preg_replace(array_keys($replace), array_values($replace), $string);
|
||||
}
|
||||
@@ -286,5 +286,9 @@ class Helper
|
||||
{
|
||||
return (bool) self::findBinaryPath('ffmpeg');
|
||||
}
|
||||
// filename without extension
|
||||
public static function getBasicFilename($path){
|
||||
return pathinfo($path, PATHINFO_FILENAME);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user