chore: remove console.log

This commit is contained in:
Fredrik Burmester
2024-08-26 22:17:17 +02:00
parent bbc6f63089
commit 2565bf7353
11 changed files with 2 additions and 27 deletions

View File

@@ -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) {

View File

@@ -51,11 +51,9 @@ export const ItemImage: React.FC<Props> = ({
};
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<Props> = ({
};
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<Props> = ({
};
break;
default:
console.log("case default");
tag = item.ImageTags?.["Primary"];
src = {
uri: `${api.basePath}/Items/${item.Id}/Images/Primary?quality=${quality}&tag=${tag}`,

View File

@@ -22,8 +22,6 @@ export const TouchableItemRouter: React.FC<PropsWithChildren<Props>> = ({
return (
<TouchableOpacity
onPress={() => {
console.log("[0]", item.Type);
Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
if (item.Type === "Series") {

View File

@@ -107,7 +107,7 @@ export const LibraryItemCard: React.FC<Props> = ({ library, ...props }) => {
});
})
.catch((error) => {
console.log("Error getting colors", error);
console.error("Error getting colors", error);
});
}
}, [url]);

View File

@@ -110,12 +110,11 @@ export const SeasonEpisodesCarousel: React.FC<Props> = ({
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]);

View File

@@ -60,7 +60,6 @@ export const SeasonPicker: React.FC<Props> = ({ 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(