Commit Graph

101 Commits

Author SHA1 Message Date
Domenico Iezzi
e1acc14424
Dinamically change locale and timezone
During DeviceBuilder initialization, retrieve locale from system using
python `locale` module, and set timezone to `Europe/Berlin`. Added some
helpers to get and set those values at runtime.
2017-10-30 17:30:10 +01:00
Domenico Iezzi
0227cb1cf2 Prepare for v0.2.5
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-22 18:30:52 +02:00
Domenico Iezzi
0a7cca7be7
Throw right kind of error when token expired 2017-10-22 17:25:58 +02:00
Domenico Iezzi
5034244620 Build request params with current device data
Login and Auth parameters are built using device selected in
deviceBuilder object. Also got rid of an unused parameter client_sig.
2017-10-19 17:51:03 +02:00
Domenico Iezzi
dd2d7b64d1 Added timeout to requests
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-19 13:14:27 +02:00
Domenico Iezzi
0793b1f995 Prepare for v0.2.4
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-18 11:33:48 +02:00
Domenico Iezzi
3733ca8d2c Trying to address python2 build error
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-18 00:18:29 +02:00
Domenico Iezzi
14dc73c69f Added env vars in travis-ci script
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-17 18:21:33 +02:00
Domenico Iezzi
a77b362397 Remove email and password from test files
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-17 17:58:24 +02:00
Domenico Iezzi
6857b15d45 Bool flag to control expansion files + cleanup
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-17 17:57:31 +02:00
Domenico Iezzi
b3f28cb0c4 Download optional expansion files (obb files)
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-17 11:41:39 +02:00
Domenico Iezzi
f8702e09ee Prepare for v0.2.3
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-13 19:14:15 +02:00
Domenico Iezzi
9d0d14450b Fix #16
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-13 19:12:06 +02:00
Domenico Iezzi
2ab7ce09c6 Added bacon (OnePlus 1) as default device
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-13 18:20:09 +02:00
Domenico Iezzi
b6e3474a79 test.py: download telegram rather than termux
since telegram is supported by far more devices than termux

Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-13 18:18:22 +02:00
Domenico Iezzi
ed2d658f61 Updated UserAgent string with latest gp version
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-13 18:17:32 +02:00
Domenico Iezzi
5d92b6d0d8 Disabled non-working devices
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-13 18:16:54 +02:00
Domenico Iezzi
d4fb3eba91 Fix #10, raise excpetion rather than sys.exit()
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-13 17:00:10 +02:00
Domenico Iezzi
afe654111e Implemented #10
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-13 11:20:40 +02:00
Domenico Iezzi
cfbdd085cd Prepare for v0.2.2
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-12 19:48:24 +02:00
Domenico Iezzi
5bbdd195a1 Moved header string preparation to config.py
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-12 19:46:20 +02:00
Domenico Iezzi
e1cc147db4 Change pycrytpo dependecy with pycryptodome
Since pycrypto is a dead project, it's better to use an up-to-date
fork with the same API.

Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-12 19:31:22 +02:00
Domenico Iezzi
a9a3b51450 Prepare for v0.2.1
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-11 09:14:21 +02:00
Domenico Iezzi
11de82f91a Added static method for getDeviceReadableNames
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-10 19:23:58 +02:00
Domenico Iezzi
2a5be42203 Helper function to retrieve devices real names
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-10 19:18:20 +02:00
Domenico Iezzi
b8412dd68a review() function returns all fields
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-10 18:55:03 +02:00
Domenico Iezzi
3b37b18542 Code style improvements, checked using flake8
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-10 18:35:40 +02:00
Domenico Iezzi
313d6075e0 Merge pull request #15 from matlink/master
Add ability to fake devices
2017-10-10 09:33:08 +02:00
Matlink
1b47fdbe19 Add ability to fake devices
Signed-off-by: Matlink <matlink@matlink.fr>
2017-10-09 22:18:36 +02:00
Domenico Iezzi
1cdb35128b Merge branch 'master' of github.com:NoMore201/googleplay-api 2017-10-09 17:28:28 +02:00
Domenico Iezzi
3cbc2db3ea Refactored Documentation folder
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-09 17:28:03 +02:00
Domenico Iezzi
bb7818b693 Typo in LICENSE.md 2017-10-09 16:34:06 +02:00
Domenico Iezzi
75b6323f5e Updated LICENSE.md with play-store-api project 2017-10-09 16:32:39 +02:00
Domenico Iezzi
085db88afe Prepare for v0.2
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-08 21:47:21 +02:00
Domenico Iezzi
0cda029a52 improved review() response + added in test.py
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-08 21:25:04 +02:00
Domenico Iezzi
052afcbb0b details() now return a dict, rather than pb object
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-08 19:50:29 +02:00
Domenico Iezzi
dda3a2f39f Removed caching code + better search() behaviour
The old caching code could cause a query to be cached for ever,
returning always the same set of result for a specific query. This is
not a good behaviour, since search results change continuously. In the
future, this behaviour could be reintroduced with a better logic (for
example, check if the query was in cache longer than some hours or days)

Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-08 19:36:36 +02:00
Domenico Iezzi
f4799d3567 Merge pull request #13 from matlink/master
Fix progression slow down
2017-10-08 18:21:13 +02:00
Matlink
c6973ebd5f Fix progression slow down
Signed-off-by: Matlink <matlink@matlink.fr>
2017-10-08 14:43:53 +02:00
Domenico Iezzi
4dca632372 Chanded LICENSE.txt to LICENSE.md 2017-10-08 11:09:21 +02:00
Domenico Iezzi
851cfc3102 Reference original project + GPL3 license
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-08 11:01:50 +02:00
Domenico Iezzi
39e74cc7ad Redistribute code under MIT license
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-08 10:52:39 +02:00
Domenico Iezzi
d23917d044 Prepare for v0.1.5
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-08 10:35:22 +02:00
Domenico Iezzi
cb2dc79344 test.py: fixed wrong method + added progressbar
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-07 19:22:55 +02:00
Domenico Iezzi
73906b104e Merge pull request #9 from matlink/master
Add ability to show download progression
2017-10-07 19:19:55 +02:00
Matlink
79f02dd8ad Add ability to show download progression
Signed-off-by: Matlink <matlink@matlink.fr>
2017-10-07 18:59:23 +02:00
Domenico Iezzi
e4ccae0d43 Prepare for v0.1.4
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-07 18:22:49 +02:00
Domenico Iezzi
ed0c926dc5 Fix #8
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-07 18:21:05 +02:00
Domenico Iezzi
3529c3c736 Moved TODOs from README to github issue 2017-10-07 12:29:51 +02:00
Domenico Iezzi
ea463243fc Prepare for v0.1.3
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-10-06 11:57:25 +02:00