Merge pull request #29 from Xanthus1/custom-videopath-fix

Fix for custom video folder path
pull/31/head
Tzahi12345 5 years ago committed by GitHub
commit bcd706f477
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