Skip to content

Commit

Permalink
Fix for MacOS users
Browse files Browse the repository at this point in the history
Credit to zoopzorp for the following fix.

Added the correct filename for Linux/Mac users.

Co-Authored-By: zoopzorp <[email protected]>
  • Loading branch information
SecretShell and zoopzorp committed Dec 29, 2019
1 parent f367ff4 commit 6da44a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/onlyfans.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,11 @@ def scrape_array(link, session, directory, username, api_type):
new_dict["postedAt"] = date_string
file_name = link.rsplit('/', 1)[-1]
file_name, ext = os.path.splitext(file_name)
ext = ext.__str__().replace(".", "")
ext = ext.__str__().replace(".", "").split('?')[0]
file_path = reformat(directory[0][1], file_name,
new_dict["text"], ext, date_object, username, format_path, date_format, text_length, maximum_length)
new_dict["directory"] = directory[0][1]
new_dict["filename"] = file_path.rsplit('/', 1)[-1].split("?")[0]
new_dict["filename"] = file_path.rsplit('/', 1)[-1]
new_dict["size"] = size
if size == 0:
media_set[1].append(new_dict)
Expand Down

0 comments on commit 6da44a4

Please sign in to comment.