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

# Cannot Custom SORT/FILTER in CLI

Open toeblister opened this issue 6 months ago • 1 comments

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

toeblister avatar Jun 30 '25 02:06 toeblister

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.

notarealemail avatar Jun 30 '25 03:06 notarealemail