Skip to content

Error upadate cache #45

@marveljo25

Description

@marveljo25
from gpmc import Client
path = "./images.jpeg" # file or dir path
auth_data = "my-auth"
client = Client(auth_data)
client.update_cache(show_progress=True)

Returns this
PS D:\Marvel> & C:/Users/marve/AppData/Local/Programs/Python/Python312/python.exe d:/Marvel/test.py
22:44:01 INFO User: myemail@gmail.com client.py:64
INFO Language: en_AU client.py:65
INFO Cache Initiation client.py:603
Updating local cache: ⠏ Updates: 0 Deletions: 0
Traceback (most recent call last):
File "d:\Marvel\test.py", line 5, in
client.update_cache(show_progress=True)
File "C:\Users\marve\AppData\Local\Programs\Python\Python312\Lib\site-packages\gpmc\client.py", line 604, in update_cache
self._cache_init(progress, task_id)
File "C:\Users\marve\AppData\Local\Programs\Python\Python312\Lib\site-packages\gpmc\client.py", line 639, in _cache_init
state_token, next_page_token, remote_media, _ = parse_db_update(response)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\marve\AppData\Local\Programs\Python\Python312\Lib\site-packages\gpmc\db_update_parser.py", line 135, in parse_db_update
remote_media.extend(_parse_media_item(d) for d in media_items)
File "C:\Users\marve\AppData\Local\Programs\Python\Python312\Lib\site-packages\gpmc\db_update_parser.py", line 135, in
remote_media.extend(_parse_media_item(d) for d in media_items)
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\marve\AppData\Local\Programs\Python\Python312\Lib\site-packages\gpmc\db_update_parser.py", line 30, in _parse_media_item
collection_id=d["2"]["1"]["1"],
~~~~~~^^^^^
KeyError: '1'

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