mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-09 12:21:28 +03:00
Fix for custom video folder path
This fixes an issue with video playback when using a different video path setting than the default "video/" . Using the videoFolderPath variable rather than "video/" string.
This commit is contained in:
@@ -1180,7 +1180,7 @@ app.get('/api/video/:id', function(req , res){
|
|||||||
var head;
|
var head;
|
||||||
let optionalParams = url_api.parse(req.url,true).query;
|
let optionalParams = url_api.parse(req.url,true).query;
|
||||||
let id = decodeURIComponent(req.params.id);
|
let id = decodeURIComponent(req.params.id);
|
||||||
let path = "video/" + id + '.mp4';
|
let path = videoFolderPath + id + '.mp4';
|
||||||
if (optionalParams['subName']) {
|
if (optionalParams['subName']) {
|
||||||
let basePath = config_api.getConfigItem('ytdl_subscriptions_base_path');
|
let basePath = config_api.getConfigItem('ytdl_subscriptions_base_path');
|
||||||
const isPlaylist = optionalParams['subPlaylist'];
|
const isPlaylist = optionalParams['subPlaylist'];
|
||||||
|
|||||||
Reference in New Issue
Block a user