Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7b4a72337c | ||
|
|
1f83d2a747 | ||
|
|
c7a7981116 |
@@ -0,0 +1,6 @@
|
|||||||
|
# FIX CRLF always when developer has not set
|
||||||
|
# Linux/Mac: git config --global core.autocrlf input
|
||||||
|
# Windows: git config --global core.autocrlf true
|
||||||
|
# Auto detect text files and perform LF normalization
|
||||||
|
* text=auto
|
||||||
|
* eol=lf
|
||||||
+5
-2
@@ -1,8 +1,11 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
dist/
|
dist/
|
||||||
# Locally-built @metazla/filename-tools tarball (vendored file: dep; rebuilt from
|
# Locally-built @metazla/filename-tools tarball (vendored file: dep; rebuilt from
|
||||||
# packages/filename-tool — see Dockerfile note). Build artifact, not source.
|
# packages/filename-tool — see Dockerfile note). The tarball itself MUST be
|
||||||
vendor/
|
# committed: the Dockerfile `COPY vendor/` needs it at build time, and CI has no
|
||||||
|
# other source for it. Ignore everything else under vendor/.
|
||||||
|
vendor/*
|
||||||
|
!vendor/filename-tools.tgz
|
||||||
*.log
|
*.log
|
||||||
.env
|
.env
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|||||||
+14
-2
@@ -113,8 +113,20 @@ export async function process(
|
|||||||
// too (meta-watch reads contentKind to detect/aggregate episodes).
|
// too (meta-watch reads contentKind to detect/aggregate episodes).
|
||||||
// Gated with the other title-derived tags so meta-sort (the real
|
// Gated with the other title-derived tags so meta-sort (the real
|
||||||
// file is the authority there, flag off) is unaffected.
|
// file is the authority there, flag off) is unaffected.
|
||||||
if (metadata.videoType === 'tvshow') result.contentKind = 'episode';
|
// `domain` travels with `contentKind` — whoever writes one writes
|
||||||
else if (metadata.videoType === 'movie') result.contentKind = 'movie';
|
// the other (METADATA_KEYS.md §1). It is what every client filters
|
||||||
|
// its wall on, and a record with a kind but no domain is invisible
|
||||||
|
// to all of them. Stamped literally rather than through
|
||||||
|
// filename-tool's `domainForContentKind` because this plugin
|
||||||
|
// vendors that package as a tarball; the two kinds here are the
|
||||||
|
// whole table's video half anyway.
|
||||||
|
if (metadata.videoType === 'tvshow') {
|
||||||
|
result.contentKind = 'episode';
|
||||||
|
result.domain = 'tv';
|
||||||
|
} else if (metadata.videoType === 'movie') {
|
||||||
|
result.contentKind = 'movie';
|
||||||
|
result.domain = 'film';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Object.keys(result).length > 0) {
|
if (Object.keys(result).length > 0) {
|
||||||
|
|||||||
Vendored
BIN
Binary file not shown.
Reference in New Issue
Block a user