tags 950116 + patch
thanks

Find below a patch extracted from commit 
719793f65a1ae4e91a12fc49d510095f6bf45e0b
which at least fixes the docId issue.

The “Item not found” issue might be because the shitty DB Navigator äpp
requires Android 5 (and thus is unusable anyway)… but with the nonexistent
documentation and bad error messages gplaycli has, who knows…

--- /usr/lib/python3/dist-packages/gplaycli/gplaycli.py.orig
+++ /usr/lib/python3/dist-packages/gplaycli/gplaycli.py
@@ -249,9 +249,9 @@
 
                        if filename is None:
                                if self.append_version:
-                                       filename = detail['docId']+ "-v." + 
detail['versionString'] + ".apk"
+                                       filename = detail['docid']+ "-v." + 
detail['versionString'] + ".apk"
                                else:
-                                       filename = detail['docId']+ ".apk"
+                                       filename = detail['docid']+ ".apk"
 
                        logger.info("%s / %s %s", position, 
len(pkg_todownload), packagename)
 
@@ -300,7 +300,7 @@
                                                for obb_file in additional_data:
                                                        obb_filename = 
"%s.%s.%s.obb" % (obb_file["type"],
                                                                                
                                         obb_file["versionCode"],
-                                                                               
                                         data_iter["docId"])
+                                                                               
                                         data_iter["docid"])
                                                        obb_filename = 
os.path.join(download_folder, obb_filename)
                                                        obb_total_size = 
int(obb_file['file']['total_size'])
                                                        obb_chunk_size = 
int(obb_file['file']['chunk_size'])
@@ -371,7 +371,7 @@
                                          if result['installationSize'] > 0 
else 'N/A',
                                          result['numDownloads'],
                                          result['uploadDate'],
-                                         result['docId'],
+                                         result['docid'],
                                          result['versionCode'],
                                          "%.2f" % 
result["aggregateRating"]["starRating"]
                                          ]

Reply via email to