mirror of
https://github.com/WonderAliceUwU/OmniArr.git
synced 2026-11-21 03:35:56 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fb07b27675 | ||
|
|
9f1d50b35d |
No files matched your search
@@ -43,7 +43,7 @@ Create a directory for OmniArr and add this `docker-compose.yml`:
|
|||||||
```yaml
|
```yaml
|
||||||
services:
|
services:
|
||||||
omniarr:
|
omniarr:
|
||||||
image: wonderalice/omniarr:1.2.2
|
image: wonderalice/omniarr:1.2.3
|
||||||
container_name: omniarr
|
container_name: omniarr
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
@@ -90,11 +90,11 @@ the mount loses that state when the container is replaced.
|
|||||||
The current release is available as:
|
The current release is available as:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
wonderalice/omniarr:1.2.2
|
wonderalice/omniarr:1.2.3
|
||||||
wonderalice/omniarr:latest
|
wonderalice/omniarr:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
Pin `1.2.2` in production for repeatable updates. Use `latest` only when you want
|
Pin `1.2.3` in production for repeatable updates. Use `latest` only when you want
|
||||||
Compose to follow the newest published image.
|
Compose to follow the newest published image.
|
||||||
|
|
||||||
## Build locally
|
## Build locally
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
omniarr:
|
omniarr:
|
||||||
image: wonderalice/omniarr:1.2.2
|
image: wonderalice/omniarr:1.2.3
|
||||||
# Para construir desde código fuente en su lugar, descomenta estas líneas:
|
# Para construir desde código fuente en su lugar, descomenta estas líneas:
|
||||||
# build:
|
# build:
|
||||||
# context: .
|
# context: .
|
||||||
|
|||||||
+5
-2
@@ -817,14 +817,17 @@ async function serveApp(pathname: string, response: ServerResponse): Promise<voi
|
|||||||
try {
|
try {
|
||||||
const content = await readFile(filePath);
|
const content = await readFile(filePath);
|
||||||
response.writeHead(200, {
|
response.writeHead(200, {
|
||||||
'Content-Type': contentType(filePath)
|
'Content-Type': contentType(filePath),
|
||||||
|
// Hashed bundles never change; the entry page must always be revalidated so a new release reaches every browser.
|
||||||
|
'Cache-Control': relativePath.startsWith('/assets/') ? 'public, max-age=31536000, immutable' : 'no-cache'
|
||||||
});
|
});
|
||||||
response.end(content);
|
response.end(content);
|
||||||
} catch {
|
} catch {
|
||||||
try {
|
try {
|
||||||
const indexHtml = await readFile(resolve(process.cwd(), 'dist', 'index.html'));
|
const indexHtml = await readFile(resolve(process.cwd(), 'dist', 'index.html'));
|
||||||
response.writeHead(200, {
|
response.writeHead(200, {
|
||||||
'Content-Type': 'text/html; charset=utf-8'
|
'Content-Type': 'text/html; charset=utf-8',
|
||||||
|
'Cache-Control': 'no-cache'
|
||||||
});
|
});
|
||||||
response.end(indexHtml);
|
response.end(indexHtml);
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
+22
-2
@@ -2108,6 +2108,26 @@ function TitleDetailsModal(props: {
|
|||||||
const backgroundImage = details?.backdropUrl || props.card.backdropUrl || props.card.posterUrl
|
const backgroundImage = details?.backdropUrl || props.card.backdropUrl || props.card.posterUrl
|
||||||
const logoUrl = details?.logoUrl || props.card.logoUrl
|
const logoUrl = details?.logoUrl || props.card.logoUrl
|
||||||
const displayTitle = details?.title || props.card.title
|
const displayTitle = details?.title || props.card.title
|
||||||
|
// Titles opened from Continue Watching arrive as a Jellyfin episode card, which
|
||||||
|
// cannot be wishlisted; the series the details resolved to can.
|
||||||
|
const wishlistCard: MediaCard = props.card.mediaType === 'episode' && details?.mediaType === 'series'
|
||||||
|
? {
|
||||||
|
...props.card,
|
||||||
|
id: details.providerId ? `jellyfin-${details.providerId}` : details.id,
|
||||||
|
tmdbId: details.tmdbId ?? props.card.tmdbId,
|
||||||
|
providerId: details.providerId ?? props.card.providerId,
|
||||||
|
title: details.title,
|
||||||
|
subtitle: '',
|
||||||
|
overview: details.overview,
|
||||||
|
mediaType: 'series',
|
||||||
|
posterUrl: details.posterUrl,
|
||||||
|
backdropUrl: details.backdropUrl,
|
||||||
|
logoUrl: details.logoUrl ?? props.card.logoUrl,
|
||||||
|
progress: undefined,
|
||||||
|
secondaryValue: undefined,
|
||||||
|
hoverLabel: undefined
|
||||||
|
}
|
||||||
|
: props.card
|
||||||
const displaySubtitle = details?.subtitle || props.card.subtitle
|
const displaySubtitle = details?.subtitle || props.card.subtitle
|
||||||
const displayOverview = details?.overview || props.card.overview || 'No details available yet.'
|
const displayOverview = details?.overview || props.card.overview || 'No details available yet.'
|
||||||
const displayYear = props.card.releaseDate?.slice(0, 4)
|
const displayYear = props.card.releaseDate?.slice(0, 4)
|
||||||
@@ -2716,7 +2736,7 @@ function TitleDetailsModal(props: {
|
|||||||
</p>
|
</p>
|
||||||
<div className="title-details-summary-header">
|
<div className="title-details-summary-header">
|
||||||
{details?.mediaType !== 'series' ? (
|
{details?.mediaType !== 'series' ? (
|
||||||
<WishlistHeart card={props.card} className="title-season-action title-wishlist-button" divider="after" />
|
<WishlistHeart card={wishlistCard} className="title-season-action title-wishlist-button" divider="after" />
|
||||||
) : null}
|
) : null}
|
||||||
{canPlay && details?.mediaType !== 'series' ? (
|
{canPlay && details?.mediaType !== 'series' ? (
|
||||||
<ActionButton className="title-summary-header-play" onClick={() => setPlayerTarget({ id: playId!, title: playLabel })} variant="play">
|
<ActionButton className="title-summary-header-play" onClick={() => setPlayerTarget({ id: playId!, title: playLabel })} variant="play">
|
||||||
@@ -2838,7 +2858,7 @@ function TitleDetailsModal(props: {
|
|||||||
</div>
|
</div>
|
||||||
<>
|
<>
|
||||||
<div className="title-season-actions">
|
<div className="title-season-actions">
|
||||||
<WishlistHeart card={props.card} className="title-season-action title-wishlist-button" divider="before" />
|
<WishlistHeart card={wishlistCard} className="title-season-action title-wishlist-button" divider="before" />
|
||||||
{shouldShowDownloadSeasonAction || activeSeasonMeta?.isDownloading ? <div className="title-season-divider title-season-action-divider" aria-hidden="true" /> : null}
|
{shouldShowDownloadSeasonAction || activeSeasonMeta?.isDownloading ? <div className="title-season-divider title-season-action-divider" aria-hidden="true" /> : null}
|
||||||
{shouldShowDownloadSeasonAction || activeSeasonMeta?.isDownloading ? (
|
{shouldShowDownloadSeasonAction || activeSeasonMeta?.isDownloading ? (
|
||||||
activeSeasonDownloadStatus === 'downloading' ? (
|
activeSeasonDownloadStatus === 'downloading' ? (
|
||||||
|
|||||||
+4
-3
@@ -6041,10 +6041,11 @@ img {
|
|||||||
color: #ff5c7a;
|
color: #ff5c7a;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Touch screens have no hover, so the heart is always visible there. */
|
/* Phones and touch screens have no hover, and a heart on every poster is noise;
|
||||||
@media (hover: none) {
|
the wishlist stays reachable from the title details. */
|
||||||
|
@media (hover: none), (max-width: 980px) {
|
||||||
.media-wishlist-button {
|
.media-wishlist-button {
|
||||||
opacity: 1;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user