logging.debug('found smb mount "//%s/%s" at "%s"' % (server, share, mount_point))
mounts.append({
- 'server': server,
- 'share': share,
- 'username': username,
+ 'server': server.lower(),
+ 'share': share.lower(),
+ 'username': username.lower(),
'mount_point': mount_point
})
should_stop = False # indicates that motion should be stopped immediately
should_start = True # indicates that motion can be started afterwards
for network_share in network_shares:
- key = (network_share['server'], network_share['share'], network_share['username'] or '')
+ key = (network_share['server'].lower(), network_share['share'].lower(), network_share['username'].lower() or '')
if key in mounts: # found
mounts[key] = True
if (this.config['proto'] == 'mjpeg') {
var url = this.config['url'].replace('127.0.0.1', window.location.host.split(':')[0]);
url += (url.indexOf('?') > 0 ? '&' : '?') + '_=' + new Date().getTime();
+
+ /* if (url.indexOf('@') >= 0) {
+ url = url.substring(0, url.indexOf('//') + 2)+ url.substring(url.indexOf('@') + 1);
+ } */
+
this.img.src = url;
}
}