diff --git a/release/app/package-lock.json b/release/app/package-lock.json index 15c9d05..46edfe3 100644 --- a/release/app/package-lock.json +++ b/release/app/package-lock.json @@ -1,12 +1,12 @@ { "name": "streamflix", - "version": "1.3.1", + "version": "1.3.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "streamflix", - "version": "1.3.1", + "version": "1.3.2", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/release/app/package.json b/release/app/package.json index 0c4e9eb..0673ae4 100644 --- a/release/app/package.json +++ b/release/app/package.json @@ -1,6 +1,6 @@ { "name": "streamflix", - "version": "1.3.1", + "version": "1.3.2", "description": "A desktop app for streaming movies, tv series and anime.", "license": "MIT", "author": { diff --git a/src/modules/api/Movies.ts b/src/modules/api/Movies.ts index ff6d270..696daa2 100644 --- a/src/modules/api/Movies.ts +++ b/src/modules/api/Movies.ts @@ -190,7 +190,7 @@ export const getMediaInfo = async (id: string) => { number: episode.number, season: episode.season, thumbnail: episode.image, - description: episode.summary.replaceAll("

", ""), + description: episode.summary, } })) diff --git a/src/renderer/App.tsx b/src/renderer/App.tsx index 7160903..ee86c4b 100644 --- a/src/renderer/App.tsx +++ b/src/renderer/App.tsx @@ -10,7 +10,7 @@ import SettingsModal from './pages/modals/SettingsModal'; import MediaModal from './pages/modals/MediaModal'; import { MediaProvider } from './contexts/MediaContext'; import { useVideoPlayer, VideoPlayerProvider } from './contexts/VideoPlayerContext'; -import { searchMedia } from '../modules/api/Movies'; +import { getMediaInfo, searchMedia } from '../modules/api/Movies'; import TitleBar from '../components/TitleBar'; import { ipcRenderer } from 'electron'; import UpdateModal from './pages/modals/UpdateModal'; @@ -119,57 +119,54 @@ const AppContent = () => { - handleSearch(e.target.value)} - onFocus={() => setIsSearchFocused(true)} - onBlur={() => setIsSearchFocused(false)} - - /> - {searchTerm.length > 2 && (searchResults.length > 0 || isSearching) && isSearchFocused && ( - - {isSearching ? ( - Searching... - ) : ( - searchResults.map((result) => ( - handleResultClick(result)} - alignItems="center" - > - {result.title} - - {result.title} - {result.type} • {result.releaseDate} - - - )) - )} + handleSearch(e.target.value)} + onFocus={() => setIsSearchFocused(true)} + onBlur={() => setTimeout(() => setIsSearchFocused(false), 200)} + /> + {searchTerm.length > 2 && (searchResults.length > 0 || isSearching) && isSearchFocused && ( + + {isSearching ? ( + Searching... + ) : ( + searchResults.map((result) => ( + { + console.log("Result clicked in render:", result.id); + handleResultClick(result); + }} + alignItems="center" + > + {result.title} + + {result.title} + {result.type} • {result.releaseDate} - )} - + + )) + )} + + )} + diff --git a/src/renderer/pages/modals/MediaModal.tsx b/src/renderer/pages/modals/MediaModal.tsx index 5b45fae..7919235 100644 --- a/src/renderer/pages/modals/MediaModal.tsx +++ b/src/renderer/pages/modals/MediaModal.tsx @@ -43,6 +43,7 @@ interface MediaModalProps { } const MediaModal: React.FC = ({ isOpen, onClose, media, onPlayClick }) => { + console.log(media); if (!media) return null; const [selectedRange, setSelectedRange] = useState(0); const [selectedSeason, setSelectedSeason] = useState(1); @@ -301,7 +302,7 @@ const MediaModal: React.FC = ({ isOpen, onClose, media, onPlayC > {episode.title} = ({ isOpen, onClose, media, onPlayC {episode.title} - {episode.description} + {episode.description.replace(/<\/?[^>]+(>|$)/g, "")}