|
181 | 181 | if( data.photo.camera !== undefined ) { newItem.exif.model = data.photo.camera; }
|
182 | 182 | // Exif - flash
|
183 | 183 | var flash = data.photo.exif.filter(function(exif) {return exif.tag == "Flash"})
|
184 |
| - if( flash.length == 1 ) { newItem.exif.flash = flash[0].raw._content; } |
| 184 | + if( flash.length >= 1 ) { newItem.exif.flash = flash[0].raw._content; } |
185 | 185 | // Exif - focallength
|
186 | 186 | var fl = data.photo.exif.filter(function(exif) {return exif.tag == "FocalLength"});
|
187 |
| - if( fl.length == 1 ) { newItem.exif.focallength = fl[0].raw._content; } |
| 187 | + if( fl.length >= 1 ) { newItem.exif.focallength = fl[0].raw._content; } |
188 | 188 | // Exif - fstop
|
189 | 189 | var fstop = data.photo.exif.filter(function(exif) {return exif.tag == "FNumber"});
|
190 |
| - if( fstop.length == 1 ) { newItem.exif.fstop = fstop[0].raw._content; } |
| 190 | + if( fstop.length >= 1 ) { newItem.exif.fstop = fstop[0].raw._content; } |
191 | 191 | // Exif - exposure
|
192 | 192 | var exposure = data.photo.exif.filter(function(exif) {return exif.tag == "ExposureTime"});
|
193 |
| - if( exposure.length == 1 ) { newItem.exif.exposure = exposure[0].raw._content; } |
| 193 | + if( exposure.length >= 1 ) { newItem.exif.exposure = exposure[0].raw._content; } |
194 | 194 | // Exif - iso
|
195 | 195 | var iso = data.photo.exif.filter(function(exif) {return exif.tag == "ISO"});
|
196 |
| - if( iso.length == 1 ) { newItem.exif.iso = iso[0].raw._content; } |
| 196 | + if( iso.length >= 1 ) { newItem.exif.iso = iso[0].raw._content; } |
197 | 197 | // Exif - time
|
198 | 198 | var time = data.photo.exif.filter(function(exif) {return exif.tag == "DateTimeOriginal"});
|
199 |
| - if( time.length == 1 ) { newItem.exif.time = time[0].raw._content; } |
| 199 | + if( time.length >= 1 ) { newItem.exif.time = time[0].raw._content; } |
200 | 200 | // Exif - location
|
201 | 201 | var location = data.photo.exif.filter(function(exif) {return exif.tag == "LOLcation"});
|
202 |
| - if( location.length == 1 ) { newItem.exif.location = location[0].raw._content; } |
| 202 | + if( location.length >= 1 ) { newItem.exif.location = location[0].raw._content; } |
203 | 203 |
|
204 | 204 | // author
|
205 | 205 | var author = data.photo.exif.filter(function(exif) {return exif.tag == "OwnerName"});
|
|
0 commit comments