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:
WScottN
2020-03-15 00:24:44 -04:00
committed by GitHub
parent c752b13732
commit 25b65b08d5

View File

@@ -1180,7 +1180,7 @@ app.get('/api/video/:id', function(req , res){
var head;
let optionalParams = url_api.parse(req.url,true).query;
let id = decodeURIComponent(req.params.id);
let path = "video/" + id + '.mp4';
let path = videoFolderPath + id + '.mp4';
if (optionalParams['subName']) {
let basePath = config_api.getConfigItem('ytdl_subscriptions_base_path');
const isPlaylist = optionalParams['subPlaylist'];