[office/tellico] src/fetch: itunes: only set binding for ebook

Robby Stephenson <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 5546572ba0a030f72adceae54a35e42d00f19ca6 by Robby Stephenson.
Committed on 01/08/2026 at 00:48.
Pushed by rstephenson into branch 'master'.

itunes: only set binding for ebook

M  +3    -1    src/fetch/itunesfetcher.cpp

https://invent.kde.org/office/tellico/-/commit/5546572ba0a030f72adceae54a35e42d00f19ca6

diff --git a/src/fetch/itunesfetcher.cpp b/src/fetch/itunesfetcher.cpp
index 1bebaf8dd..1982b46a3 100644
--- a/src/fetch/itunesfetcher.cpp
+++ b/src/fetch/itunesfetcher.cpp
@@ -459,7 +459,9 @@ void ItunesFetcher::populateEntry(Data::EntryPtr entry_, const QJsonObject& obj_
     entry_->setField(QStringLiteral("plot"), objValue(obj_, "longDescription"));
   }
   if(collectionType() == Data::Collection::Book) {
-    entry_->setField(QStringLiteral("binding"), i18n("E-Book")); // true for audio books as well?
+    if(objValue(obj_, "kind") == QLatin1String("ebook")) { // not for audiobooks
+      entry_->setField(QStringLiteral("binding"), i18n("E-Book"));
+    }
     entry_->setField(QStringLiteral("pub_year"), objValue(obj_, "releaseDate").left(4));
   } else {
     entry_->setField(QStringLiteral("year"), objValue(obj_, "releaseDate").left(4));
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.