Skip to content
This repository has been archived by the owner on Sep 17, 2023. It is now read-only.

Commit

Permalink
Version 1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
N0-0NE-Dev committed May 8, 2023
1 parent c45fbaf commit c89d5e7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 21 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ android {
applicationId "com.n00nedev.nofasel"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 22
versionName "1.2.2"
versionCode 23
versionName "1.2.3"
}

splits {
Expand Down
11 changes: 2 additions & 9 deletions src/components/ActionButtons.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@ import React from "react";
import { Button } from "react-native-paper";
import { FlatList, Linking } from "react-native";

const ActionButtons = ({
showModal,
setType,
theme,
tmdbId,
category,
provider,
}) => {
const ActionButtons = ({ showModal, setType, theme, tmdbId, category }) => {
const defaultBehaviour = label => {
showModal();
setType(label);
Expand Down Expand Up @@ -54,7 +47,7 @@ const ActionButtons = ({
},
];

if (provider == "hdw" || category.includes("arabic")) {
if (category.includes("arabic")) {
const downloadButtonData = {
mode: "outlined",
icon: "tray-arrow-down",
Expand Down
2 changes: 1 addition & 1 deletion src/components/DefaultSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const DefaultSelector = ({
style={({ pressed }) => [
{
backgroundColor: pressed
? theme.colors.elevation.level5
? 'rgba(50, 50, 50, 0.5)'
: null,
},
{
Expand Down
3 changes: 1 addition & 2 deletions src/components/EpisodeCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const EpisodeCard = ({
setSelectedEpisode,
setShowLoading,
setQualities,
provider,
selectedEpisode,
theme,
resume,
Expand All @@ -24,7 +23,7 @@ const EpisodeCard = ({
setSelectedEpisode(source);
setShowLoading(true);
setQualities(null);
if (provider == "fasel" && !(category == "arabic-series")) {
if (!(category == "arabic-series")) {
setWebpageUrl(
`https://embed.scdn.to/video_player?uid=0&vid=${source}`,
);
Expand Down
18 changes: 11 additions & 7 deletions src/screens/SelectScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ import ExpandableText from "../components/ExpandableText";
import ActionButtons from "../components/ActionButtons";
import CastList from "../components/CastList";

const WINDOW_WIDTH = Dimensions.get("window").width;

const getOverview = async (tmdbId, category) => {
return fetch(
`https://api.themoviedb.org/3/${
Expand Down Expand Up @@ -71,8 +73,6 @@ const getCast = async (tmdbId, category) => {
};

const SelectScreen = ({ navigation, route }) => {
const provider = Storage.getString("provider");
const common = require("../data/common.json");
const { id, category } = route.params;
const theme = useTheme();
const useProxy = Storage.getBoolean("useProxy");
Expand Down Expand Up @@ -305,7 +305,7 @@ const SelectScreen = ({ navigation, route }) => {
<ImageBackground
source={{ uri: data["Image Source"] }}
style={{
width: Dimensions.get("window").width,
width: WINDOW_WIDTH,
height: Dimensions.get("window").height * 0.4,
}}>
<LinearGradient
Expand All @@ -327,10 +327,16 @@ const SelectScreen = ({ navigation, route }) => {
style={{
flexDirection: "row",
justifyContent: "space-between",
width: Dimensions.get("window").width,
width: WINDOW_WIDTH,
}}>
<View>
<Text style={{ fontSize: 26, margin: 10, fontWeight: "bold" }}>
<Text
style={{
fontSize: 26,
margin: 10,
fontWeight: "bold",
width: WINDOW_WIDTH * 0.8,
}}>
{data["Title"]}
</Text>
<View style={{ flexDirection: "row" }}>
Expand Down Expand Up @@ -370,7 +376,6 @@ const SelectScreen = ({ navigation, route }) => {
setType={setType}
tmdbId={data["TMDb ID"]}
category={category}
provider={provider}
/>
) : (
<WebView
Expand Down Expand Up @@ -438,7 +443,6 @@ const SelectScreen = ({ navigation, route }) => {
selectedEpisode={selectedEpisode}
setShowLoading={setShowLoading}
setQualities={setQualities}
provider={provider}
theme={theme}
resume={resume}
category={category}
Expand Down

0 comments on commit c89d5e7

Please sign in to comment.