Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

directory_manager_users is failing when user_id == the account owner id #1

Open
eclipseo opened this issue Jul 30, 2023 · 0 comments
Open

Comments

@eclipseo
Copy link

eclipseo commented Jul 30, 2023

I think it happens when you sent stuff to a creator, it tries to download it and can't get the directory for the account owner user id:

  File "/home/bob/.cache/pypoetry/virtualenvs/ultima-scraper-5mAAlBDv-py3.11/lib/python3.11/site-packages/tqdm/asyncio.py", line 79, in gather
    res = [await f for f in cls.as_completed(ifs, loop=loop, timeout=timeout,
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/bob/.cache/pypoetry/virtualenvs/ultima-scraper-5mAAlBDv-py3.11/lib/python3.11/site-packages/tqdm/asyncio.py", line 79, in <listcomp>
    res = [await f for f in cls.as_completed(ifs, loop=loop, timeout=timeout,
           ^^^^^^^
  File "/usr/lib64/python3.11/asyncio/tasks.py", line 605, in _wait_for_one
    return f.result()  # May raise f.exception().
           ^^^^^^^^^^
  File "/home/bob/.cache/pypoetry/virtualenvs/ultima-scraper-5mAAlBDv-py3.11/lib/python3.11/site-packages/tqdm/asyncio.py", line 76, in wrap_awaitable
    return i, await f
              ^^^^^^^
  File "/home/bob/.cache/pypoetry/virtualenvs/ultima-scraper-5mAAlBDv-py3.11/lib/python3.11/site-packages/ultima_scraper_collection/managers/datascraper_manager/datascrapers/onlyfans.py", line 61, in media_scraper
    reformat_item = reformat_manager.prepare_reformat(asset)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/bob/.cache/pypoetry/virtualenvs/ultima-scraper-5mAAlBDv-py3.11/lib/python3.11/site-packages/ultima_scraper_renamer/reformat.py", line 372, in prepare_reformat
    download_path = self.filesystem_manager.get_directory_manager(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/bob/.cache/pypoetry/virtualenvs/ultima-scraper-5mAAlBDv-py3.11/lib/python3.11/site-packages/ultima_scraper_collection/managers/filesystem_manager.py", line 55, in get_directory_manager
    return self.directory_manager_users[user_id]
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
KeyError:  XXX

O think it would be best to avoid downloading such content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant