325 Commits

Author SHA1 Message Date
zodac
097d200444 Adding environment variable to define the minimum number of seconds for a playback to be included
Allows for filtering out playbacks that only execute for a second or two (like during testing, or when a
new episode auto-plays). The new variable is called 'MINIMUM_SECONDS_TO_INCLUDE_PLAYBACK'.
2024-11-27 20:04:39 +13:00
CyferShepard
242a0ae915 fix for #267 devide by 0 error 2024-11-24 16:51:28 +02:00
CyferShepard
16f239dfdd minor correction to sql script #263 2024-11-24 16:06:05 +02:00
CyferShepard
ae90929aa0 fix for #263, wrong date range was being applied 2024-11-24 15:57:51 +02:00
CyferShepard
0392970b54 Fix, added 404 handling for non exisiting endpoints 2024-10-23 18:35:37 +02:00
CyferShepard
935e9b88b7 #258 exclude archived libraries from stats on Statistics endpoint. When library is untracked, after a full sync, the library is archived 2024-10-20 18:09:25 +02:00
CyferShepard
75e8e5b635 sync playback plugin fixes on query builder
added check for emby plugin
2024-10-12 00:40:26 +02:00
CyferShepard
669fdcb818 Fix emby/Jellyfin lable in settings
Fixed item info wrong id on sync resulting in no item info for emby
added translations for Emby Url label
2024-10-12 00:17:08 +02:00
CyferShepard
c31edc045a added ENV overides for JF_HOST and JF_API_KEY 2024-10-07 10:13:44 +02:00
Gavin Mogan
1d64ba0b59 Allow overriding owner of tables during migrations 2024-09-24 23:21:22 -07:00
CyferShepard
1081cf60bd getItemDetails added times_played and total_play_time field to response 2024-09-16 18:15:19 +02:00
CyferShepard
5b72864f19 fix for swagger ui docs not rendering 2024-09-16 16:41:36 +02:00
CyferShepard
b455d7614b better error handling in api 2024-09-16 08:51:59 +02:00
CyferShepard
92ba211e8b Fix for #248 to address getUser filter error 2024-09-14 23:29:52 +02:00
CyferShepard
77eec15318 chore: Fix base URL redirection issue 2024-09-08 13:06:42 +02:00
CyferShepard
1aeede3dc9 chore: Fix base URL redirection issue 2024-09-08 12:54:32 +02:00
CyferShepard
29d6464397 Fix to address #229 Base urls. Alot of hacky code here. hope it doesnt break 2024-09-08 00:31:13 +02:00
CyferShepard
ed917f5be8 Possible Breaking changes, will revert if next image fails to run. Dynamically builds env variables to file to be used by frontend 2024-09-06 22:46:32 +02:00
CyferShepard
fbcd7d5cbc Fix for issue #188 2024-09-04 14:21:52 +02:00
CyferShepard
186cd36c73 Possible fix for #240 2024-08-25 15:53:53 +02:00
CyferShepard
cb9417542b Added optiosn to toggle which tables to backup
Fixed logging not displaying in backup task
2024-08-25 00:38:56 +02:00
CyferShepard
477ba27169 Fix for multiple 1 second records due to certain clients changing SessionIds every second, The Session id was removed from the filter when matching back on existing records. records in the wd table. Will revert if this negativly effects recording ability 2024-08-14 22:27:46 +02:00
CyferShepard
b16f783f50 fetch item additional features 2024-08-13 22:56:09 +02:00
CyferShepard
6f25aea78a Fix fetch for missing item taking too long. This was due to jellyfin returning all library items when a specific id is not found in a specified library. Limit param added to API clients to tackle this 2024-08-09 01:31:51 +02:00
CyferShepard
1078b57e17 And also the actual fix for #234 that i forgot to include 2024-08-08 23:24:21 +02:00
CyferShepard
abc289d6ba refactor: Remove console.clear() from ActivityMonitor.js 2024-08-08 23:16:19 +02:00
CyferShepard
f77a440b9d Refactored Activity monitor code to be easily debugged and to fix issue #234
Added pkName  option to deleteBulk query for Primary keys that are not called "Id"
2024-08-08 23:15:38 +02:00
CyferShepard
159679377b Added LastActivityDate Field to /api/getItemDetails endpoint #235 2024-08-08 19:01:37 +02:00
CyferShepard
9b762e9fac updated swagger docs
added library filter to activity and users activity page
added stream type filter to activity, item and users activity page
2024-08-03 23:47:19 +02:00
CyferShepard
7a487e5f36 Fix for #231, missing day offset value
Added getLibraries api endpoint for upcoming fitrering freature on activity
added LibraryId to getHistory endpoint to filter by Library
2024-08-03 20:24:08 +02:00
CyferShepard
cf0e85d934 feat: Added Playback concurrent stream card
fixed translation key typo in stream-info modal
2024-08-02 14:58:49 +02:00
CyferShepard
0919a7c3de refactor: Update API endpoint for getting recently added items to honour excluded libraries #228 2024-07-30 18:08:07 +02:00
CyferShepard
05690a72f8 feat: Update proxy.js to use Emby device images if IS_JELLYFIN is false 2024-07-30 08:52:11 +02:00
CyferShepard
6fac8127a0 Sync rework, this overhauls the sync process to process by chuncking and processing data. This fixes an index out of range memory error due to large sets of libraries being fetched and kept in an array for final processing.
Changes made to the api classes to allow for individual calls as they previously looped to fetch each chunck before returning the final large data set.

Also added a fix to prevent a full sync or partial sync from triggering when the other one is already running
2024-07-28 21:04:10 +02:00
CyferShepard
d58807ca39 Fix for sync pulling entities from jellyfin that is not vissible. This was done by enforcing the userId field against the prefered admin
Added sizes to Episodes in library season view
2024-07-16 15:31:09 +02:00
CyferShepard
afa99af321 chore: Fix database transaction issue in insertBulk function 2024-07-05 15:28:04 +02:00
CyferShepard
f70bce6b9a Version Bump 1.1.0 => 1.1.1
Added Dynamic API loader framework for Emby/Jellyfin switching, Emby API is still WIP, DO NOT USE as per #133

Reworked ome pages for correct url mapping of emby external links

Added IS_JELLYFIN flag to config endpoint to indicate if server is displaying Emby or Jellyfin Data

Fix for #218 Require Login set to false still displays Login Page until reload

New feat: Grouped Recently added Episodes under Seasons and Episode count on Home page. Toggle to revert back to ugrouped display will be added later

Added middleware to infer param types in API to simplify value checks, eg bool or numeric parameters
2024-06-29 22:57:33 +02:00
CyferShepard
00edf7d7ba chore: Fix backup function call in BackupTask.js 2024-06-22 17:06:12 +02:00
CyferShepard
13e186ef7b chore: Update logging import paths in backend code
chore: fix swagger doc endpoints
chore: refactored code to respective classes
2024-06-20 14:43:25 +02:00
CyferShepard
c1e73a0370 chore: Filter out sessions with prerolls in JellyfinAPI 2024-06-16 21:02:17 +02:00
CyferShepard
88e89c1bcc consolidated validation and normalisation of of url to setconfig functions 2024-06-13 22:03:26 +02:00
CyferShepard
41e4eb46c1 fix: Refactor URL formatting for Jellyfin validation and API key validation causing validation url to be saved instead of fixed url 2024-06-09 12:54:28 +02:00
CyferShepard
a60d047a72 chore: Update bulk insert and update query for jf_activity_watchdog table
fix: timestamp update error in watchdog table
chore: removed legacy update code and used db bulkInsert function which has update on conflict handlers
2024-06-09 00:35:58 +02:00
CyferShepard
14dad703d3 fix: resolved bug when converting various date formats in pause update function 2024-06-06 14:09:30 +02:00
CyferShepard
6e33d179f7 fix to replace is-url-http library due to docker build issues 2024-06-06 12:52:47 +02:00
CyferShepard
68252c00af chore: refactored url formating when performing url and api key validation for Jellyfin
fix: fixed validation message bug in settings page for Jellyfin details not diplaying error messages
2024-06-06 10:16:01 +02:00
CyferShepard
59a9b44ab4 Chore: update swagger docs 2024-06-05 08:18:39 +02:00
CyferShepard
d5c6f1b927 chore: Update environment variable name for Postgres database in backend files
Fix: http/https not being appended to jellyfin server url during setup process, this should address issues #175, #163
2024-06-03 08:59:54 +02:00
CyferShepard
a04f7c4b99 rework to make tracking more accurate based on lastPausedDate field 2024-06-02 19:06:23 +02:00
CyferShepard
7d798448ea Changes to Recently Added Items
Now displays Recently added to Jellystat via sync and does not only rely on an active connection to Jellyfin
It will still show items from jellyfin that have been recently added that are have the DateCreate that is Greater than the Last Date Created item in the list
2024-05-24 18:53:41 +02:00