Compare commits

...

3 commits

Author SHA1 Message Date
13a3cc5ca5
chore: update readme and images
Some checks failed
V3 Preview Deployment / Deploy-Preview (push) Has been cancelled
2025-04-07 00:17:34 +05:00
a314305469
chore: remove console.log debug strings 2025-04-06 23:59:18 +05:00
2d4eacfdf8
fix: kodik encrypted links decrypting 2025-04-06 23:57:59 +05:00
10 changed files with 31 additions and 13 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,7 +51,6 @@ export const ContinueWatching = () => {
...(plannedData.content || []),
...(delayedData.content || []),
];
console.log("loaded data:", data);
const randomizedData = _randomize(data, 3);
setReleaseData(randomizedData);
}
@ -67,8 +66,6 @@ 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,18 +105,30 @@ 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;
if (lowQualityLink.includes("https://")) {
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
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 (lowQualityLink.includes("animetvseries")) { // if link includes "animetvseries" we need to construct manifest ourselves
let blobTxt = "#EXTM3U\n";
if (data.links.hasOwnProperty("240")) {
@ -212,7 +224,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(() => {
@ -245,7 +257,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(() => {
@ -286,7 +298,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(() => {
@ -349,7 +361,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 (
@ -437,7 +449,12 @@ 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: 120 KiB

After

Width:  |  Height:  |  Size: 529 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 212 KiB

After

Width:  |  Height:  |  Size: 632 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 204 KiB

After

Width:  |  Height:  |  Size: 731 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 267 KiB

After

Width:  |  Height:  |  Size: 1.8 MiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 225 KiB

After

Width:  |  Height:  |  Size: 1.8 MiB

Before After
Before After

View file

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