You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Script fails to download when the --force-model-unique option is used. This was tested on both standalone and docker installs, with fresh installs (so no changed options).
This fails before creating a folder for the model, but the script catches the error and continues
To Reproduce
Passing the command line option --force-model-unique.
Specifically I have been running ofscraper --daemon 3600 --posts timeline --action download --username ALL --block-ads --force-model-unique, although the rest of the command line doesn't seem to make a difference.
Expected behavior
Media should be downloaded.
Screenshots/Logs
2024-12-25 22:15:43:[filters.previous_download_filter:166] reading database to retrive previous downloads
2024-12-25 22:15:45:[filters.previous_download_filter:171] Downloading unique media for model
2024-12-25 22:15:45:[level.inner:11] failed with exception: 'coroutine' object is not iterable
2024-12-25 22:15:45:[level.inner:11] Traceback (most recent call last):
File "/venv/lib/python3.11/site-packages/your_username/commands/managers/manager.py", line 41, in wrapper
all_media, posts, like_posts = await post_media_process(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/your_username/data/posts/post.py", line 64, in post_media_process
filter_medias = filters.filtermediaFinal(insert_medias, username, model_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/your_username/filters/media/main.py", line 22, in filtermediaFinal
return filterMediaFinalDownload(media, username, model_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/your_username/filters/media/main.py", line 74, in filterMediaFinalDownload
return helpers.previous_download_filter(media, username=username, model_id=model_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/your_username/filters/media/filters.py", line 172, in previous_download_filter
media_ids = set(
^^^^
TypeError: 'coroutine' object is not iterable
Config
Tried with a fresh install and unchanged default config, see reproduction above for command line options used.
System Info
Both:
Ubuntu 24.04.1 LTS
Docker 27.4.0
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
Script fails to download when the
--force-model-unique
option is used. This was tested on both standalone and docker installs, with fresh installs (so no changed options).This fails before creating a folder for the model, but the script catches the error and continues
To Reproduce
Passing the command line option
--force-model-unique
.Specifically I have been running
ofscraper --daemon 3600 --posts timeline --action download --username ALL --block-ads --force-model-unique
, although the rest of the command line doesn't seem to make a difference.Expected behavior
Media should be downloaded.
Screenshots/Logs
Config
Tried with a fresh install and unchanged default config, see reproduction above for command line options used.
System Info
Both:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: