From 88c0d6e2ea69deed73de65dc64d4262880cf33ea Mon Sep 17 00:00:00 2001 From: mfr69bs Date: Sun, 21 Oct 2012 19:58:16 +0000 Subject: [PATCH] 49_IPCAM.pm: change file extension for JPEG mimetypes to '.jpg' git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1999 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/49_IPCAM.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/FHEM/49_IPCAM.pm b/FHEM/49_IPCAM.pm index 168918ac0..a52eee988 100644 --- a/FHEM/49_IPCAM.pm +++ b/FHEM/49_IPCAM.pm @@ -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")) {