import type { TVSeries } from '@aiui/core/types/content' export const mockTVShows: TVSeries[] = [ { id: 'tv1', title: 'Mr. Robot', year: 2015, posterUrl: 'https://image.tmdb.org/t/p/w342/oKIBhzZzDX07SoE2bOLhq2EE8rf.jpg', synopsis: 'Follows a young computer programmer who joins an underground hacker group aiming to destroy all debt records.', genres: ['Drama', 'Thriller', 'Crime'], rating: 8.5, seasons: 4, status: 'ended', network: 'USA Network', sources: [{ type: 'plex', name: 'Plex', url: 'plex://play/tv/mr-robot', quality: '1080p', icon: 'plex' }] }, { id: 'tv2', title: 'Black Mirror', year: 2011, posterUrl: 'https://image.tmdb.org/t/p/w342/5UaYsGZOFhjFDwQh6GuLjjA1WlF.jpg', synopsis: 'An anthology series exploring a twisted, high-tech multiverse where humanity\'s greatest innovations collide with its darkest instincts.', genres: ['Sci-Fi', 'Drama', 'Thriller'], rating: 8.1, seasons: 6, status: 'ongoing', network: 'Netflix', sources: [{ type: 'plex', name: 'Plex', url: 'plex://play/tv/black-mirror', quality: '4K', icon: 'plex' }] }, { id: 'tv3', title: 'Severance', year: 2022, posterUrl: 'https://image.tmdb.org/t/p/w342/lFf6LLrQjYFOI3cXMfrGQ2gylPF.jpg', synopsis: 'Mark leads a team at Lumon Industries whose employees have undergone a severance procedure dividing their memories between work and personal lives.', genres: ['Sci-Fi', 'Drama', 'Mystery'], rating: 8.7, seasons: 2, status: 'ongoing', network: 'Apple TV+', sources: [{ type: 'plex', name: 'Plex', url: 'plex://play/tv/severance', quality: '4K HDR', icon: 'plex' }] }, { id: 'tv4', title: 'Breaking Bad', year: 2008, posterUrl: 'https://image.tmdb.org/t/p/w342/ggFHVNu6YYI5L9pCfOacjizRGt.jpg', synopsis: 'A high school chemistry teacher turned methamphetamine manufacturer partners with a former student.', genres: ['Drama', 'Crime', 'Thriller'], rating: 9.5, seasons: 5, status: 'ended', network: 'AMC', sources: [{ type: 'plex', name: 'Plex', url: 'plex://play/tv/breaking-bad', quality: '4K', icon: 'plex' }] }, { id: 'tv5', title: 'The Expanse', year: 2015, posterUrl: 'https://image.tmdb.org/t/p/w342/go2RyYkh2gTRp2EL7sYDWTK1ioi.jpg', synopsis: 'In the 24th century, a group of humans untangle a vast conspiracy that threatens the Solar System\'s fragile state of cold war.', genres: ['Sci-Fi', 'Drama'], rating: 8.5, seasons: 6, status: 'ended', network: 'Amazon', sources: [{ type: 'plex', name: 'Plex', url: 'plex://play/tv/the-expanse', quality: '4K HDR', icon: 'plex' }] }, { id: 'tv6', title: 'Westworld', year: 2016, posterUrl: 'https://image.tmdb.org/t/p/w342/y55oBgC98yJT0aejxbJMzTUlHlh.jpg', synopsis: 'Set at the intersection of the near future and a reimagined past, explore a world in which every human appetite can be indulged.', genres: ['Sci-Fi', 'Drama', 'Mystery'], rating: 8.0, seasons: 4, status: 'ended', network: 'HBO', sources: [{ type: 'plex', name: 'Plex', url: 'plex://play/tv/westworld', quality: '4K HDR', icon: 'plex' }] }, { id: 'tv7', title: 'True Detective', year: 2014, posterUrl: 'https://image.tmdb.org/t/p/w342/aowr4xpLP5sRCL50TkuADomJ20T.jpg', synopsis: 'Seasonal anthology series about police investigations uncovering the personal and professional secrets of those involved.', genres: ['Drama', 'Crime', 'Mystery'], rating: 8.3, seasons: 4, status: 'ongoing', network: 'HBO', sources: [{ type: 'plex', name: 'Plex', url: 'plex://play/tv/true-detective', quality: '4K', icon: 'plex' }] }, { id: 'tv8', title: 'Altered Carbon', year: 2018, posterUrl: 'https://image.tmdb.org/t/p/w342/95IhdCkqp0MI9pGemJMFi3bEqbV.jpg', synopsis: 'Set in a future where consciousness is digitized and stored, a prisoner returns to life in a new body to solve a murder.', genres: ['Sci-Fi', 'Action', 'Drama'], rating: 7.8, seasons: 2, status: 'ended', network: 'Netflix', sources: [{ type: 'plex', name: 'Plex', url: 'plex://play/tv/altered-carbon', quality: '4K HDR', icon: 'plex' }] }, { id: 'tv9', title: 'Chernobyl', year: 2019, posterUrl: 'https://image.tmdb.org/t/p/w342/hlLXt2tOPT6RRnjiUmoxyG1LTFi.jpg', synopsis: 'In April 1986, the city of Chernobyl in the Soviet Union suffers one of the worst nuclear disasters in history.', genres: ['Drama', 'History'], rating: 9.4, seasons: 1, status: 'ended', network: 'HBO', sources: [{ type: 'plex', name: 'Plex', url: 'plex://play/tv/chernobyl', quality: '1080p', icon: 'plex' }] }, { id: 'tv10', title: 'The Wire', year: 2002, posterUrl: 'https://image.tmdb.org/t/p/w342/4lbclFySvugI51fwsyxBTOm4DqK.jpg', synopsis: 'The Baltimore drug scene, as seen through the eyes of drug dealers and law enforcement.', genres: ['Drama', 'Crime'], rating: 9.3, seasons: 5, status: 'ended', network: 'HBO', sources: [{ type: 'plex', name: 'Plex', url: 'plex://play/tv/the-wire', quality: '1080p', icon: 'plex' }] }, { id: 'tv11', title: 'Dark', year: 2017, posterUrl: 'https://image.tmdb.org/t/p/w342/apbrbWs8M9lyOpJYU5WXrpFbk1Z.jpg', synopsis: 'A family saga with a supernatural twist in a German town where the disappearance of children exposes dark secrets.', genres: ['Sci-Fi', 'Drama', 'Mystery'], rating: 8.8, seasons: 3, status: 'ended', network: 'Netflix', sources: [{ type: 'plex', name: 'Plex', url: 'plex://play/tv/dark', quality: '4K', icon: 'plex' }] }, { id: 'tv12', title: 'Silicon Valley', year: 2014, posterUrl: 'https://image.tmdb.org/t/p/w342/dc5r71XI1gD4YwIyoEREagVo0lp.jpg', synopsis: 'Follows the misadventures of introverted programmer Richard and his fellow geeks trying to succeed in Silicon Valley.', genres: ['Comedy'], rating: 8.5, seasons: 6, status: 'ended', network: 'HBO', sources: [{ type: 'plex', name: 'Plex', url: 'plex://play/tv/silicon-valley', quality: '1080p', icon: 'plex' }] }, { id: 'tv13', title: 'Love, Death & Robots', year: 2019, posterUrl: 'https://image.tmdb.org/t/p/w342/dSFlhAo9lgerSXj7WRhp8Ilo0wp.jpg', synopsis: 'Terrifying creatures, wicked surprises and dark comedy converge in this NSFW anthology of animated stories.', genres: ['Animation', 'Sci-Fi', 'Horror'], rating: 8.3, seasons: 3, status: 'ongoing', network: 'Netflix', sources: [{ type: 'plex', name: 'Plex', url: 'plex://play/tv/love-death-robots', quality: '4K HDR', icon: 'plex' }] }, { id: 'tv14', title: 'Devs', year: 2020, posterUrl: 'https://image.tmdb.org/t/p/w342/e1j2oHE9V7bnQIDt3W6IVqaFBm4.jpg', synopsis: 'A young software engineer investigates the secretive development division of her employer.', genres: ['Sci-Fi', 'Drama', 'Thriller'], rating: 7.6, seasons: 1, status: 'ended', network: 'Hulu', sources: [{ type: 'plex', name: 'Plex', url: 'plex://play/tv/devs', quality: '4K', icon: 'plex' }] }, { id: 'tv15', title: 'Halt and Catch Fire', year: 2014, posterUrl: 'https://image.tmdb.org/t/p/w342/vfMFGUbhI2hD7IL3yCf4a0ImTGl.jpg', synopsis: 'Follows the personal computing revolution, chronicling the battles between fictional visionaries.', genres: ['Drama'], rating: 8.4, seasons: 4, status: 'ended', network: 'AMC', sources: [{ type: 'plex', name: 'Plex', url: 'plex://play/tv/halt-and-catch-fire', quality: '1080p', icon: 'plex' }] }, { id: 'tv16', title: 'Stranger Things', year: 2016, posterUrl: 'https://image.tmdb.org/t/p/w342/49WJfeN0moxb9IPfGn8AIqMGskD.jpg', synopsis: 'When a young boy disappears, his mother, a police chief, and friends uncover a mystery involving secret experiments.', genres: ['Sci-Fi', 'Drama', 'Horror'], rating: 8.7, seasons: 4, status: 'ongoing', network: 'Netflix', sources: [{ type: 'plex', name: 'Plex', url: 'plex://play/tv/stranger-things', quality: '4K HDR', icon: 'plex' }] }, { id: 'tv17', title: 'Battlestar Galactica', year: 2004, posterUrl: 'https://image.tmdb.org/t/p/w342/4m0YfBztahZgapdsHNBG2tFu7uB.jpg', synopsis: 'After the Cylons\' attack, the survivors of the Twelve Colonies search for the fabled planet Earth.', genres: ['Sci-Fi', 'Drama', 'Action'], rating: 8.7, seasons: 4, status: 'ended', network: 'Syfy', sources: [{ type: 'plex', name: 'Plex', url: 'plex://play/tv/bsg', quality: '1080p', icon: 'plex' }] }, { id: 'tv18', title: 'Cowboy Bebop', year: 1998, posterUrl: 'https://image.tmdb.org/t/p/w342/m8PDMXZ4JccjOp3Bfk0yvihVE1r.jpg', synopsis: 'A ragtag crew of bounty hunters chases the most dangerous criminals through space.', genres: ['Animation', 'Sci-Fi', 'Action'], rating: 8.9, seasons: 1, status: 'ended', network: 'TV Tokyo', sources: [{ type: 'plex', name: 'Plex', url: 'plex://play/tv/cowboy-bebop', quality: '1080p', icon: 'plex' }] }, { id: 'tv19', title: 'Shogun', year: 2024, posterUrl: 'https://image.tmdb.org/t/p/w342/7O4iVfOMQmdCSxhOg1WnzG1AgYT.jpg', synopsis: 'In Japan in 1600, a collision of civilizations creates conflict between ambitious lords and a shipwrecked English pilot.', genres: ['Drama', 'History', 'War'], rating: 8.7, seasons: 1, status: 'ongoing', network: 'FX', sources: [{ type: 'plex', name: 'Plex', url: 'plex://play/tv/shogun', quality: '4K HDR', icon: 'plex' }] }, { id: 'tv20', title: 'Fringe', year: 2008, posterUrl: 'https://image.tmdb.org/t/p/w342/sY9hg5dLJ93RVOgv7CY1GT1PLR2.jpg', synopsis: 'An FBI agent is forced to work with an institutionalized scientist and his son to investigate fringe events.', genres: ['Sci-Fi', 'Drama', 'Mystery'], rating: 8.4, seasons: 5, status: 'ended', network: 'Fox', sources: [{ type: 'plex', name: 'Plex', url: 'plex://play/tv/fringe', quality: '1080p', icon: 'plex' }] }, { id: 'tv21', title: 'The Mandalorian', year: 2019, posterUrl: 'https://image.tmdb.org/t/p/w342/sWgBv7LV2PRoQgkxwlibdGXKz1S.jpg', synopsis: 'A lone gunfighter in the outer reaches of the galaxy navigates his way through the post-Empire era.', genres: ['Sci-Fi', 'Action', 'Adventure'], rating: 8.4, seasons: 3, status: 'ongoing', network: 'Disney+', sources: [{ type: 'plex', name: 'Plex', url: 'plex://play/tv/the-mandalorian', quality: '4K HDR', icon: 'plex' }] }, ] export function searchTVShows(query: string): TVSeries[] { const q = query.toLowerCase() return mockTVShows.filter( (t) => t.title.toLowerCase().includes(q) || (t.genres ?? []).some((g) => g.toLowerCase().includes(q)) || (t.network ?? '').toLowerCase().includes(q) ) }