diff --git a/src/main.cpp b/src/main.cpp index 26f4810..6afee8f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -62,7 +62,7 @@ using namespace boost::program_options; using namespace std; -#define ARION_VERSION "0.3.2" +#define ARION_VERSION "0.3.3" //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ diff --git a/src/models/read_meta.cpp b/src/models/read_meta.cpp index 89238b9..f7215c3 100644 --- a/src/models/read_meta.cpp +++ b/src/models/read_meta.cpp @@ -165,6 +165,7 @@ void Read_meta::readIptc() const string iptcCountryNameKey = "Iptc.Application2.CountryName"; const string iptcCountryCodeKey = "Iptc.Application2.CountryCode"; const string iptcSubjectKey = "Iptc.Application2.Subject"; + const string iptcBylineKey = "Iptc.Application2.Byline"; const Exiv2::IptcData &iptcData = *mpIptcData; @@ -180,7 +181,8 @@ void Read_meta::readIptc() readIptcStringByKey(md, iptcCountryNameKey, &mCountryName); readIptcStringByKey(md, iptcCountryCodeKey, &mCountryCode); readIptcStringByKey(md, iptcSubjectKey, &mSubject); - + readIptcStringByKey(md, iptcBylineKey, &mByline); + if (md->key() == iptcKeywordsKey) { string keyword = md->toString(); @@ -255,6 +257,9 @@ void Read_meta::serialize(rapidjson::Writer& writer) co writer.String("copyright"); writer.String(mCopyright); + writer.String("byline"); + writer.String(mByline); + writer.String("city"); writer.String(mCity); diff --git a/src/models/read_meta.hpp b/src/models/read_meta.hpp index 8852108..0afb7bb 100644 --- a/src/models/read_meta.hpp +++ b/src/models/read_meta.hpp @@ -111,6 +111,7 @@ class Read_meta : public Operation bool mPropertyReleased; std::string mInstructions; std::string mSubject; + std::string mByline; // Location std::string mCity;