diff --git a/app/_layout.tsx b/app/_layout.tsx index 9d551286..db1a105e 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -76,9 +76,6 @@ function Layout() { if (url) { const { hostname, path, queryParams } = Linking.parse(url); - console.log("Linking ~ ", hostname, path, queryParams); - // @ts-ignore - // router.push("/(auth)/(home)/"); } return ( diff --git a/components/CurrentlyPlayingBar.tsx b/components/CurrentlyPlayingBar.tsx index 9f7c5adb..5fbd7b53 100644 --- a/components/CurrentlyPlayingBar.tsx +++ b/components/CurrentlyPlayingBar.tsx @@ -195,7 +195,6 @@ export const CurrentlyPlayingBar: React.FC = () => { onFullscreenPlayerDidDismiss={() => {}} onFullscreenPlayerDidPresent={() => {}} onPlaybackStateChanged={(e) => { - console.log("onPlaybackStateChanged ~", e.isPlaying); if (e.isPlaying === true) { playVideo(false); } else if (e.isPlaying === false) { diff --git a/components/common/ItemImage.tsx b/components/common/ItemImage.tsx index 184f87c6..f312a16c 100644 --- a/components/common/ItemImage.tsx +++ b/components/common/ItemImage.tsx @@ -51,11 +51,9 @@ export const ItemImage: React.FC = ({ }; break; case "Primary": - console.log("case Primary"); tag = item.ImageTags?.["Primary"]; if (!tag) break; blurhash = item.ImageBlurHashes?.Primary?.[tag]; - console.log("bh: ", blurhash); src = { uri: `${api.basePath}/Items/${item.Id}/Images/Primary?quality=${quality}&tag=${tag}`, @@ -63,11 +61,9 @@ export const ItemImage: React.FC = ({ }; break; case "Thumb": - console.log("case Thumb"); tag = item.ImageTags?.["Thumb"]; if (!tag) break; blurhash = item.ImageBlurHashes?.Thumb?.[tag]; - console.log("bh: ", blurhash); src = { uri: `${api.basePath}/Items/${item.Id}/Images/Backdrop?quality=${quality}&tag=${tag}`, @@ -75,7 +71,6 @@ export const ItemImage: React.FC = ({ }; break; default: - console.log("case default"); tag = item.ImageTags?.["Primary"]; src = { uri: `${api.basePath}/Items/${item.Id}/Images/Primary?quality=${quality}&tag=${tag}`, diff --git a/components/common/TouchableItemRouter.tsx b/components/common/TouchableItemRouter.tsx index f5e52733..6e9a8122 100644 --- a/components/common/TouchableItemRouter.tsx +++ b/components/common/TouchableItemRouter.tsx @@ -22,8 +22,6 @@ export const TouchableItemRouter: React.FC> = ({ return ( { - console.log("[0]", item.Type); - Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light); if (item.Type === "Series") { diff --git a/components/library/LibraryItemCard.tsx b/components/library/LibraryItemCard.tsx index 87de1870..a5d21e11 100644 --- a/components/library/LibraryItemCard.tsx +++ b/components/library/LibraryItemCard.tsx @@ -107,7 +107,7 @@ export const LibraryItemCard: React.FC = ({ library, ...props }) => { }); }) .catch((error) => { - console.log("Error getting colors", error); + console.error("Error getting colors", error); }); } }, [url]); diff --git a/components/series/SeasonEpisodesCarousel.tsx b/components/series/SeasonEpisodesCarousel.tsx index 48bb0363..d9a33304 100644 --- a/components/series/SeasonEpisodesCarousel.tsx +++ b/components/series/SeasonEpisodesCarousel.tsx @@ -110,12 +110,11 @@ export const SeasonEpisodesCarousel: React.FC = ({ if (item?.Type === "Episode") { const index = episodes?.findIndex((ep) => ep.Id === item.Id); if (index !== undefined && index !== -1) { - console.log("Scrolling to index:", index); setTimeout(() => { scrollToIndex(index); }, 400); } else { - console.log("Episode not found in the list:", item.Id); + console.warn("Episode not found in the list:", item.Id); } } }, [episodes, item]); diff --git a/components/series/SeasonPicker.tsx b/components/series/SeasonPicker.tsx index 3781821e..68e3ead5 100644 --- a/components/series/SeasonPicker.tsx +++ b/components/series/SeasonPicker.tsx @@ -60,7 +60,6 @@ export const SeasonPicker: React.FC = ({ item, initialSeasonIndex }) => { if (seasons && seasons.length > 0 && seasonIndex === undefined) { let initialIndex: number | undefined; - console.log("initialSeasonIndex", initialSeasonIndex); if (initialSeasonIndex !== undefined) { // Use the provided initialSeasonIndex if it exists in the seasons const seasonExists = seasons.some( diff --git a/providers/JellyfinProvider.tsx b/providers/JellyfinProvider.tsx index b12fac27..f8df5c86 100644 --- a/providers/JellyfinProvider.tsx +++ b/providers/JellyfinProvider.tsx @@ -97,7 +97,6 @@ export const JellyfinProvider: React.FC<{ children: ReactNode }> = ({ if (response?.status === 200) { setSecret(response?.data?.Secret); setIsPolling(true); - console.log("Initiating quick connect"); return response.data?.Code; } else { throw new Error("Failed to initiate quick connect"); @@ -116,7 +115,6 @@ export const JellyfinProvider: React.FC<{ children: ReactNode }> = ({ `${api.basePath}/QuickConnect/Connect?Secret=${secret}` ); - console.log("Polling quick connect"); if (response.status === 200) { if (response.data.Authenticated) { setIsPolling(false); @@ -133,7 +131,6 @@ export const JellyfinProvider: React.FC<{ children: ReactNode }> = ({ const { AccessToken, User } = authResponse.data; api.accessToken = AccessToken; - console.log("Quick connect authenticated", AccessToken, User.Id); setUser(User); await AsyncStorage.setItem("token", AccessToken); await AsyncStorage.setItem("user", JSON.stringify(User)); @@ -207,7 +204,6 @@ export const JellyfinProvider: React.FC<{ children: ReactNode }> = ({ } } catch (error) { if (axios.isAxiosError(error)) { - console.log("Axios error", error.response?.status); switch (error.response?.status) { case 401: throw new Error("Invalid username or password"); diff --git a/providers/PlaybackProvider.tsx b/providers/PlaybackProvider.tsx index 7ec7fd33..03b6363f 100644 --- a/providers/PlaybackProvider.tsx +++ b/providers/PlaybackProvider.tsx @@ -99,7 +99,6 @@ export const PlaybackProvider: React.FC<{ children: ReactNode }> = ({ if (state && state.item.Id && user?.Id) { const vlcLink = "vlc://" + state?.url; if (vlcLink && settings?.openInVLC) { - console.log(vlcLink, settings?.openInVLC, Platform.OS === "ios"); Linking.openURL("vlc://" + state?.url || ""); return; } @@ -231,8 +230,6 @@ export const PlaybackProvider: React.FC<{ children: ReactNode }> = ({ api?.accessToken }&deviceId=${deviceId}`; - console.log("WS", url); - const newWebSocket = new WebSocket(url); let keepAliveInterval: NodeJS.Timeout | null = null; @@ -243,7 +240,6 @@ export const PlaybackProvider: React.FC<{ children: ReactNode }> = ({ keepAliveInterval = setInterval(() => { if (newWebSocket.readyState === WebSocket.OPEN) { newWebSocket.send(JSON.stringify({ MessageType: "KeepAlive" })); - console.log("KeepAlive message sent"); } }, 30000); }; @@ -254,7 +250,6 @@ export const PlaybackProvider: React.FC<{ children: ReactNode }> = ({ }; newWebSocket.onclose = (e) => { - console.log("WebSocket connection closed:", e.reason); if (keepAliveInterval) { clearInterval(keepAliveInterval); } diff --git a/utils/jellyfin/playstate/reportPlaybackStopped.ts b/utils/jellyfin/playstate/reportPlaybackStopped.ts index eb7278ef..665eb032 100644 --- a/utils/jellyfin/playstate/reportPlaybackStopped.ts +++ b/utils/jellyfin/playstate/reportPlaybackStopped.ts @@ -41,8 +41,6 @@ export const reportPlaybackStopped = async ({ return; } - console.log("reportPlaybackStopped ~", { sessionId, itemId }); - try { const url = `${api.basePath}/PlayingItems/${itemId}`; const params = { diff --git a/utils/jellyfin/session/capabilities.ts b/utils/jellyfin/session/capabilities.ts index d76fbeb7..0c47d869 100644 --- a/utils/jellyfin/session/capabilities.ts +++ b/utils/jellyfin/session/capabilities.ts @@ -52,7 +52,6 @@ export const postCapabilities = async ({ ); return d; } catch (error: any | AxiosError) { - console.log("Failed to mark as not played", error); throw new Error("Failed to mark as not played"); } };