Sfoglia il codice sorgente

[fixed] Kobo Plus was not working

Kobo Plus was not working due to incorrect entitlement prcessing.

Fixes #15
Fixes #32
TnS-hun 8 mesi fa
parent
commit
8636f1e359
1 ha cambiato i file con 10 aggiunte e 8 eliminazioni
  1. 10 8
      kobo-book-downloader/Commands.py

+ 10 - 8
kobo-book-downloader/Commands.py

@@ -185,14 +185,16 @@ Examples:
 				continue
 
 			bookEntitlement = newEntitlement.get( "BookEntitlement" )
-			if bookEntitlement is not None:
-				# Skip saved previews.
-				if bookEntitlement.get( "Accessibility" ) == "Preview":
-					continue
-
-				# Skip refunded books.
-				if bookEntitlement.get( "IsLocked" ):
-					continue
+			if bookEntitlement is None:
+				continue
+
+			# Skip saved previews.
+			if bookEntitlement.get( "Accessibility" ) == "Preview":
+				continue
+
+			# Skip refunded books.
+			if bookEntitlement.get( "IsLocked" ):
+				continue
 
 			if ( not listAll ) and Commands.__IsBookRead( newEntitlement ):
 				continue