Skip to content

Commit

Permalink
test.py: download telegram rather than termux
Browse files Browse the repository at this point in the history
since telegram is supported by far more devices than termux

Signed-off-by: Domenico Iezzi <[email protected]>
  • Loading branch information
Domenico Iezzi committed Oct 13, 2017
1 parent ed2d658 commit b6e3474
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

# SEARCH

apps = server.search('termux', 34, None)
apps = server.search('telegram', 34, None)

print('nb_result: 34')
print('number of results: %d' % len(apps))
Expand All @@ -33,7 +33,7 @@
# DOWNLOAD
docid = apps[0]['docId']
version = apps[0]['versionCode']
print('\nTermux docid is: %s\n' % docid)
print('\nTelegram docid is: %s\n' % docid)
print('\nAttempting to download %s\n' % docid)
fl = server.download(docid, version, progress_bar=True)
with open(docid + '.apk', 'wb') as f:
Expand Down

0 comments on commit b6e3474

Please sign in to comment.