feat: add online fix as repacker

This commit is contained in:
João Martins
2024-04-19 22:53:58 -03:00
parent 00011cf618
commit b2990039a0
10 changed files with 450 additions and 19 deletions

View File

@@ -49,6 +49,8 @@ export const xatabFormatter = (title: string) =>
.replace(/(v\.?([0-9]| )+)+([0-9]|\.|-|_|\/|[a-zA-Z]| )+/, "");
export const tinyRepacksFormatter = (title: string) => title;
export const onlinefixFormatter = (title: string) =>
title.replace("по сети", "").trim();
export const gogFormatter = (title: string) =>
title.replace(/(v\.[0-9]+|v[0-9]+\.|v[0-9]{4})+.+/, "");

View File

@@ -11,6 +11,7 @@ import {
xatabFormatter,
tinyRepacksFormatter,
gogFormatter,
onlinefixFormatter,
} from "./formatters";
import { months, repackers } from "../constants";
@@ -40,6 +41,7 @@ export const repackerFormatter: Record<
CPG: (title: string) => title,
TinyRepacks: tinyRepacksFormatter,
GOG: gogFormatter,
onlinefix: onlinefixFormatter,
};
export const formatUploadDate = (str: string) => {