Compare commits

..

No commits in common. "13a3cc5ca511bd771d11ba5d05acbbf3cfd14f5b" and "84698dafcabb354d6af8ff7dab127e5e2e8e48b5" have entirely different histories.

10 changed files with 13 additions and 31 deletions

View file

@ -6,10 +6,10 @@ AniX is an unofficial web client for the Android application Anixart. It allows
## Changelog [RU]
- [3.6.0](./public/changelog/3.6.0.md)
- [3.5.0](./public/changelog/3.5.0.md)
- [3.4.0](./public/changelog/3.4.0.md)
- [3.3.0](./public/changelog/3.3.0.md)
- [3.2.3](./public/changelog/3.2.3.md)
[other versions](./public/changelog)

View file

@ -51,6 +51,7 @@ export const ContinueWatching = () => {
...(plannedData.content || []),
...(delayedData.content || []),
];
console.log("loaded data:", data);
const randomizedData = _randomize(data, 3);
setReleaseData(randomizedData);
}
@ -66,6 +67,8 @@ export const ContinueWatching = () => {
)
return <></>;
console.log("randomized data:", releaseData);
return (
<Card>
<div className="flex justify-between py-2 border-b-2 border-black dark:border-white">

View file

@ -105,30 +105,18 @@ export const ReleasePlayerCustom = (props: {
}
const _fetchKodikManifest = async (url: string) => {
// Fetch data through a proxy
const data = await _fetchPlayer(
`https://anix-player.wah.su/?url=${url}&player=kodik`
);
if (data) {
let lowQualityLink = data.links["360"][0].src; // we assume that 360p is always present
if (!lowQualityLink.includes("//")) { // check if link is encrypted, else do nothing
const decryptedBase64 = lowQualityLink.replace(/[a-zA-Z]/g, (e) => {
return String.fromCharCode(
(e <= "Z" ? 90 : 122) >= (e = e.charCodeAt(0) + 18) ? e : e - 26
);
});
lowQualityLink = atob(decryptedBase64);
}
if (lowQualityLink.includes("https://")) { // string the https prefix, since we add it manually
let lowQualityLink = data.links["360"][0].src;
if (lowQualityLink.includes("https://")) {
lowQualityLink = lowQualityLink.replace("https://", "//");
}
let manifest = `https:${lowQualityLink.replace("360.mp4:hls:", "")}`;
let poster = `https:${lowQualityLink.replace("360.mp4:hls:manifest.m3u8", "thumb001.jpg")}`;
if (lowQualityLink.includes("animetvseries")) { // if link includes "animetvseries" we need to construct manifest ourselves
if (lowQualityLink.includes("animetvseries")) {
let blobTxt = "#EXTM3U\n";
if (data.links.hasOwnProperty("240")) {
@ -224,7 +212,7 @@ export const ReleasePlayerCustom = (props: {
}
};
__getInfo();
// eslint-disable-next-line react-hooks/exhaustive-deps
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [props.id, props.token]);
useEffect(() => {
@ -257,7 +245,7 @@ export const ReleasePlayerCustom = (props: {
if (voiceover.selected) {
__getInfo();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [voiceover.selected]);
useEffect(() => {
@ -298,7 +286,7 @@ export const ReleasePlayerCustom = (props: {
if (source.selected) {
__getInfo();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [source.selected]);
useEffect(() => {
@ -361,7 +349,7 @@ export const ReleasePlayerCustom = (props: {
setPlayerError(null);
__getInfo();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [episode.selected]);
return (
@ -449,12 +437,7 @@ export const ReleasePlayerCustom = (props: {
}
</div>
: <iframe
src={playerProps.src}
className="w-full aspect-video"
allowFullScreen={true}
/>
}
: <iframe src={playerProps.src} className="w-full aspect-video" allowFullScreen={true} />}
</div>
<div>

View file

@ -6,10 +6,10 @@ AniX - это неофициальный веб-клиент для Android-пр
## Список изменений
- [3.6.0](/public/changelog/3.6.0.md)
- [3.5.0](/public/changelog/3.5.0.md)
- [3.4.0](/public/changelog/3.4.0.md)
- [3.3.0](/public/changelog/3.3.0.md)
- [3.2.3](/public/changelog/3.2.3.md)
[другие версии](/public/changelog)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 529 KiB

After

Width:  |  Height:  |  Size: 120 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 632 KiB

After

Width:  |  Height:  |  Size: 212 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 731 KiB

After

Width:  |  Height:  |  Size: 204 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 267 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 225 KiB

Before After
Before After

View file

@ -16,7 +16,3 @@
- Изменён блок активности на странице профиля
- Изменены виды блоков "Оценки" и "Недавно просмотренные" на странице профиля с карусели карточек на список
- Изменён вид блока профиля (соц. сети и роли)
## Исправлено
- Получение прямых ссылок на источник кодик в собственном плеере, если кодик отдал зашифрованные ссылки