Refactor: Use same routine for search and episodes