Open ictos opened 3 months ago
I'm experiencing the same error
+1, I'd guess they changed something in their website and it's breaking the script.
Minor change to the site's media api json structure. Fix pushed.
Thanks!
Seems to be working, but I think it's skipping some video content that I don't have. It's catching up on photos, but some videos are not getting downloaded.
Seems to still crash when downloading stories:
Downloading new media, skipping pre-existing.
Found 15 posts
Downloaded 0 new posts
Found 1 archived
Downloaded 0 new archived
Found 1 stories
Traceback (most recent call last):
File "onlyfans-dl.py", line 321, in <module>
get_content("stories", "/users/" + PROFILE_ID + "/stories")
File "onlyfans-dl.py", line 260, in get_content
download_media(media, MEDIATYPE, postdate, album)
File "onlyfans-dl.py", line 176, in download_media
source = media["files"]["source"]["url"]
~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: 'source'
I just pushed the change for stories as well.
As for the missing videos, it is because they are encrypted. The script cannot circumvent the video encryption. It should download the preview image in its place as a placeholder.
I tried the code from last night and got this...
Traceback (most recent call last):
File "/Volumes/Mando/ofdl/onlyfans-dl.py", line 317, in
I tried the code from last night and got this...
Traceback (most recent call last): File "/Volumes/Mando/ofdl/onlyfans-dl.py", line 317, in get_content("posts", "/users/" + PROFILE_ID + "/posts") File "/Volumes/Mando/ofdl/onlyfans-dl.py", line 260, in get_content download_media(media, MEDIATYPE, postdate, album) File "/Volumes/Mando/ofdl/onlyfans-dl.py", line 195, in download_media extension = source.split('?')[0].split('.') ^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'split'
Same here! Please fix voldrix.
merged
I added another small change that fixes the DRM preview image capture for encrypted videos.
Was working fine at the weekend but whenever I try to run it tonight I get this-
I've tried updating the session & cookie variables but nothing seems to work.