fix(indexers): OPS new announce format (#862)

* fix ops parsing
extend regex capture group for torrentName var to contain releaseTags var
replace all – in announces with a - for torrentName var

* update ops yaml for new announces

* replace en-dashes with hyphens for OPS
add Sampler to releaseTypeMusic const
sort strings of releaseTypeMusic const alphabetically
shorten import in constants.ts

* replace en-dashes in pattern with . to cover any separator

---------

Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
This commit is contained in:
martylukyy 2023-04-26 20:31:21 +02:00 committed by GitHub
parent 9e2e43477d
commit b0198bc2a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 14 deletions

View file

@ -1,4 +1,4 @@
import { MultiSelectOption } from "../components/inputs/select";
import { MultiSelectOption } from "@/components/inputs/select";
export const resolutions = [
"2160p",
@ -127,19 +127,20 @@ export const QUALITY_MUSIC_OPTIONS: MultiSelectOption[] = qualityMusic.map(v =>
export const releaseTypeMusic = [
"Album",
"Single",
"EP",
"Soundtrack",
"Anthology",
"Compilation",
"Live album",
"Remix",
"Bootleg",
"Interview",
"Mixtape",
"Demo",
"Compilation",
"Concert Recording",
"Demo",
"DJ Mix",
"EP",
"Interview",
"Live album",
"Mixtape",
"Remix",
"Sampler",
"Single",
"Soundtrack",
"Unknown"
];