OF-Scraper icon indicating copy to clipboard operation
OF-Scraper copied to clipboard

Lots of failed downloads

Open ksulliv25 opened this issue 11 months ago • 1 comments

I'm getting a bunch failed downloads for multiple models. The logs show a bunch of messages like:

2025-01-21 16:38:24:[level.inner:11] PID: 533065 Media:3355480031 Post:1112251390 Traceback (most recent call last): File "lib/python3.12/site-packages/ofscraper/actions/actions/download/managers/alt_download.py", line 135, in alt download_downloader raise E File "pipx/venvs/ofscraper/lib/python3.12/site-packages/ofscraper/actions/actions/download/managers/alt_download.py", line 131, in alt download_downloader item = await self._alt_download_sendreq( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "pipx/venvs/ofscraper/lib/python3.12/site-packages/ofscraper/actions/actions/download/managers/alt_download.py", line 169, in alt download_sendreq raise E File "pipx/venvs/ofscraper/lib/python3.12/site-packages/ofscraper/actions/actions/download/managers/alt_download.py", line 157, in alt download_sendreq base_url = re.sub("[0-9a-z]*.mpd$", "", ele.mpd, re.IGNORECASE) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/re/init.py", line 186, in sub return _compile(pattern, flags).sub(repl, string, count) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: expected string or bytes-like object, got 'NoneType'

2025-01-21 16:38:24:[level.inner:11] PID: 533065 Media:3355480031 Post:1112251390 expected string or bytes-like object, got 'NoneType'

The command I am running is ofscraper --action download --posts timeline --active-subscription -sm 100mb

And my config file: { "main_profile": "main_profile", "metadata": "{configpath}/{profile}/.data/{model_username}{model_id}", "discord": "", "file_options": { "save_location": "Videos/ofscraper", "dir_format": "{model_username}/", "file_format": "{model_username}{post_id}.{ext}", "textlength": 0, "space_replacer": " ", "date": "MM-DD-YYYY", "text_type_default": "letter", "truncation_default": true }, "download_options": { "filter": [ "Videos" ], "auto_resume": true, "system_free_min": 0, "max_post_count": 0, "file_size_max" : 0, "file_size_min" : 0 }, "binary_options": { "ffmpeg": "/usr/bin/ffmpeg" }, "cdm_options": { "private-key": null, "client-id": null, "key-mode-default": "cdrm", "keydb_api": "" }, "performance_options": { "download_sems": 6, "thread_count": 2, "download_limit": 0 }, "content_filter_options": { "block_ads": false, "file_size_max": 0, "file_size_min": 0, "length_max": null, "length_min": null }, "advanced_options": { "code-execution": false, "dynamic-mode-default": "datawhores", "backend": "aio", "downloadbars": false, "cache-mode": "sqlite", "appendlog": true, "custom_values": { "DEVIINT": "https://raw.githubusercontent.com/datawhores/onlyfans-dynamic-rules/new/dynamicRules.json", "FILE_COUNT_PLACEHOLDER" : false }, "sanitize_text": false, "temp_dir": null, "remove_hash_match": null, "infinite_loop_action_mode": false, "enable_auto_after": true, "default_user_list": "main", "default_black_list": "" }, "scripts_options": { "post_download_script": null, "post_script": null }, "responsetype": { "timeline": "Posts", "message": "Messages", "archived": "Archived", "paid": "Messages", "stories": "Stories", "highlights": "Stories", "profile": "Profile", "pinned": "Posts", "streams": "Streams" }, "overwrites": { "audios": {}, "videos": {}, "images": {}, "text": {} } }

ksulliv25 avatar Jan 21 '25 21:01 ksulliv25

CDRM has been down for months. the only reliable DRM options is https://of-scraper.gitbook.io/of-scraper/cdm-options#manual

cjb900 avatar Jan 21 '25 23:01 cjb900

Since their has been no response here I will be closing this

datawhores avatar May 30 '25 13:05 datawhores