datawhores / OF-Scraper

A completely revamped and redesigned fork, reimagined from scratch based on the original onlyfans-scraper
MIT License
699 stars 59 forks source link

--metadata-update argument not recognized #441

Closed DADESUPER closed 3 months ago

DADESUPER commented 4 months ago

Describe the bug

Using the --metadata-update argument leads to immediate crashing due to "unrecognized argument"

To Reproduce

Steps to reproduce the behavior:

ofscraper_windows_a42cfee.exe --metadata-update

Expected behavior

Per docs: "This will update files on system based on config, if a file does not exist on system it will be marked as not downloaded in data"

Screenshots/Logs

Traceback (most recent call last): File "main.py", line 4, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "ofscraper\runner\load.py", line 6, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "ofscraper\runner\run.py", line 5, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "ofscraper\commands\picker\picker.py", line 1, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "ofscraper\commands\commands\check.py", line 13, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "ofscraper\api\archive.py", line 23, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "ofscraper\utils\constants.py", line 3, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "ofscraper\utils\config\custom.py", line 3, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "ofscraper\utils\config\file.py", line 7, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "ofscraper\utils\config\utils\context.py", line 5, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "ofscraper\prompts\prompts.py", line 14, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "ofscraper\prompts\prompt_groups\actions.py", line 4, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "ofscraper\prompts\promptConvert.py", line 10, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "ofscraper\utils\live\empty.py", line 4, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "ofscraper\utils\console.py", line 16, in File "ofscraper\utils\args\accessors\output.py", line 4, in low_output File "ofscraper\utils\args\accessors\read.py", line 23, in retriveArgs File "ofscraper\utils\args\main.py", line 46, in parse_args File "click\core.py", line 1157, in call File "click\core.py", line 1077, in main File "click\core.py", line 943, in make_context File "cloup\constraints_support.py", line 183, in parse_args File "click\core.py", line 1644, in parse_args File "click\core.py", line 1405, in parse_args File "click\parser.py", line 337, in parse_args File "click\parser.py", line 364, in _process_args_for_options File "click\parser.py", line 514, in _process_opts File "click\parser.py", line 398, in _match_long_opt click.exceptions.NoSuchOption: No such option: --metadata-update [11452] Failed to execute script 'main' due to unhandled exception!

System Info

datawhores commented 3 months ago

It is because it is a subcommand it does not have the same arguments as the main ofscraper command, and it has special arguments only for the ofscraper metadata comand

ofscaper metadata -h

to list possible options

ofscraper metadata --metadata-update
DADESUPER commented 2 months ago

It is because it is a subcommand it does not have the same arguments as the main ofscraper command, and it has special arguments only for the ofscraper metadata comand

ofscaper metadata -h

to list possible options

ofscraper metadata --metadata-update

Alright, thank you. Please note that this page in the docs does not specify the corrext syntax for the command. It omits that it is a subcommand. It should get corrected when possible