Merge branch 'filter_streamtype_for_tv_channels' into 'dev'

Filter streamtype for tv channels

See merge request Shinobi-Systems/Shinobi!178
build-default-monitor-config-from-definitions
Moe 2020-04-06 20:41:30 +00:00
commit 1a8fa925de
1 changed files with 3 additions and 0 deletions

View File

@ -760,6 +760,9 @@ module.exports = function(s,config,lang,app,io){
r.forEach(function(v,n){
var buildStreamURL = function(channelRow,type,channelNumber){
var streamURL
if(req.query.streamtype && req.query.streamtype != type){
return
}
if(channelNumber){channelNumber = '/'+channelNumber}else{channelNumber=''}
switch(type){
case'mjpeg':