From b02f23ec8c20eb32351a02bf47a584261074d3f5 Mon Sep 17 00:00:00 2001
From: Bart De Vries <bart@mogwai.be>
Date: Wed, 29 Sep 2021 11:32:50 +0200
Subject: [PATCH 07/10] Fix removeList of DeviceUpdates

The gpodder.net server returns the list of subscriptions to be removed
under the "rem" tag, not "remove" as the API documentation seems to
suggest.  Hence, libmygpo-qt is not picking up any subscription
removals.

As reference, see gpodder.net server source code (line 73):
https://github.com/gpodder/mygpo/blob/master/mygpo/api/advanced/updates.py
---
 src/DeviceUpdates.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/DeviceUpdates.cpp b/src/DeviceUpdates.cpp
index 04653c5..2a8e80f 100644
--- a/src/DeviceUpdates.cpp
+++ b/src/DeviceUpdates.cpp
@@ -93,7 +93,7 @@ bool DeviceUpdatesPrivate::parse( const QVariant& data )
         return false;
     QVariantMap varMap = data.toMap();
     m_add = varMap.value( QLatin1String( "add" ) );
-    m_remove = varMap.value( QLatin1String( "remove" ) );
+    m_remove = varMap.value( QLatin1String( "rem" ) );
     m_update = varMap.value( QLatin1String( "updates" ) );
     if( varMap.value( QLatin1String( "timestamp" ) ).canConvert( QVariant::LongLong ) )
         m_timestamp = varMap.value( QLatin1String( "timestamp" ) ).toLongLong();
-- 
2.47.0

