Skip to content

Commit

Permalink
fix: pull latest db schema and remove some services
Browse files Browse the repository at this point in the history
  • Loading branch information
AyushSehrawat committed Sep 16, 2024
1 parent 5eac722 commit 2479ea1
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 77 deletions.
6 changes: 1 addition & 5 deletions src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ export const servicesObject: Record<string, string> = {
symlink: 'Symlink',
updater: 'Updater',
plexupdater: 'Plex Updater',
localupdater: 'Local Updater',
realdebrid: 'Real Debrid',
torbox_downloader: 'Torbox Downloader',
alldebrid: 'All Debrid',
post_processing: 'Post Processing',
subliminal: 'Subliminal'
};
Expand All @@ -48,7 +44,7 @@ export const coreServices = [
'post_processing',
'subliminal'
];
export const downloaderServices = ['realdebrid', 'torbox', 'torbox_downloader', 'alldebrid'];
export const downloaderServices = ['torbox'];
export const contentServices = ['mdblist', 'overseerr', 'plex_watchlist', 'listrr', 'trakt'];
export const scrapingServices = [
'torrentio',
Expand Down
144 changes: 72 additions & 72 deletions src/lib/server/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import type { ColumnType } from 'kysely';
import type { ColumnType } from "kysely";

export type Generated<T> =
T extends ColumnType<infer S, infer I, infer U>
? ColumnType<S, I | undefined, U>
: ColumnType<T, T | undefined, T>;
export type Generated<T> = T extends ColumnType<infer S, infer I, infer U>
? ColumnType<S, I | undefined, U>
: ColumnType<T, T | undefined, T>;

export type Json = JsonValue;

export type JsonArray = JsonValue[];

export type JsonObject = {
[K in string]?: JsonValue;
[K in string]?: JsonValue;
};

export type JsonPrimitive = boolean | number | string | null;
Expand All @@ -20,100 +19,101 @@ export type JsonValue = JsonArray | JsonObject | JsonPrimitive;
export type Timestamp = ColumnType<Date, Date | string, Date | string>;

export interface AlembicVersion {
version_num: string;
version_num: string;
}

export interface Episode {
_id: number;
parent_id: number;
_id: number;
parent_id: number;
}

export interface MediaItem {
_id: Generated<number>;
active_stream: Json | null;
aired_at: Timestamp | null;
alternative_folder: string | null;
country: string | null;
file: string | null;
folder: string | null;
genres: Json | null;
guid: string | null;
imdb_id: string | null;
indexed_at: Timestamp | null;
is_anime: boolean | null;
item_id: string;
key: string | null;
language: string | null;
last_state: string | null;
network: string | null;
number: number | null;
overseerr_id: number | null;
requested_at: Timestamp | null;
requested_by: string | null;
scraped_at: Timestamp | null;
scraped_times: number | null;
symlink_path: string | null;
symlinked: boolean | null;
symlinked_at: Timestamp | null;
symlinked_times: number | null;
title: string | null;
tmdb_id: string | null;
tvdb_id: string | null;
type: string;
update_folder: string | null;
year: number | null;
_id: Generated<number>;
active_stream: Json | null;
aired_at: Timestamp | null;
alternative_folder: string | null;
country: string | null;
file: string | null;
folder: string | null;
genres: Json | null;
guid: string | null;
imdb_id: string | null;
indexed_at: Timestamp | null;
is_anime: boolean | null;
item_id: string;
key: string | null;
language: string | null;
last_state: string | null;
network: string | null;
number: number | null;
overseerr_id: number | null;
requested_at: Timestamp | null;
requested_by: string | null;
requested_id: number | null;
scraped_at: Timestamp | null;
scraped_times: number | null;
symlink_path: string | null;
symlinked: boolean | null;
symlinked_at: Timestamp | null;
symlinked_times: number | null;
title: string | null;
tmdb_id: string | null;
tvdb_id: string | null;
type: string;
update_folder: string | null;
year: number | null;
}

export interface Movie {
_id: number;
_id: number;
}

export interface Season {
_id: number;
parent_id: number;
_id: number;
parent_id: number;
}

export interface Show {
_id: number;
_id: number;
}

export interface Stream {
_id: Generated<number>;
infohash: string;
lev_ratio: number;
parsed_title: string;
rank: number;
raw_title: string;
_id: Generated<number>;
infohash: string;
lev_ratio: number;
parsed_title: string;
rank: number;
raw_title: string;
}

export interface StreamBlacklistRelation {
_id: Generated<number>;
media_item_id: number;
stream_id: number;
_id: Generated<number>;
media_item_id: number;
stream_id: number;
}

export interface StreamRelation {
_id: Generated<number>;
child_id: number;
parent_id: number;
_id: Generated<number>;
child_id: number;
parent_id: number;
}

export interface Subtitle {
_id: Generated<number>;
file: string | null;
language: string;
parent_id: number;
_id: Generated<number>;
file: string | null;
language: string;
parent_id: number;
}

export interface DB {
alembic_version: AlembicVersion;
Episode: Episode;
MediaItem: MediaItem;
Movie: Movie;
Season: Season;
Show: Show;
Stream: Stream;
StreamBlacklistRelation: StreamBlacklistRelation;
StreamRelation: StreamRelation;
Subtitle: Subtitle;
alembic_version: AlembicVersion;
Episode: Episode;
MediaItem: MediaItem;
Movie: Movie;
Season: Season;
Show: Show;
Stream: Stream;
StreamBlacklistRelation: StreamBlacklistRelation;
StreamRelation: StreamRelation;
Subtitle: Subtitle;
}
4 changes: 4 additions & 0 deletions src/routes/summary/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@
];
</script>

<svelte:head>
<title>Summary | Riven</title>
</svelte:head>

<Header />

<div class="mt-32 flex w-full flex-col p-8 md:px-24 lg:px-32">
Expand Down

0 comments on commit 2479ea1

Please sign in to comment.