Skip to content

Commit

Permalink
Potential fix for "medias" key
Browse files Browse the repository at this point in the history
  • Loading branch information
UltimaHoarder committed Feb 16, 2021
1 parent 3f30550 commit 3c7f6b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/onlyfans.py
Original file line number Diff line number Diff line change
Expand Up @@ -1062,8 +1062,10 @@ def media_scraper(results, api: start, subscription: create_subscription, format
directories.append(file_directory)
new_media["linked"] = None
for k, v in subscription.scraped:
if k == api_type or k == "Archived":
if k == api_type:
continue
if k == "Archived":
v = getattr(v, api_type, [])
if v:
for post in v:
found_medias = [x for x in post["medias"]
Expand Down

0 comments on commit 3c7f6b9

Please sign in to comment.