OF-Scraper
OF-Scraper copied to clipboard
# Cannot Custom SORT/FILTER in CLI
Describe the bug
Started ofscraper via CLI and interactive mode. When using [Alt+X] or [CTRL+B], it jumps back to main menu.
Expected behavior
Previous version allows different filtering and sorting methods. e.g. whether still subsribed, free, paid etc.
System Info
- OS: Win 11
- Version 3.13.4
- Installed via pip
I resolved this by patching this file ~/.local/share/uv/tools/ofscraper/lib/python3.12/site-packages/ofscraper/data/models/manager.py
appending the following at the end of the file:
"""Sets up or resets filter state.
Currently a no-op but needed for prompt functionality.
"""
pass
def filterOnly(self) -> List[Model]:
"""Returns filtered models using the current filter settings."""
return self._apply_filters()```
Could be helpful for you, maybe.