Commit graph

10 commits

Author SHA1 Message Date
Christian Benincasa
769b05d201
refactor: add media_source_id to relevant entities (#1106)
We should be referencing media_sources by their ID on programs,
external_ids, etc. This enables us to use proper foreign keys for
referential integrity at the DB level, not worry about unique names for
media sources, and simplifies a lot of the code relating to media source
deletion and the cleanup thereafter.

This change also introduces the DBContext, which should allow for
arbitrarily calling other DB accessor functions when within transactions
and not deadlocking the connection to the DB.
2025-02-28 15:53:29 -05:00
Christian Benincasa
846ed27498
feat: support Emby as a media source (#1101) 2025-02-18 13:21:32 -05:00
Christian Benincasa
491fc2e2dc
Revert "feat: support Emby as a media source (#1085)" (#1099)
This reverts commit a918176a3b.
2025-02-17 07:54:44 -05:00
Christian Benincasa
a918176a3b
feat: support Emby as a media source (#1085) 2025-02-17 07:22:15 -05:00
Christian Benincasa
c9c3130d70
refactor: use bun for runtime and packaging (#1063) 2025-01-29 13:42:34 -05:00
Christian Benincasa
c192ec1c1b
refactor: introduce inversify to server (#1059) 2025-01-22 15:02:48 -05:00
Christian Benincasa
0e01e2a38d
chore: change build process + update core deps (#1057)
* Updates Typescript to latest version
* Changes server Typescript config to actually emit JS files. We were
  already running a full tsc invocation against the server for
typechecking anyway... and we use tsx for fast dev iteration w/o
typechecking, so we may as well just emit the actual JS files so that we
can take advantage of thinks like decorator metadata (upcoming inversify
PR...)
* Updates better-sqlite version to latest
* Bumps node version requirement to 22 and codifies it in package.json
  engines
2025-01-19 13:15:44 -05:00
Christian Benincasa
86cdb721da
refactor: massive backend refactoring (#965)
* refactor: massive backend refactoring

I've been putting off this refactor for a while, but now that the
mikro-orm removal and ffmpeg builder PRs are in, it is time.

* refactor: use ts import paths on server
2024-11-19 10:26:20 -05:00
Christian Benincasa
411482abd6
chore: performance improvements (#890)
* migrating all queries to kysely
* removing dead code
* implementing pagination on some endpoints
2024-10-30 10:51:54 -04:00
Christian Benincasa
f52df44ef0
feat!: add support for Jellyfin media (#633)
This commit includes a huge amount of changes, including support for
adding Jellyfin servers as media sources and streaming content from
them.

These are breaking changes and touch almost every corner of the code,
but also pave the way for a lot more flexibility on the backend for
addinng different sources.

The commit also includes performance improvements to the inline modal,
lots of code cleanup, and a few bug fixes I found along the way.

Fixes #24
2024-08-22 07:41:33 -04:00