Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(HDrezka): add anime section and new mirror domain #9241

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions websites/H/HDrezka/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
},
"url": [
"rezka.ag",
"hdrezka.ag"
"hdrezka.ag",
"rezka-ua.org"

Check failure

Code scanning / ESLint

Disallow all tabs Error

Unexpected tab character.

Check failure

Code scanning / ESLint

enforce consistent indentation Error

Expected indentation of 4 spaces but found 2 tabs.
],
"version": "1.0.5",
"version": "1.0.6",
"logo": "https://cdn.rcd.gg/PreMiD/websites/H/HDrezka/assets/logo.png",
"thumbnail": "https://cdn.rcd.gg/PreMiD/websites/H/HDrezka/assets/thumbnail.jpeg",
"color": "#DA3D36",
Expand All @@ -22,5 +23,5 @@
"tags": [
"video",
"media"
]

Check failure

Code scanning / ESLint

Require or disallow newline at the end of files Error

Newline required at end of file but not found.
}
}
9 changes: 6 additions & 3 deletions websites/H/HDrezka/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
? 'сериал'
: contentType === 'cartoons'
? 'мультфильм'
: 'чего-то'
: contentType === "animation"

Check failure

Code scanning / ESLint

Enforce the consistent use of either backticks, double, or single quotes Error

Strings must use singlequote.
? 'аниме'

Check failure

Code scanning / ESLint

Disallow all tabs Error

Unexpected tab character.

Check failure

Code scanning / ESLint

Enforce consistent indentation Error

Expected indentation of 10 spaces but found 2.

Check failure

Code scanning / ESLint

Disallow mixed spaces and tabs for indentation Error

Mixed spaces and tabs.
: 'чего-то'

if (document.location.pathname === '/')
presenceData.details = 'На главной странице'
Expand All @@ -26,9 +28,10 @@
document.location.pathname === '/films'
|| document.location.pathname === '/series'
|| document.location.pathname === '/cartoons'
|| document.location.pathname.match(/\/(films|series|cartoons)\//)
|| document.location.pathname === '/animation'
|| document.location.pathname.match(/\/(films|series|cartoons|animation)\//)
) {
if (document.location.pathname.match(/\/(films|series|cartoons)\/.+/)) {
if (document.location.pathname.match(/\/(films|series|cartoons|animation)\/.+/)) {
presenceData.details = `Смотрит ${currentType}`
presenceData.state = `${
document.querySelector('.b-post__title h1')?.textContent
Expand Down
Loading