mirror of
https://github.com/timendum/Youtube-dl-WebUI.git
synced 2025-03-01 08:03:28 +08:00
logs as txt
This commit is contained in:
parent
96d0e8d5bf
commit
ce4aa097d8
2 changed files with 3 additions and 3 deletions
|
@ -232,7 +232,7 @@ class Downloader
|
||||||
$cmd .= " --restrict-filenames"; // --restrict-filenames is for specials chars
|
$cmd .= " --restrict-filenames"; // --restrict-filenames is for specials chars
|
||||||
if($this->config["log"])
|
if($this->config["log"])
|
||||||
{
|
{
|
||||||
$cmd .= " > ".$this->config["logFolder"]."/$(date +\"%Y-%m-%d_%H-%M-%S-%N\").log";
|
$cmd .= " > ".$this->config["logFolder"]."/$(date +\"%Y-%m-%d_%H-%M-%S-%N\").txt";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -42,7 +42,7 @@ class FileHandler
|
||||||
|
|
||||||
$folder = dirname(__DIR__).'/'.$this->config["logFolder"].'/';
|
$folder = dirname(__DIR__).'/'.$this->config["logFolder"].'/';
|
||||||
|
|
||||||
foreach(glob($folder.'*.log', GLOB_BRACE) as $file)
|
foreach(glob($folder.'*.txt', GLOB_BRACE) as $file)
|
||||||
{
|
{
|
||||||
$content = [];
|
$content = [];
|
||||||
$content["name"] = str_replace($folder, "", $file);
|
$content["name"] = str_replace($folder, "", $file);
|
||||||
|
@ -74,7 +74,7 @@ class FileHandler
|
||||||
$folder = dirname(__DIR__).'/'.$this->config["logFolder"].'/';
|
$folder = dirname(__DIR__).'/'.$this->config["logFolder"].'/';
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
||||||
foreach(glob($folder.'*.log', GLOB_BRACE) as $file)
|
foreach(glob($folder.'*.txt', GLOB_BRACE) as $file)
|
||||||
{
|
{
|
||||||
if($i == $id)
|
if($i == $id)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue