Skip to content
Merged
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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ services:
#- METADATA_URL=https://onepacerr.com/api/v1
#- METADATA_LANGUAGE=en
#- METADATA_POSTER_SET=default
#- METADATA_NFO_LOCKDATA=false
#- METADATA_DISABLE_WEBSOCKET=false
#- METADATA_CHECK_INTERVAL=3600
volumes:
Expand Down Expand Up @@ -493,6 +494,7 @@ If you're not sure what Mount Path Mappings are you can have a read on [TRaSH Gu
| `METADATA_URL` | `https://onepacerr.com/api/v1` | Metadata API url (untested with different ones). |
| `METADATA_LANGUAGE` | `en` | Currently only language supported. |
| `METADATA_POSTER_SET` | `default` | Currently `default` equals `piratezekk`. There are also `official` and `mizzoufan523` available. If a set is missing a poster it uses `default`. |
| `METADATA_NFO_LOCKDATA` | `false` | If `true`, generated `.nfo` files include `<lockdata>true</lockdata>` so media servers can preserve their metadata. |
| `METADATA_DISABLE_WEBSOCKET` | `false` | If `true`, disables WebSocket mode. NOT recommended but available if your setup doesn't allow WebSockets or Long Polling (also supported). |
| `METADATA_CHECK_INTERVAL` | 3600 | Ignored if METADATA_DISABLE_WEBSOCKET is false (default). Seconds between checking for new metadata. |

Expand Down
2 changes: 2 additions & 0 deletions sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ TORRENT_CHECK_INTERVAL=60
#METADATA_LANGUAGE=en
# Currently `default` equals `piratezekk`. There are also `official` and `mizzoufan523` available. If a set is missing a poster it uses `default`.
#METADATA_POSTER_SET=default
# Set to true to write <lockdata>true</lockdata> in generated NFO files.
#METADATA_NFO_LOCKDATA=false
# If `true`, disables WebSocket mode. NOT recommended but available if your setup doesn't allow WebSockets or Long Polling (also supported)
#METADATA_DISABLE_WEBSOCKET=false
# Ignored if METADATA_DISABLE_WEBSOCKET is false (default). Seconds between checking for new metadata.
Expand Down
3 changes: 3 additions & 0 deletions src/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ export default {
METADATA_URL: process.env.METADATA_URL || `https://onepacerr.com/api/v1`,
METADATA_LANGUAGE: process.env.METADATA_LANGUAGE || 'en',
METADATA_POSTER_SET: process.env.METADATA_POSTER_SET || 'default',
METADATA_NFO_LOCKDATA: /true/i.test(
process.env.METADATA_NFO_LOCKDATA || 'false',
),
METADATA_DISABLE_WEBSOCKET: /true/i.test(
process.env.METADATA_DISABLE_WEBSOCKET || 'false',
),
Expand Down
6 changes: 3 additions & 3 deletions src/metadata/metadata.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ export class MetadataController {
//@ts-ignore
mpaa: this.metadata.mpaa || this.metadata.customRating,
customRating: this.metadata.mpaa || this.metadata.customRating,
lockdata: false,
lockdata: environment.METADATA_NFO_LOCKDATA,
namedseason: namedseason,
art: {
poster: path,
Expand Down Expand Up @@ -423,7 +423,7 @@ export class MetadataController {
outline: arc.description,
mpaa: this.metadata.mpaa || this.metadata.customRating,
customRating: this.metadata.mpaa || this.metadata.customRating,
lockdata: false,
lockdata: environment.METADATA_NFO_LOCKDATA,
art: {
poster: path,
},
Expand Down Expand Up @@ -480,7 +480,7 @@ export class MetadataController {

mpaa: this.metadata.mpaa || this.metadata.customRating,
customrating: this.metadata.mpaa || this.metadata.customRating,
lockdata: false,
lockdata: environment.METADATA_NFO_LOCKDATA,
}

if (episode.released)
Expand Down
Loading