mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-21 18:22:18 +00:00
Merge branch 'p-stream:production' into production
This commit is contained in:
commit
b2cd8ab19e
4 changed files with 26 additions and 2 deletions
|
|
@ -1357,7 +1357,8 @@
|
||||||
"close": "Got it"
|
"close": "Got it"
|
||||||
},
|
},
|
||||||
"traffic": "{{used}} / {{limit}} High-speed Traffic • Resets in {{reset}}",
|
"traffic": "{{used}} / {{limit}} High-speed Traffic • Resets in {{reset}}",
|
||||||
"trafficExplanation": "Febbox gives you 100GB/month of high-speed traffic, the streams might buffer more after you've used up your quota. Depends on your internet speed and the quality of the stream."
|
"trafficExplanation": "Febbox gives you 100GB/month of high-speed traffic, the streams might buffer more after you've used up your quota. Depends on your internet speed and the quality of the stream.",
|
||||||
|
"useMp4": "Enable MP4 streams. May be faster outside of the U.S., but audio tracks cannot be changed."
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"success": "success",
|
"success": "success",
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,7 @@ export function GroupDropdown({
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
{open && (
|
{open && (
|
||||||
<div className="absolute min-w-full z-[150] mt-1 end-0 bg-background-main border border-background-secondary rounded-xl shadow-lg py-1 pb-3 text-sm">
|
<div className="absolute min-w-full z-[150] mt-1 end-0 bg-background-main border border-background-secondary rounded-xl shadow-lg py-1 pb-3 text-sm max-h-80 overflow-auto scrollbar-thin scrollbar-track-background-secondary scrollbar-thumb-type-secondary">
|
||||||
{groups.length === 0 && !showInput && (
|
{groups.length === 0 && !showInput && (
|
||||||
<div className="px-4 py-2 text-type-secondary">
|
<div className="px-4 py-2 text-type-secondary">
|
||||||
{t("home.bookmarks.groups.dropdown.empty")}
|
{t("home.bookmarks.groups.dropdown.empty")}
|
||||||
|
|
|
||||||
|
|
@ -520,6 +520,21 @@ export function FebboxSetup({
|
||||||
})()}
|
})()}
|
||||||
</>
|
</>
|
||||||
) : null}
|
) : null}
|
||||||
|
<div className="flex justify-between items-center gap-4 mt-6">
|
||||||
|
<div className="my-3">
|
||||||
|
<p className="max-w-[32rem] font-medium">
|
||||||
|
{t("fedapi.setup.useMp4")}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<Toggle
|
||||||
|
onClick={() =>
|
||||||
|
preferences.setFebboxUseMp4(!preferences.febboxUseMp4)
|
||||||
|
}
|
||||||
|
enabled={preferences.febboxUseMp4}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</SettingsCard>
|
</SettingsCard>
|
||||||
<Modal id={exampleModal.id}>
|
<Modal id={exampleModal.id}>
|
||||||
<ModalCard>
|
<ModalCard>
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ export interface PreferencesStore {
|
||||||
enableEmbedOrder: boolean;
|
enableEmbedOrder: boolean;
|
||||||
proxyTmdb: boolean;
|
proxyTmdb: boolean;
|
||||||
febboxKey: string | null;
|
febboxKey: string | null;
|
||||||
|
febboxUseMp4: boolean;
|
||||||
debridToken: string | null;
|
debridToken: string | null;
|
||||||
debridService: string;
|
debridService: string;
|
||||||
enableLowPerformanceMode: boolean;
|
enableLowPerformanceMode: boolean;
|
||||||
|
|
@ -55,6 +56,7 @@ export interface PreferencesStore {
|
||||||
setEnableEmbedOrder(v: boolean): void;
|
setEnableEmbedOrder(v: boolean): void;
|
||||||
setProxyTmdb(v: boolean): void;
|
setProxyTmdb(v: boolean): void;
|
||||||
setFebboxKey(v: string | null): void;
|
setFebboxKey(v: string | null): void;
|
||||||
|
setFebboxUseMp4(v: boolean): void;
|
||||||
setdebridToken(v: string | null): void;
|
setdebridToken(v: string | null): void;
|
||||||
setdebridService(v: string): void;
|
setdebridService(v: string): void;
|
||||||
setEnableLowPerformanceMode(v: boolean): void;
|
setEnableLowPerformanceMode(v: boolean): void;
|
||||||
|
|
@ -88,6 +90,7 @@ export const usePreferencesStore = create(
|
||||||
enableEmbedOrder: false,
|
enableEmbedOrder: false,
|
||||||
proxyTmdb: false,
|
proxyTmdb: false,
|
||||||
febboxKey: null,
|
febboxKey: null,
|
||||||
|
febboxUseMp4: false,
|
||||||
debridToken: null,
|
debridToken: null,
|
||||||
debridService: "realdebrid",
|
debridService: "realdebrid",
|
||||||
enableLowPerformanceMode: false,
|
enableLowPerformanceMode: false,
|
||||||
|
|
@ -188,6 +191,11 @@ export const usePreferencesStore = create(
|
||||||
s.febboxKey = v;
|
s.febboxKey = v;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
setFebboxUseMp4(v) {
|
||||||
|
set((s) => {
|
||||||
|
s.febboxUseMp4 = v;
|
||||||
|
});
|
||||||
|
},
|
||||||
setdebridToken(v) {
|
setdebridToken(v) {
|
||||||
set((s) => {
|
set((s) => {
|
||||||
s.debridToken = v;
|
s.debridToken = v;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue