Thema upload.
authorRadek Czajka <rczajka@rczajka.pl>
Mon, 22 May 2023 09:03:01 +0000 (11:03 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Mon, 22 May 2023 09:03:01 +0000 (11:03 +0200)
src/depot/legimi.py

index 86ad6e5..f61bbfd 100644 (file)
@@ -190,6 +190,8 @@ class Legimi:
             "Year": str(date.today().year),
 
             'GenreId': str(self.get_genre(wlbook)),
+            'themaCategories': ';'.join(meta.thema),
+            'thema-search': '',
             'Isbn': '',
             'LanguageLocale': lang_code_3to2(meta.language),
 
@@ -351,7 +353,7 @@ class Legimi:
     def edit(self, legimi_id, data):
         current = {
             'ValidationTrue': 'true',
-            'Is': legimi_id
+            'Id': legimi_id
         }
 
         current.update(data)