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

Download fails with 'NoneType' is not iterable #18

Closed KyleBro22 closed 8 months ago

KyleBro22 commented 9 months ago

Bug Description

Download fails with the following error

[ Info ] [2024-02-09 | 08:42]: Inspecting Timeline cursor: 12345 [CID: 67890]
[ [42]ERROR ] [2024-02-09 | 08:42]: Unexpected error during parsing Timeline content;
Traceback (most recent call last):
  File "/root/fanslyscraper/fansly-downloader-ng-0.8.4/download/common.py", line 113, in process_download_accessible_media
    media_items += [parse_media_info(state, media_info, post_id)]
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/fanslyscraper/fansly-downloader-ng-0.8.4/media/media.py", line 156, in parse_media_info
    parse_variants(item, content=content, content_type='media', media_info=media_info)
  File "/root/fanslyscraper/fansly-downloader-ng-0.8.4/media/media.py", line 72, in parse_variants
    if not 'Key-Pair-Id' in item.highest_variants_resolution_url:
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable

After pressing enter a couple of times the script started to run again, the error is 6 times in the log with the same text. I ran the script more than once but got the same error.

Expected behavior

The script should run through the timeline and download all files

Actual behavior

The script stops with an error and seems to skip timeline => Missing items: 21 (this may indicate a problem)

Environment Information

User Research

I have done the following:

Additional context

-

prof79 commented 9 months ago

Thanks for all the info, I'm currently ill, I'll come back to you.

KyleBro22 commented 9 months ago

no worries, get well soon

prof79 commented 9 months ago

Hi,

although you were so explicit - I couldn't reproduce maybe because I'm not subscribed to the creator. But I've included a safety check that hopefully should work so please give v0.8.7 a go and give me some feedback. Thanks!

KyleBro22 commented 9 months ago

Hi,

thanks for the quick fix. The error is gone but for some reason Iam still missing the 21 items. Theres no obvious error or skip in the output/log (I also tried --debug but that crashes...) Ill move the existing files and try to redownload all on the weekend to see if that changes anything.

KyleBro22 commented 8 months ago

I moved the files and downloaded everything again with v0.8.17, theres still 21 missing items. Iam not sure what they are but its fine for now, the error mentioned above seems to be resolved.