mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-05-31 19:18:26 +01:00
chore: remove console.log
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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}`,
|
||||
|
||||
@@ -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") {
|
||||
|
||||
@@ -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]);
|
||||
|
||||
@@ -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]);
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user