diff --git a/src/source_package_publishing_history.cpp b/src/source_package_publishing_history.cpp index e3ac952..ddcd892 100644 --- a/src/source_package_publishing_history.cpp +++ b/src/source_package_publishing_history.cpp @@ -72,6 +72,10 @@ void source_package_publishing_history::parse_json(const std::string& json_data) if (data.contains("distro_series_link") && data["distro_series_link"].is_string()) { distro_series_link = data["distro_series_link"].get(); } + + if (data.contains("display_name") && data["display_name"].is_string()) { + display_name = data["display_name"].get(); + } } catch (const std::exception& e) { std::cerr << "Error parsing source JSON: " << e.what() << std::endl; } diff --git a/src/source_package_publishing_history.h b/src/source_package_publishing_history.h index 9b944ea..e382d8e 100644 --- a/src/source_package_publishing_history.h +++ b/src/source_package_publishing_history.h @@ -48,6 +48,7 @@ public: bool requestDeletion(const std::string& removal_comment = ""); + std::string display_name; std::string distro_series_link; std::string self_link; std::string source_package_name;