mirror of
https://github.com/timendum/Youtube-dl-WebUI.git
synced 2024-11-10 08:52:36 +08:00
fix on part discrimination
This commit is contained in:
parent
eba6106cf2
commit
17b2a617bc
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ class FileHandler
|
|||
$content["name"] = str_replace($folder, "", $file);
|
||||
$content["size"] = $this->to_human_filesize(filesize($file));
|
||||
|
||||
if (substr($content["name"], '.part') !== '.part') {
|
||||
if (substr($content["name"], -strlen('.part')) !== '.part') {
|
||||
$files[] = $content;
|
||||
}
|
||||
|
||||
|
@ -48,7 +48,7 @@ class FileHandler
|
|||
$content["name"] = str_replace($folder, "", $file);
|
||||
$content["size"] = $this->to_human_filesize(filesize($file));
|
||||
|
||||
if (substr($content["name"], '.part') === '.part') {
|
||||
if (substr($content["name"], -strlen('.part')) === '.part') {
|
||||
$files[] = $content;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue