Commit Graph

112 Commits

Author SHA1 Message Date
Cody Robibero d848faeb75 Merge pull request #13589 from JPVenson/feature/DatabaseRefactor
[Feature] Database code refactor
2025-03-25 21:34:26 -06:00
JPVenson 42bdb22bfb Fixed namespaces 2025-03-25 16:45:00 +01:00
JPVenson 160020c551 WIP fixed namespaces 2025-03-25 15:30:22 +00:00
Niels van Velzen 8680170706 Merge pull request #13616 from Lampan-git/fix_people_role
Include PeopleBaseItemMap in GetPeople to inlcude Role and SortOrder
2025-03-24 15:29:28 +01:00
JPVenson 671d801d9f #13540 Fixed (#13757)
#13508 Partially fixed

Co-authored-by: JPVenson <github@jpb.software>
2025-03-23 19:52:34 -06:00
Tim Eisele 8db6a39e92 Remove all DB data on item removal, delete internal trickplay files (#13753) 2025-03-23 10:05:13 -06:00
Cody Robibero 85b5bebda4 Add fast-path to getting just the SeriesPresentationUniqueKey for NextUp (#13687)
* Add more optimized query to calculate series that should be processed for next up

* Filter series based on last watched date
2025-03-18 17:37:04 -06:00
Lampan-git 7abb94d8a2 Move mapping assignment to Map 2025-03-05 22:37:18 +01:00
Lampan-git e137a06362 Change PeopleBaseItemMap query from GroupJoin to Include 2025-03-05 16:59:49 +01:00
Lampan-git 4e3d7383f5 Change GetPeople PeopleBaseItemMap code to query 2025-03-05 16:59:31 +01:00
Lampan-git d28ee96f06 Include PeopleBaseItemMap in GetPeople 2025-02-25 18:10:50 +01:00
Cody Robibero 712908d53c Revert nullability of MediaStream.IsHearingImpaired (#13573) 2025-02-17 19:20:18 -07:00
Bond-009 66e571cd97 Merge pull request #13553 from crobibero/efcore-livetv-epg
Change BaseItemEntity ChannelId to nullable Guid
2025-02-15 19:21:16 +01:00
gnattu fa97e8e183 Write only for query columns to EFCore db (#13542)
* Write only for query columns to EFCore db.

We currently don't write the columns that do not exist on the BaseItem class definition in db. However, columns like `CleanName` is still useful and being used by internal queries and current behavior would cause such query to return nothing.

The only exception is the UserDataKey which is not even being used for internal query that can be omitted.

* Update comment
2025-02-13 20:19:24 -07:00
Cody Robibero debc499711 Change BaseItemEntity ChannelId to nullable Guid 2025-02-13 20:17:25 -07:00
Bond-009 17e78c0d40 Merge pull request #13539 from gnattu/mimic-old-get-item-value-names
Simulate old GetItemValueNames behavior
2025-02-13 13:37:05 +01:00
gnattu d2e7ab1c1a Simulate old GetItemValueNames behavior
The GetItemValueNames function in the old implementation was intended to retrieve the original value rather than the cleaned value. The old implementation lacked a clear specification regarding which value to return for the non-cleaned value in a group and relied on an undefined behavior of SQLite, and this implementation assumes the first one is the desired one.
2025-02-11 11:45:53 +08:00
Tobias Kloy 83f0f3d629 Optimise string handling in PeopleRepository filtering. 2025-02-07 22:20:35 +01:00
Tobias Kloy 3a4d67319a Disable Warnings similar as in BaseItemRepository 2025-02-07 20:37:35 +01:00
tkloy24 7f41cc53ca Update Jellyfin.Server.Implementations/Item/PeopleRepository.cs
Co-authored-by: JPVenson <ger-delta-07@hotmail.de>
2025-02-07 19:46:38 +01:00
Tobias Kloy 0a4ca33d4f Fix Search results are case-sensitive for people 2025-02-07 14:38:33 +01:00
gnattu 341bb02422 Order MediaStream query by StreamIndex (#13506)
Our stream index calculation logic implemented in #7529, assumes an in-order array. However, our current query may return out-of-order items, leading the server to pass an incorrect index to ffmpeg, causing the transcoding to crash.
2025-02-06 07:15:29 -07:00
gnattu 2de04cb07c Make StartDate/EndDate nullable (#13494)
These dates are used as birthdate and death date for person (ask luke for why) and a non-nullable column would cause the null date become 1901-01-01, making all living people dead.
2025-02-04 17:02:07 -07:00
Josh Soref 40da2ccac5 Fix spelling (#13444)
* spelling: anamorphic

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: associated

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: channelinfo

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: eagerly

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: enumerable

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: greater than/less than

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: greater

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: lineup

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: logs out

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: names

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: paging

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: playlist

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: sanitized

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: saving

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

---------

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2025-01-28 11:27:34 +01:00
luzpaz c877ffa5ad Fix various typos
Found via `codespell -q 3 -S "./Emby.Server.Implementations/Localization" -L inh,som`
2025-01-25 21:04:37 -05:00
JPVenson 64cf67f1ac Fixed ordering by artist 2025-01-19 13:03:09 +00:00
JPVenson 7d1a9dcc61 Update Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
Co-authored-by: Bond-009 <bond.009@outlook.com>
2025-01-19 13:30:31 +01:00
JPVenson cd75df6521 Applied review comments 2025-01-19 12:29:14 +00:00
JPVenson a7ad5dfc80 Reverted doc change 2025-01-15 20:34:24 +00:00
JPVenson b33810534b Applied review comments 2025-01-15 20:12:41 +00:00
JPVenson d716a53ec2 Applied review comments 2025-01-11 18:13:16 +00:00
JPVenson dcfbf55794 Fixed linter 2024-12-19 00:10:47 +00:00
JPVenson a0c568bc6c Applied review comments 2024-12-15 14:46:40 +00:00
JPVenson 3b18a36ba5 removed unused 2024-11-24 10:59:05 +00:00
JPVenson 6a08361f6f Applied review comments 2024-11-24 10:58:09 +00:00
JPVenson c71dc380bf Fixed error 2024-11-17 11:05:13 +00:00
JPVenson b39553611d Applied coding style 2024-11-17 11:03:43 +00:00
JPVenson 17e4485b94 Removed grouping key for testing 2024-11-16 23:33:04 +00:00
JPVenson b6177363e9 Fixed search case sensitivity 2024-11-16 22:10:07 +00:00
JPVenson 9f7f9cc0ff Fixed metadata refresh not working 2024-11-16 20:30:43 +00:00
JPVenson c925f8688e Filter duplicate BaseItems on save 2024-11-15 18:30:26 +00:00
JPVenson 3eedbae506 Fixed Item query 2024-11-15 14:33:07 +00:00
JPVenson 03e08412d7 Fixed paging not beeing applied 2024-11-15 14:17:25 +00:00
JPVenson 92eb983c61 Fixed Query Distinct 2024-11-15 09:00:13 +00:00
JPVenson 30ba35aa0c attempted to fix multi insert for Itemvalues 2024-11-14 20:36:27 +00:00
JPVenson 060aa4719e Fixed NextUp and Latest query performance 2024-11-14 19:53:59 +00:00
JPVenson 96d9bb83a3 Fixed Movie RecentlyAdded 2024-11-14 18:09:04 +00:00
JPVenson 75d40e69b5 removed dbg code 2024-11-14 15:37:22 +00:00
JPVenson aea255f910 Deterministic tests my *** 2024-11-14 10:14:41 +00:00
JPVenson 432cfba2e2 Reverted Test code 2024-11-14 09:55:32 +00:00