Commit Graph

247 Commits

Author SHA1 Message Date
thorpejosh
2729b69607 feat: docker secrets 2024-01-09 21:19:19 +08:00
Thegan Govender
ccc4cef70d Merge pull request #145 from CyferShepard/unstable
Small fix where older installs of Jellystat used the start-app command in the docker container. start-app has been changed to be a duplicate of start and the old functionality moved to a command called start-dev

URL cleanup code added to validateSettings endpoint to handle certain use-cases
2023-12-22 08:03:10 +02:00
Thegan Govender
f003cdb67e chagned start-app command to be a dup of start
this is due to older installs trying to call start-app
start-apps functionality has been moved to start-dev
2023-12-22 08:00:21 +02:00
Thegan Govender
21a97c8066 Update api.js
Code to improve url handling in validation script
2023-12-13 08:54:21 +02:00
Thegan Govender
881a818d8f Merge pull request #139 from CyferShepard/unstable
Hotfix for session API error
2023-12-10 18:38:12 +02:00
Thegan Govender
0beb42194d Merge pull request #138 from CyferShepard/main
Merge pull request #134 from CyferShepard/unstable
2023-12-10 18:31:29 +02:00
Thegan Govender
7a496c70a8 Fix for session.filter error #137 2023-12-10 18:30:42 +02:00
Thegan Govender
0b79a098f4 Merge pull request #135 from simoncaron/unstable
Fix Stretched Music Album Covers
2023-12-09 11:46:55 +02:00
Simon Caron
7ec04efaa0 Fix Stretched Music Album Covers 2023-12-09 00:02:19 -05:00
Thegan Govender
d3203f61fd Merge pull request #134 from CyferShepard/unstable
Merge Unstable to Main 1.0.8 -> 1.0.9
2023-12-08 18:56:00 +02:00
Thegan Govender
95ab3c0e9d added version number to isConfigured 2023-12-07 14:18:49 +02:00
Thegan Govender
8c8c8809aa Logging fixes for sync 2023-12-06 13:45:19 +02:00
Thegan Govender
9e4b8d1837 Update api.js
Fix for invalid syntax from query builder when building purge cached data query
2023-11-29 20:19:31 +02:00
Thegan Govender
6933813f9a Fix for Error 403 on First time setup
Fix for Error 403 on First time setup by dynamically checking the config status and allowing the config status to exist at multiple stages of the setups vs at the last stage of configuration

Fix sync logs missing as logging was not awaited on insert

Cleaned up some logging code in the db class
2023-11-29 19:04:34 +02:00
Thegan Govender
ea4da8e98a Update Dockerfile 2023-11-28 19:16:42 +02:00
Thegan Govender
e146260572 Version bump and minor changes
Incremented version to 1.0.9
Updated dockerfile to run build to generate static webpages
Fixed missing parameter REQUIRE_LOGIN from config payload
2023-11-28 18:48:06 +02:00
Thegan Govender
1ef57d0717 Update App.jsx 2023-11-27 20:58:41 +02:00
Thegan Govender
fab97c4a7b Cleanup first time setup and sync logic
Fixed checks and triggers for First time setup and sync processes so that sync wont run until setup is complete
2023-11-27 20:58:31 +02:00
Thegan Govender
4cf53f6356 Fix broken first time setup
Issues resulting in a buggy first time setup due to factorized code changes have been fixed
2023-11-27 16:45:45 +02:00
Thegan Govender
47190673a8 Update api.js
fix axios import
2023-11-27 10:56:10 +02:00
Thegan Govender
c284d59454 Fix for incorrect stat count
Forgot to add archived items exclusion when tallying stats
This feature has been extended to seasons and seasons/episodes as some episodes may be archived but not the entire show
2023-11-26 20:06:33 +02:00
Thegan Govender
0035a1cc08 Refactorized code
Cleaned up Jellyfin calls and stored them in a Jellyfin Class to be called globally. Also added better error handling for jellyfin api network responses

Reduced config error handling by moving this code to a central Config class

refactored https instance of axios into a new class reducing the need to recreate the https agent where needed

General comments and code clean-up

Removed Data Debugger as it hasn't been maintained and no longer servers a purpose

CSS fixes on session card
2023-11-25 14:13:16 +02:00
Thegan Govender
fa15e62d87 Session Card css fixes
Session Card css fixes
Refactored the syncitemInfo method to fetch data and then write in bulk vs writing on every fetch
2023-11-22 19:14:24 +02:00
Thegan Govender
a9279b0963 Merge pull request #127 from CyferShepard/sync-optimisations
Sync optimizations
2023-11-20 22:04:13 +02:00
Thegan Govender
4f11a75a4e Update sync.js
code/comment cleanup
2023-11-20 22:00:41 +02:00
Thegan Govender
9d5a5e1ee1 Fixed Partial Sync issues
Fixed some logic that was causing show items to sync during partial sync but then get removed when the clean-up script was run.

This was due to the Show filter used to reduce the number of shows scanned but a scenario was found where:

