Commit 5e20bc3420d1f397327fcd1965f100bed930b4f4
Merge pull request #350 from biometrics/download_fte
Added fte to download
Showing
1 changed file
with
3 additions
and
0 deletions
openbr/plugins/io/download.cpp
| @@ -111,6 +111,9 @@ private: | @@ -111,6 +111,9 @@ private: | ||
| 111 | 111 | ||
| 112 | dst.file.set("ImageID", QVariant(QCryptographicHash::hash(data, QCryptographicHash::Md5).toHex())); | 112 | dst.file.set("ImageID", QVariant(QCryptographicHash::hash(data, QCryptographicHash::Md5).toHex())); |
| 113 | dst.file.set("AlgorithmID", data.isEmpty() ? 0 : (mode == Decoded ? 5 : 3)); | 113 | dst.file.set("AlgorithmID", data.isEmpty() ? 0 : (mode == Decoded ? 5 : 3)); |
| 114 | + } else { | ||
| 115 | + dst.file.fte = true; | ||
| 116 | + qWarning("Error opening %s", qPrintable(url)); | ||
| 114 | } | 117 | } |
| 115 | } | 118 | } |
| 116 | }; | 119 | }; |