librariansync
librariansync copied to clipboard
Not working on firmware >= 5.12.1
Apparently some AuthToken needs to be considered in cc_update.py. A user on the mobileread forums indicated that these are the changes below. I am not much of a programmer so don't know how to do pull requests in github or I'd put it there:
Here is the diff results between the two files:
$ diff original/cc_update.py updated/cc_update.py 0a1,2
from future import absolute_import
12c14 < with open('/etc/prettyversion.txt', 'r') as f:
with open(u"/etc/prettyversion.txt", "r") as f:
25a28,30
def get_session_token(): with open(u"/tmp/session_token", "r") as f: return f.read() 30a36 self.session_token = get_session_token() 111c117 < headers={'content-type': 'application/json'},
headers={"AuthToken": self.session_token, 'content-type': 'application/json'},
Post with fixed script here: https://www.mobileread.com/forums/showpost.php?p=4053527&postcount=488