Recently added returns an episode and not the corresponding series item.  The filter would then prevent the episode from syncing as the filter excluded it based on the missing Show ID.  Then once the item info sync ran, the item info would insert without the corresponding item id.

The cleanup looks for this scenario where theres info items without corresponding items and cleans them out.
2023-11-20 21:56:52 +02:00
Thegan Govender
6332a81924 Update sync.js
FIxed update/insert counter to accurately reflect transactions
removed unreachable code in item sync
2023-11-20 20:23:50 +02:00
Thegan Govender
d7de480004 css fixes for archived toggle button 2023-11-20 20:12:33 +02:00
Thegan Govender
f9f5c34792 logic fixes for archiving items in archived library
Now items inside a library will only be archived if the library is deleted.

If it was excluded but still exists on jellyfin then the items inside wont be archived

Amended bulk upload conflict query for libraries table to revert archived bit to false if data is updated
2023-11-20 11:22:19 +02:00
Thegan Govender
324f173e3e added archiving feature to libraries
added archiving flag to libraries. If a library is deleted or excluded the entire library and its contents are archived when the sync process is run

Added archive toggle in libraries to show/hide archived libraries

Still need to add functionality to bulk purge archived data for a library or for selected items in the library.

cleaned up duplicate statement in migration 46

uncommented backwards navigation code when purge completes
2023-11-20 10:59:12 +02:00
Thegan Govender
a74ce2b09e Task Interval Changes
increased default task delay to 1 hour
tweaked update logic on task panel
2023-11-20 09:42:11 +02:00
Thegan Govender
837dd18014 Sync Changes
Added Sync feature to only sync Recently Added Items that don't exist in the database (this will not update existing data), default interval now set to 15 Minutes

Renamed existing sync to Full sync (should function exactly the same), default interval now set to 1 day

Reworked handling of items no longer on jellyfin. Items are no longer deleted but are now marked as archived so that we can still view their items when looking at Playback Activity.

Added options to purge Archived data. This will either purge just the item (including seasons and episodes if its a show) or the item plus all related watch activity
2023-11-19 22:17:36 +02:00
Thegan Govender
a9f9b07552 CSS fixes 2023-11-16 15:59:42 +02:00
Thegan Govender
ad8ea58428 swagger changes
fix for pagination when using larger items per page count
2023-11-15 21:36:43 +02:00
Thegan Govender
791e3675fe Merge pull request #126 from DaftFuzz/feature/geolocate-ip
Fix for process is undefined when migrated to vite
Will need to research and fix so that ```VITE_``` prefix its not required
2023-11-15 18:20:10 +02:00
fuzz
26adf3ba7a fix for vite env prefixes 2023-11-15 15:55:59 +00:00
fuzz
cef9d6de80 update example env 2023-11-15 15:12:14 +00:00
fuzz
dc6dc5c18f Merge branch 'unstable' into feature/geolocate-ip 2023-11-15 15:11:57 +00:00
fuzz
7b462bb428 update for vite
also fix margin bottom warning
2023-11-15 15:11:37 +00:00
Thegan Govender
dc0d4d5925 Merge pull request #124 from c4lyp5o/vite
Migrated to Vite for faster development
improved json payloads by adding compression
Frontend now uses production build files
2023-11-15 14:18:02 +02:00
c4lyp5o
adabea297c Merge branch 'unstable' into vite 2023-11-15 08:18:28 +08:00
Mohammad Aimaan
2f91cfb614 Merge branch 'CyferShepard:main' into vite 2023-11-15 08:17:43 +08:00
c4lyp5o
c427a8092d Revert "fix: package.json"
This reverts commit 88f8d04edb.
2023-11-15 01:50:13 +08:00
Thegan Govender
e060c8885e Merge pull request #125 from DaftFuzz/bugfix/live-tv-eta
fix NaN for live tv playback
2023-11-13 16:36:50 +02:00
fuzz
de1850b284 don't really need this comment 2023-11-13 11:17:58 +00:00
fuzz
20972d7aec fix NaN for live tv playback
Jellyfin reports playback for live tv with an end time of 00:00:00, replicating this in Jellystat.

Also add the current program name to the now playing item

Also some aesthetic changes to ensure playback counter row is always at the bottom of the card
2023-11-13 11:14:07 +00:00
c4lyp5o
88f8d04edb fix: package.json
add npm run build to build static page for serving
2023-11-12 08:19:32 +08:00
Thegan Govender
85e4cd6e92 updated ports in swagger docs 2023-11-11 17:22:26 +02:00
Thegan Govender
e63f52e2fb Added .dockerignore file to speed up local image builds
Changed Dockerfile as previos file was failing to build consistently
removed some unused packages
added compression to json payloads
changed vite ports to 3000 to not break existing builds
backend and frontend both use port 3000 now
2023-11-11 17:06:44 +02:00
Thegan Govender
2beefd8184 proxy enpoint case sensitivity fix
proxied endpoints are case sensitive in vite, this fix is to update the endpoint names to match the proxied endpoints
2023-11-08 12:25:46 +02:00