Skip to content

Commit

Permalink
Push the google 401 fix to the master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
matlink committed May 10, 2016
2 parents 1e0aeb1 + 587d896 commit d38923c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion gplaycli/gplaycli.py
Expand Up @@ -24,6 +24,7 @@
from ext_libs.googleplay_api.googleplay import GooglePlayAPI # GooglePlayAPI
from ext_libs.googleplay_api.googleplay import LoginError
from androguard.core.bytecodes import apk as androguard_apk # Androguard
from google.protobuf.message import DecodeError


class GPlaycli(object):
Expand Down Expand Up @@ -66,7 +67,11 @@ def list_folder_apks(self, folder):
return list_of_apks

def get_bulk_details(self, list_of_apks):
results = self.playstore_api.bulkDetails(list_of_apks)
try:
results = self.playstore_api.bulkDetails(list_of_apks)
except DecodeError:
time.sleep(1)
results = self.playstore_api.bulkDetails(list_of_apks)
details = dict()
for pos, apk in enumerate(list_of_apks):
det = results.entry[pos]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -2,7 +2,7 @@
import os

setup(name='GPlayCli',
version='0.1.4',
version='0.1.5',
description='GPlayCli, a Google play downloader command line interface',
author="Matlink",
author_email="matlink@matlink.fr",
Expand Down

0 comments on commit d38923c

Please sign in to comment.