Skip to content

Update prepare_reformat to pass preview data. Fixes #782#783

Merged
UltimaHoarder merged 1 commit intoUltimaHoarder:masterfrom
E0911CD45B19686:patch-3
Feb 4, 2021
Merged

Update prepare_reformat to pass preview data. Fixes #782#783
UltimaHoarder merged 1 commit intoUltimaHoarder:masterfrom
E0911CD45B19686:patch-3

Conversation

@E0911CD45B19686
Copy link
Contributor

@E0911CD45B19686 E0911CD45B19686 commented Feb 4, 2021

File "/usr/src/app/helpers/main_helper.py", line 322, in reformat
    if not prepared_format.preview:
AttributeError: 'prepare_reformat' object has no attribute 'preview'

I traced this back to the prepare_format function not passing through the preview attribute to the reformat function. I just added it the same way 'directory' and 'date_format' are used and this fixed the problem for me.

Closes #782

@UltimaHoarder
Copy link
Owner

Huh, but it's there already

image

@E0911CD45B19686
Copy link
Contributor Author

That's not checked in or pushed to the master branch https://github.com/DIGITALCRIMINAL/OnlyFans/blob/master/classes/prepare_metadata.py#L370

@UltimaHoarder
Copy link
Owner

UltimaHoarder commented Feb 4, 2021

Nvm... It was for a different project, but I forgot to replicate it on this. Thanks 👍

@UltimaHoarder UltimaHoarder merged commit b54f902 into UltimaHoarder:master Feb 4, 2021
AstraLuma pushed a commit to AstraLuma/OnlyFans that referenced this pull request Feb 10, 2023
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

Successfully merging this pull request may close these issues.

Error when scraping with newest release

2 participants