2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-30 18:12:28 +00:00

49_IPCAM.pm: change file extension for JPEG mimetypes to '.jpg'

git-svn-id: https://svn.fhem.de/fhem/trunk@1999 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mfr69bs 2012-10-21 19:58:16 +00:00
parent c3f2d30e33
commit 29162f132e

View File

@ -214,6 +214,7 @@ IPCAM_getSnapshot($) {
readingsBeginUpdate($hash);
if($seq < $seqImages) {
$seq++;
$imageFormat = "JPG" if($imageFormat eq "JPEG");
$lastSnapshot = $name."_snapshot.".lc($imageFormat);
$imageFile = $name."_snapshot".$seq.".".lc($imageFormat);
if(!open(FH, ">$storage/$lastSnapshot")) {