Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lots of failed downloads #503

Open
ksulliv25 opened this issue Jan 21, 2025 · 1 comment
Open

Lots of failed downloads #503

ksulliv25 opened this issue Jan 21, 2025 · 1 comment

Comments

@ksulliv25
Copy link

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": {}
}
}

@cjb900
Copy link

cjb900 commented Jan 21, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants