fix(chromecast): resolve TypeScript errors and improve type safety

- Fix deviceName property to use friendlyName
- Update disconnect to use stop() instead of endSession()
- Fix null handling in getPosterUrl and useTrickplay
- Remove unused variables and imports
- Add proper null checks in segment skipping
- Disable auto-skip until settings are available
This commit is contained in:
Uruk
2026-01-19 22:13:54 +01:00
parent 45f7923e84
commit b25faefdcf
4 changed files with 19 additions and 21 deletions

View File

@@ -112,10 +112,10 @@ export const formatEpisodeInfo = (
*/
export const getPosterUrl = (
item: {
Type?: string;
ParentBackdropImageTags?: string[];
SeriesId?: string;
Id?: string;
Type?: string | null;
ParentBackdropImageTags?: string[] | null;
SeriesId?: string | null;
Id?: string | null;
},
api: { basePath?: string },
): string | null => {