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.
pull/29/head
WScottN 5 years ago committed by GitHub
parent c752b13732
commit 25b65b08d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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'];

Loading…
Cancel
Save