mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-04 23:11:29 +03:00
Added download manager to home page if autoplay is disabled
Fixed bug where the UI attempted to generate a preview URL for placeholder file cards Fixed bug where file renaming was always attempted even when not necessary
This commit is contained in:
@@ -308,7 +308,7 @@ async function downloadQueuedFile(download_uid) {
|
||||
}
|
||||
|
||||
// renames file if necessary due to bug
|
||||
if (!fs.existsSync(output_json['_filename'] && fs.existsSync(output_json['_filename'] + '.webm'))) {
|
||||
if (!fs.existsSync(output_json['_filename']) && fs.existsSync(output_json['_filename'] + '.webm')) {
|
||||
try {
|
||||
fs.renameSync(output_json['_filename'] + '.webm', output_json['_filename']);
|
||||
logger.info('Renamed ' + file_name + '.webm to ' + file_name);
|
||||
|
||||
Reference in New Issue
Block a user