Skip to content

Not working on firmware >= 5.12.1  #12

@aholmes55

Description

@aholmes55

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'},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions