From c142d95ffa31948450d83f389ff75b66095b92d8 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://svn.fhem.de/fhem/trunk@1999 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/49_IPCAM.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/fhem/FHEM/49_IPCAM.pm b/fhem/FHEM/49_IPCAM.pm index 168918ac0..a52eee988 100644 --- a/fhem/FHEM/49_IPCAM.pm +++ b/fhem/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")) {