prof79 / fansly-downloader-ng

Easy-to-use fansly.com content downloading tool. Written in Python and available as a standalone Windows Executable. Enjoy your Fansly content offline anytime, anywhere in the highest possible content resolution! Fully customizable to download in bulk or single: photos, videos & audio from timeline, messages, collection & single posts.
GNU General Public License v3.0
292 stars 16 forks source link

Fix older python versions #27

Closed XelaRellum closed 8 months ago

XelaRellum commented 8 months ago

I had a hard time to get the code to run on the last ubuntu 22.04 lts versions, caused by the use of the newer StrEnum class. Using the extra package is easy and works just as well. Please consider merging this change.

prof79 commented 8 months ago

Thanks but I cannot accept the pull request as a whole - your IDE reformatted/replaced apostrophes throughout the whole codebase making a mess and hiding what this PR actually requires/is supposed to do.

I guess it is only about adding the package to requirements and importing wherever a StrEnum is used? Then I'll do it manually.

XelaRellum commented 8 months ago

Sorry for the mess with the first try. I understand it's an inconvenience with reformat. I have edited my change. Hope this looks better. But maybe, if no pull-requests or feature branches are open, you consider doing a reformat of the whole codebase using a tool like black.