Refactors code for different directory structure

Adds some code folds
Fixes genre filters
Fixes title/series search on media