wrapperr/main.go

244 lines
6.8 KiB
Go
Raw Normal View History

Squashed commit of the following: commit 23a91e9daad1c482435581c69c756257ac703149 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jul 4 17:47:18 2022 +0200 Removed tmp text commit 1c09e583b2fa5e30a36c809e85fc43b328e3ad7f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jul 3 15:33:36 2022 +0200 Read log in admin interface commit 4ae253185a33bb13a94b1a200bf3aa92a62fb17d Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:27:39 2022 +0200 Added comments commit 89cabc36e86ae541fa9b001928211ba48e9ba48b Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:08:47 2022 +0200 Update index.js commit 12279e7ed47eeb45454ab525aa745eeaac0da180 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:02:36 2022 +0200 Update index.html commit a1c76b3e4d06cd25f7795390155521f2c341465f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 23:56:39 2022 +0200 Errors and frontend Cookies are more stable Errors are more concise commit ee170aeb3acf3f586c93e7b142a08bbb32a17134 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:33:27 2022 +0200 Better error handling commit 6317a1fa15ccfaf91fb2d8737e346621d9884008 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:18:45 2022 +0200 Added returns on errors commit 7126ddf2fbb824de0906fd6d7bfc2ca8acac0fdf Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:09:07 2022 +0200 Added ASCII Art commit 1fd45ede34abe6ae9555d9d6f23f87a2e67dba3b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:39:24 2022 +0200 Form CSS tweak commit 9861c662cd5f2b66721b3d2f2030d92d84bdf8bc Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:24:03 2022 +0200 Update route_admin_auth.go commit 119de6b2b1124266aae6cd5fec90fff2d2ddd24f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:19:36 2022 +0200 Update route_admin_auth.go commit 87a43dfc4945fe5ce45b8d9d06c7dcd6a5c9ee0c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:17:21 2022 +0200 Bugs and CSS Time zone validation Caching log is prettier Return bug on certain API endpoints fixed commit 3e81df71516572944b8e46bad129da82235b1b85 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Jul 1 18:36:21 2022 +0200 Create codeql-analysis.yml commit 32d05f3fff0231139df0e590b98097d6c6e3cdfb Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:23:05 2022 +0200 Update index.js commit c3fcdee18406e1a9d96b26c85169e1db365bb36a Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:15:38 2022 +0200 Capital W commit a243d310597b9f8148621690b9662f93b8467e83 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:08:53 2022 +0200 Update index.js commit 068739fc76b96c4379bf93aa39d11db1c2dfcada Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:58:48 2022 +0200 Update README.md commit d61074bde69f5dac1a1a2dd6b2164564131f53d1 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:56:55 2022 +0200 Docker-compose mistake commit 3036905d92d23cb0664559471fa9e0a81565fa64 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:55:30 2022 +0200 README touchups commit 6f07775121cec5cddf17f25efe349b300d43b8e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:48:10 2022 +0200 Rewrote README commit 58a26b11c77e6d21be0f433cd22c4da46f5d0450 Author: Aune <oystein.sverre@gmail.com> Date: Fri Jul 1 10:00:58 2022 +0200 Changed release workflow commit ffeea7ca689f405b6e629411f5bc9fc8c19e6b34 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 20:09:01 2022 +0200 Updated workflow to 1.18 commit aa321e87729673b4ce047f87b68f7223ea02d159 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 19:58:44 2022 +0200 Update README.md commit 5c4e59474882689f6dadf61f140a4ec18f744a1e Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 18:16:30 2022 +0200 CSS fixes commit 97f3fc57a389e5dd637b560e48fee86c4163dcd5 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Jun 29 22:00:32 2022 +0200 Option to disable winter theme And loading screen commit cf804312c7b9b72b416ef2a53947efab79ab604b Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Jun 28 22:05:43 2022 +0200 Update README.md commit 362a15ee1daa2464ad4f27b7e3107a63d736e591 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 28 18:41:19 2022 +0200 Fixed buddy bug commit 58f4d0060230c2349634689438088dcdf48d7715 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jun 27 19:26:37 2022 +0200 Finalized show buddy commit 0f89a1df974af9947d9e297f3c662d4082c0403d Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 26 12:47:37 2022 +0200 Improved logging commit b57cb24928c2e213c38ce566478af11937e6e4e3 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jun 25 13:42:14 2022 +0200 Finalized shareable links Links can be deleted Links are retrieved to the front page Links can be copied to clipboard commit 000022b882877bc306e13203578a3d1e184afc9a Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 18:47:34 2022 +0200 Get share links now functional commit df697f68b2bcedc7c623d9d9ec291a9625b62160 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:29:52 2022 +0200 Share link formatting bug commit 3b357ca72767fcbb9742a935f29770ab488ac36f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:26:15 2022 +0200 Share link creation Started implementation Missing get and delete functionality Added delete cache option to Tautulli settings commit 54e079951ff131d9177fd0f4a79238c03043d875 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jun 10 19:13:01 2022 +0200 Fixed bugs Shows with seasons in different years were split on top lists Amount of media plays was not unique to media-release, just amount of plays overall Fixed display for music minutes Logging can now be disabled Tautulli libraries were not included in API calls commit 26508af56a182b9611affb4401e5db494ae27c8b Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:38:08 2022 +0200 Fixed bug where top-lists under 10 crashed the API commit 0f28e39c8d4fe444c8d30caaaee9ca138d469270 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:17:41 2022 +0200 Fixed bug for year users duration-sum commit 1e3cb11637cfe001936d4b950b28564d2eec2a4b Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 29 19:51:15 2022 +0200 Statistics retrieval finished Revamped config get/set functions Redid some UI explanations Renamed template JSON commit 93390d469bab45560574e678a88b38dcef60f100 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon May 23 22:23:31 2022 +0200 Bug problem commit 3eb49b8da1c77d33923913e817cb41201cab3963 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 23:48:11 2022 +0200 Users commit aa6b3ec5121bb73cbe5828d9f42e1fd14514ddbd Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 13:11:35 2022 +0200 More stats Leaderboard and show buddy missing Working on bug that resets config (?!) commit 29742a2b6305a3835c63fc2c7760018b3e2267f0 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 00:41:19 2022 +0200 Basis for stats retrieval personal movies, shows and music is functional commit a0df0759a76689638d47657abde755cc34dd4a1b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:24 2022 +0200 Removed Docker folder commit 3e192997c08a5406a3d98e850218a674559f9ff0 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:05 2022 +0200 Renaming and Pop-up fix Pop ups should now not be blocked. Hopefully... commit 57b2d03fb57762c6c2aec7433a4f2affd6faa090 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 15:37:26 2022 +0200 CSS changes New rounded corners Transparent background colors Yellow borders Blurred background image Better footer placement More depth to snow particles commit b562e75bee6ff612019fa08d221fbf1ee69edd11 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 12:37:18 2022 +0200 API endpoints changes Get wrapperr-version now also retrieves config-state Login via Plex Auth disabled if Wrapperr is unconfigured Cookies changed to strict samesite value Logging changes commit e01bfc41cf46b3d7bc3b6627c93b67c0f70aa718 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Apr 29 10:47:12 2022 +0200 Update README.md More shields commit 2d2893cb9b212016c3455fd4f8dd3a5b229550ba Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 22:09:24 2022 +0200 Comments and time zone fixes commit 271c16b00e0eb4d58a97ed3b82f0e96993a7d853 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 16:26:44 2022 +0200 Caching and caching loop commit 44376b4d57765258602ec585e59b0825938d3c77 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 10:33:18 2022 +0200 Pulling Tautulli History Moved Tautulli functions to their own file commit 5355dafc68c5c2ed5a7c7e413388981438314500 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 22:00:49 2022 +0200 Start of Tautulli data collection Added time-zone setting in code Created cache structs commit 8bcce997c3b1a0556752ff99b5925cce7e18c4b6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 17:25:06 2022 +0200 Comments and caching mode commit 6e951efbcd6acb0b442a691ceb9919e95d3e9e98 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Apr 23 19:03:00 2022 +0200 User details fetch (From Plex & Tautulli) commit cb5b9384c0b716ef33770a0f96f6e4c0601cff50 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Sat Apr 23 12:07:57 2022 +0200 Shields.io stats commit 343e0ac727576652ccd81e565a7a385879b1bfb4 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 18 22:14:49 2022 +0200 Begun stats function Moved Taut test to separate function from API endpoint commit b7e34224d7524358a4b59bd667d75b3b6527361c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:26:54 2022 +0200 Update util.go commit 4a2598f77cce3c5e9d5fc66e9e870bf3cd4bfb51 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:22:34 2022 +0200 Error handling commit 09b80cf16c054d2767cd1cf50ae17f7f72268a53 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 15:01:59 2022 +0200 Updated readme to explain current standing commit 273b08f43ca317b6cd4ede01efb5040e63cc9839 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:46:34 2022 +0200 Removed test-log commands commit f2e85beb9d4aa9157b32933c50495c5f029787e4 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:26:17 2022 +0200 Removed legacy PHP files commit aaafea6da38173224d1b15063d4f32468ec12879 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:24:41 2022 +0200 URL builder & test Tautulli connection commit a02a172a7fc85a5a595fdb4003b00c8aa7d5f475 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 02:37:48 2022 +0200 Moved Plex Auth Get Pin to front end By moving this API call to the front end (JS), the IP address is identical when logging in. This removes the red warning. commit 744fae84a088cc77ba86d3c3687aff8d9caa77d7 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 01:33:40 2022 +0200 Plex Auth Plex Auth login, validation and JWT token creation commit 820bbca58a5679ef6a1e98ec586442cd841ac958 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 20:45:00 2022 +0200 Update config API now updates config file commit cb581d69007b32e8e924ac22ba66c923dd9eef23 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 15:49:04 2022 +0200 More API functions - Admin login - Config/Admin file creation - Config API retrieval commit f832df727de5c5fe583f03e2d8906714ceaf8017 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 12 09:30:58 2022 +0200 Functional API endpoints Some basic functionality - Retrieve wrapperr version - Retrieve admin state - Create admin commit 76193b7230e90d578bc561c8f479a87885c0b50f Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 11 16:51:35 2022 +0200 Config loaders commit c197a1b91b6307432e560756da97887bbfb36de5 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 8 17:20:36 2022 +0200 Config files commit 2ef850426a14ecf3dc39ab4b122fb479bb1e8f11 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 7 13:16:01 2022 +0200 Functional jwt validattion and creation commit a52de743daeb3dce18db7e0848eea37d4c35b707 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 22:25:01 2022 +0200 Auth token jwt commit 2f446a484ad6e4330a3a40cc708a543ca47ce148 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 14:19:49 2022 +0200 Middleware commit 1a1bc6ef09b9bce995d9d4b3f4bf7b0d1ead988a Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:14:02 2022 +0200 Added more comments commit 8c36dc74a98aa66565851ab01aff91e641287f06 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:08:26 2022 +0200 Port start argument Also included as ENV in Dockerfile commit 6bfbbdf5c3f955ab680ee4b47863bd7f017ffd5a Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Apr 5 23:31:36 2022 +0200 Whopsie commit 7600f2812e01d266f3488ed32a49d1591740a3e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 20:05:13 2022 +0200 Routing commit 0dbb1c756fcd411e60b73752554d75c8bf04f0b5 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 18:20:12 2022 +0200 Added warnings & Dockerfile commit a787a0acd41ab182ca0607dc3c1796a28ce947bd Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 17:51:48 2022 +0200 Go branch init The assets are served, but no API
2022-07-04 15:47:59 +00:00
package main
import (
"aunefyren/wrapperr/files"
"aunefyren/wrapperr/middlewares"
"aunefyren/wrapperr/models"
"aunefyren/wrapperr/routes"
"aunefyren/wrapperr/utilities"
Squashed commit of the following: commit 23a91e9daad1c482435581c69c756257ac703149 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jul 4 17:47:18 2022 +0200 Removed tmp text commit 1c09e583b2fa5e30a36c809e85fc43b328e3ad7f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jul 3 15:33:36 2022 +0200 Read log in admin interface commit 4ae253185a33bb13a94b1a200bf3aa92a62fb17d Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:27:39 2022 +0200 Added comments commit 89cabc36e86ae541fa9b001928211ba48e9ba48b Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:08:47 2022 +0200 Update index.js commit 12279e7ed47eeb45454ab525aa745eeaac0da180 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:02:36 2022 +0200 Update index.html commit a1c76b3e4d06cd25f7795390155521f2c341465f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 23:56:39 2022 +0200 Errors and frontend Cookies are more stable Errors are more concise commit ee170aeb3acf3f586c93e7b142a08bbb32a17134 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:33:27 2022 +0200 Better error handling commit 6317a1fa15ccfaf91fb2d8737e346621d9884008 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:18:45 2022 +0200 Added returns on errors commit 7126ddf2fbb824de0906fd6d7bfc2ca8acac0fdf Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:09:07 2022 +0200 Added ASCII Art commit 1fd45ede34abe6ae9555d9d6f23f87a2e67dba3b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:39:24 2022 +0200 Form CSS tweak commit 9861c662cd5f2b66721b3d2f2030d92d84bdf8bc Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:24:03 2022 +0200 Update route_admin_auth.go commit 119de6b2b1124266aae6cd5fec90fff2d2ddd24f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:19:36 2022 +0200 Update route_admin_auth.go commit 87a43dfc4945fe5ce45b8d9d06c7dcd6a5c9ee0c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:17:21 2022 +0200 Bugs and CSS Time zone validation Caching log is prettier Return bug on certain API endpoints fixed commit 3e81df71516572944b8e46bad129da82235b1b85 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Jul 1 18:36:21 2022 +0200 Create codeql-analysis.yml commit 32d05f3fff0231139df0e590b98097d6c6e3cdfb Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:23:05 2022 +0200 Update index.js commit c3fcdee18406e1a9d96b26c85169e1db365bb36a Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:15:38 2022 +0200 Capital W commit a243d310597b9f8148621690b9662f93b8467e83 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:08:53 2022 +0200 Update index.js commit 068739fc76b96c4379bf93aa39d11db1c2dfcada Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:58:48 2022 +0200 Update README.md commit d61074bde69f5dac1a1a2dd6b2164564131f53d1 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:56:55 2022 +0200 Docker-compose mistake commit 3036905d92d23cb0664559471fa9e0a81565fa64 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:55:30 2022 +0200 README touchups commit 6f07775121cec5cddf17f25efe349b300d43b8e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:48:10 2022 +0200 Rewrote README commit 58a26b11c77e6d21be0f433cd22c4da46f5d0450 Author: Aune <oystein.sverre@gmail.com> Date: Fri Jul 1 10:00:58 2022 +0200 Changed release workflow commit ffeea7ca689f405b6e629411f5bc9fc8c19e6b34 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 20:09:01 2022 +0200 Updated workflow to 1.18 commit aa321e87729673b4ce047f87b68f7223ea02d159 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 19:58:44 2022 +0200 Update README.md commit 5c4e59474882689f6dadf61f140a4ec18f744a1e Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 18:16:30 2022 +0200 CSS fixes commit 97f3fc57a389e5dd637b560e48fee86c4163dcd5 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Jun 29 22:00:32 2022 +0200 Option to disable winter theme And loading screen commit cf804312c7b9b72b416ef2a53947efab79ab604b Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Jun 28 22:05:43 2022 +0200 Update README.md commit 362a15ee1daa2464ad4f27b7e3107a63d736e591 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 28 18:41:19 2022 +0200 Fixed buddy bug commit 58f4d0060230c2349634689438088dcdf48d7715 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jun 27 19:26:37 2022 +0200 Finalized show buddy commit 0f89a1df974af9947d9e297f3c662d4082c0403d Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 26 12:47:37 2022 +0200 Improved logging commit b57cb24928c2e213c38ce566478af11937e6e4e3 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jun 25 13:42:14 2022 +0200 Finalized shareable links Links can be deleted Links are retrieved to the front page Links can be copied to clipboard commit 000022b882877bc306e13203578a3d1e184afc9a Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 18:47:34 2022 +0200 Get share links now functional commit df697f68b2bcedc7c623d9d9ec291a9625b62160 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:29:52 2022 +0200 Share link formatting bug commit 3b357ca72767fcbb9742a935f29770ab488ac36f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:26:15 2022 +0200 Share link creation Started implementation Missing get and delete functionality Added delete cache option to Tautulli settings commit 54e079951ff131d9177fd0f4a79238c03043d875 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jun 10 19:13:01 2022 +0200 Fixed bugs Shows with seasons in different years were split on top lists Amount of media plays was not unique to media-release, just amount of plays overall Fixed display for music minutes Logging can now be disabled Tautulli libraries were not included in API calls commit 26508af56a182b9611affb4401e5db494ae27c8b Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:38:08 2022 +0200 Fixed bug where top-lists under 10 crashed the API commit 0f28e39c8d4fe444c8d30caaaee9ca138d469270 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:17:41 2022 +0200 Fixed bug for year users duration-sum commit 1e3cb11637cfe001936d4b950b28564d2eec2a4b Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 29 19:51:15 2022 +0200 Statistics retrieval finished Revamped config get/set functions Redid some UI explanations Renamed template JSON commit 93390d469bab45560574e678a88b38dcef60f100 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon May 23 22:23:31 2022 +0200 Bug problem commit 3eb49b8da1c77d33923913e817cb41201cab3963 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 23:48:11 2022 +0200 Users commit aa6b3ec5121bb73cbe5828d9f42e1fd14514ddbd Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 13:11:35 2022 +0200 More stats Leaderboard and show buddy missing Working on bug that resets config (?!) commit 29742a2b6305a3835c63fc2c7760018b3e2267f0 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 00:41:19 2022 +0200 Basis for stats retrieval personal movies, shows and music is functional commit a0df0759a76689638d47657abde755cc34dd4a1b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:24 2022 +0200 Removed Docker folder commit 3e192997c08a5406a3d98e850218a674559f9ff0 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:05 2022 +0200 Renaming and Pop-up fix Pop ups should now not be blocked. Hopefully... commit 57b2d03fb57762c6c2aec7433a4f2affd6faa090 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 15:37:26 2022 +0200 CSS changes New rounded corners Transparent background colors Yellow borders Blurred background image Better footer placement More depth to snow particles commit b562e75bee6ff612019fa08d221fbf1ee69edd11 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 12:37:18 2022 +0200 API endpoints changes Get wrapperr-version now also retrieves config-state Login via Plex Auth disabled if Wrapperr is unconfigured Cookies changed to strict samesite value Logging changes commit e01bfc41cf46b3d7bc3b6627c93b67c0f70aa718 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Apr 29 10:47:12 2022 +0200 Update README.md More shields commit 2d2893cb9b212016c3455fd4f8dd3a5b229550ba Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 22:09:24 2022 +0200 Comments and time zone fixes commit 271c16b00e0eb4d58a97ed3b82f0e96993a7d853 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 16:26:44 2022 +0200 Caching and caching loop commit 44376b4d57765258602ec585e59b0825938d3c77 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 10:33:18 2022 +0200 Pulling Tautulli History Moved Tautulli functions to their own file commit 5355dafc68c5c2ed5a7c7e413388981438314500 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 22:00:49 2022 +0200 Start of Tautulli data collection Added time-zone setting in code Created cache structs commit 8bcce997c3b1a0556752ff99b5925cce7e18c4b6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 17:25:06 2022 +0200 Comments and caching mode commit 6e951efbcd6acb0b442a691ceb9919e95d3e9e98 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Apr 23 19:03:00 2022 +0200 User details fetch (From Plex & Tautulli) commit cb5b9384c0b716ef33770a0f96f6e4c0601cff50 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Sat Apr 23 12:07:57 2022 +0200 Shields.io stats commit 343e0ac727576652ccd81e565a7a385879b1bfb4 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 18 22:14:49 2022 +0200 Begun stats function Moved Taut test to separate function from API endpoint commit b7e34224d7524358a4b59bd667d75b3b6527361c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:26:54 2022 +0200 Update util.go commit 4a2598f77cce3c5e9d5fc66e9e870bf3cd4bfb51 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:22:34 2022 +0200 Error handling commit 09b80cf16c054d2767cd1cf50ae17f7f72268a53 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 15:01:59 2022 +0200 Updated readme to explain current standing commit 273b08f43ca317b6cd4ede01efb5040e63cc9839 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:46:34 2022 +0200 Removed test-log commands commit f2e85beb9d4aa9157b32933c50495c5f029787e4 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:26:17 2022 +0200 Removed legacy PHP files commit aaafea6da38173224d1b15063d4f32468ec12879 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:24:41 2022 +0200 URL builder & test Tautulli connection commit a02a172a7fc85a5a595fdb4003b00c8aa7d5f475 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 02:37:48 2022 +0200 Moved Plex Auth Get Pin to front end By moving this API call to the front end (JS), the IP address is identical when logging in. This removes the red warning. commit 744fae84a088cc77ba86d3c3687aff8d9caa77d7 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 01:33:40 2022 +0200 Plex Auth Plex Auth login, validation and JWT token creation commit 820bbca58a5679ef6a1e98ec586442cd841ac958 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 20:45:00 2022 +0200 Update config API now updates config file commit cb581d69007b32e8e924ac22ba66c923dd9eef23 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 15:49:04 2022 +0200 More API functions - Admin login - Config/Admin file creation - Config API retrieval commit f832df727de5c5fe583f03e2d8906714ceaf8017 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 12 09:30:58 2022 +0200 Functional API endpoints Some basic functionality - Retrieve wrapperr version - Retrieve admin state - Create admin commit 76193b7230e90d578bc561c8f479a87885c0b50f Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 11 16:51:35 2022 +0200 Config loaders commit c197a1b91b6307432e560756da97887bbfb36de5 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 8 17:20:36 2022 +0200 Config files commit 2ef850426a14ecf3dc39ab4b122fb479bb1e8f11 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 7 13:16:01 2022 +0200 Functional jwt validattion and creation commit a52de743daeb3dce18db7e0848eea37d4c35b707 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 22:25:01 2022 +0200 Auth token jwt commit 2f446a484ad6e4330a3a40cc708a543ca47ce148 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 14:19:49 2022 +0200 Middleware commit 1a1bc6ef09b9bce995d9d4b3f4bf7b0d1ead988a Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:14:02 2022 +0200 Added more comments commit 8c36dc74a98aa66565851ab01aff91e641287f06 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:08:26 2022 +0200 Port start argument Also included as ENV in Dockerfile commit 6bfbbdf5c3f955ab680ee4b47863bd7f017ffd5a Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Apr 5 23:31:36 2022 +0200 Whopsie commit 7600f2812e01d266f3488ed32a49d1591740a3e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 20:05:13 2022 +0200 Routing commit 0dbb1c756fcd411e60b73752554d75c8bf04f0b5 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 18:20:12 2022 +0200 Added warnings & Dockerfile commit a787a0acd41ab182ca0607dc3c1796a28ce947bd Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 17:51:48 2022 +0200 Go branch init The assets are served, but no API
2022-07-04 15:47:59 +00:00
"flag"
"fmt"
2023-10-24 14:36:21 +00:00
"io"
Squashed commit of the following: commit 23a91e9daad1c482435581c69c756257ac703149 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jul 4 17:47:18 2022 +0200 Removed tmp text commit 1c09e583b2fa5e30a36c809e85fc43b328e3ad7f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jul 3 15:33:36 2022 +0200 Read log in admin interface commit 4ae253185a33bb13a94b1a200bf3aa92a62fb17d Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:27:39 2022 +0200 Added comments commit 89cabc36e86ae541fa9b001928211ba48e9ba48b Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:08:47 2022 +0200 Update index.js commit 12279e7ed47eeb45454ab525aa745eeaac0da180 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:02:36 2022 +0200 Update index.html commit a1c76b3e4d06cd25f7795390155521f2c341465f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 23:56:39 2022 +0200 Errors and frontend Cookies are more stable Errors are more concise commit ee170aeb3acf3f586c93e7b142a08bbb32a17134 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:33:27 2022 +0200 Better error handling commit 6317a1fa15ccfaf91fb2d8737e346621d9884008 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:18:45 2022 +0200 Added returns on errors commit 7126ddf2fbb824de0906fd6d7bfc2ca8acac0fdf Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:09:07 2022 +0200 Added ASCII Art commit 1fd45ede34abe6ae9555d9d6f23f87a2e67dba3b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:39:24 2022 +0200 Form CSS tweak commit 9861c662cd5f2b66721b3d2f2030d92d84bdf8bc Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:24:03 2022 +0200 Update route_admin_auth.go commit 119de6b2b1124266aae6cd5fec90fff2d2ddd24f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:19:36 2022 +0200 Update route_admin_auth.go commit 87a43dfc4945fe5ce45b8d9d06c7dcd6a5c9ee0c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:17:21 2022 +0200 Bugs and CSS Time zone validation Caching log is prettier Return bug on certain API endpoints fixed commit 3e81df71516572944b8e46bad129da82235b1b85 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Jul 1 18:36:21 2022 +0200 Create codeql-analysis.yml commit 32d05f3fff0231139df0e590b98097d6c6e3cdfb Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:23:05 2022 +0200 Update index.js commit c3fcdee18406e1a9d96b26c85169e1db365bb36a Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:15:38 2022 +0200 Capital W commit a243d310597b9f8148621690b9662f93b8467e83 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:08:53 2022 +0200 Update index.js commit 068739fc76b96c4379bf93aa39d11db1c2dfcada Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:58:48 2022 +0200 Update README.md commit d61074bde69f5dac1a1a2dd6b2164564131f53d1 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:56:55 2022 +0200 Docker-compose mistake commit 3036905d92d23cb0664559471fa9e0a81565fa64 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:55:30 2022 +0200 README touchups commit 6f07775121cec5cddf17f25efe349b300d43b8e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:48:10 2022 +0200 Rewrote README commit 58a26b11c77e6d21be0f433cd22c4da46f5d0450 Author: Aune <oystein.sverre@gmail.com> Date: Fri Jul 1 10:00:58 2022 +0200 Changed release workflow commit ffeea7ca689f405b6e629411f5bc9fc8c19e6b34 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 20:09:01 2022 +0200 Updated workflow to 1.18 commit aa321e87729673b4ce047f87b68f7223ea02d159 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 19:58:44 2022 +0200 Update README.md commit 5c4e59474882689f6dadf61f140a4ec18f744a1e Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 18:16:30 2022 +0200 CSS fixes commit 97f3fc57a389e5dd637b560e48fee86c4163dcd5 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Jun 29 22:00:32 2022 +0200 Option to disable winter theme And loading screen commit cf804312c7b9b72b416ef2a53947efab79ab604b Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Jun 28 22:05:43 2022 +0200 Update README.md commit 362a15ee1daa2464ad4f27b7e3107a63d736e591 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 28 18:41:19 2022 +0200 Fixed buddy bug commit 58f4d0060230c2349634689438088dcdf48d7715 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jun 27 19:26:37 2022 +0200 Finalized show buddy commit 0f89a1df974af9947d9e297f3c662d4082c0403d Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 26 12:47:37 2022 +0200 Improved logging commit b57cb24928c2e213c38ce566478af11937e6e4e3 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jun 25 13:42:14 2022 +0200 Finalized shareable links Links can be deleted Links are retrieved to the front page Links can be copied to clipboard commit 000022b882877bc306e13203578a3d1e184afc9a Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 18:47:34 2022 +0200 Get share links now functional commit df697f68b2bcedc7c623d9d9ec291a9625b62160 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:29:52 2022 +0200 Share link formatting bug commit 3b357ca72767fcbb9742a935f29770ab488ac36f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:26:15 2022 +0200 Share link creation Started implementation Missing get and delete functionality Added delete cache option to Tautulli settings commit 54e079951ff131d9177fd0f4a79238c03043d875 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jun 10 19:13:01 2022 +0200 Fixed bugs Shows with seasons in different years were split on top lists Amount of media plays was not unique to media-release, just amount of plays overall Fixed display for music minutes Logging can now be disabled Tautulli libraries were not included in API calls commit 26508af56a182b9611affb4401e5db494ae27c8b Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:38:08 2022 +0200 Fixed bug where top-lists under 10 crashed the API commit 0f28e39c8d4fe444c8d30caaaee9ca138d469270 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:17:41 2022 +0200 Fixed bug for year users duration-sum commit 1e3cb11637cfe001936d4b950b28564d2eec2a4b Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 29 19:51:15 2022 +0200 Statistics retrieval finished Revamped config get/set functions Redid some UI explanations Renamed template JSON commit 93390d469bab45560574e678a88b38dcef60f100 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon May 23 22:23:31 2022 +0200 Bug problem commit 3eb49b8da1c77d33923913e817cb41201cab3963 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 23:48:11 2022 +0200 Users commit aa6b3ec5121bb73cbe5828d9f42e1fd14514ddbd Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 13:11:35 2022 +0200 More stats Leaderboard and show buddy missing Working on bug that resets config (?!) commit 29742a2b6305a3835c63fc2c7760018b3e2267f0 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 00:41:19 2022 +0200 Basis for stats retrieval personal movies, shows and music is functional commit a0df0759a76689638d47657abde755cc34dd4a1b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:24 2022 +0200 Removed Docker folder commit 3e192997c08a5406a3d98e850218a674559f9ff0 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:05 2022 +0200 Renaming and Pop-up fix Pop ups should now not be blocked. Hopefully... commit 57b2d03fb57762c6c2aec7433a4f2affd6faa090 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 15:37:26 2022 +0200 CSS changes New rounded corners Transparent background colors Yellow borders Blurred background image Better footer placement More depth to snow particles commit b562e75bee6ff612019fa08d221fbf1ee69edd11 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 12:37:18 2022 +0200 API endpoints changes Get wrapperr-version now also retrieves config-state Login via Plex Auth disabled if Wrapperr is unconfigured Cookies changed to strict samesite value Logging changes commit e01bfc41cf46b3d7bc3b6627c93b67c0f70aa718 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Apr 29 10:47:12 2022 +0200 Update README.md More shields commit 2d2893cb9b212016c3455fd4f8dd3a5b229550ba Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 22:09:24 2022 +0200 Comments and time zone fixes commit 271c16b00e0eb4d58a97ed3b82f0e96993a7d853 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 16:26:44 2022 +0200 Caching and caching loop commit 44376b4d57765258602ec585e59b0825938d3c77 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 10:33:18 2022 +0200 Pulling Tautulli History Moved Tautulli functions to their own file commit 5355dafc68c5c2ed5a7c7e413388981438314500 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 22:00:49 2022 +0200 Start of Tautulli data collection Added time-zone setting in code Created cache structs commit 8bcce997c3b1a0556752ff99b5925cce7e18c4b6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 17:25:06 2022 +0200 Comments and caching mode commit 6e951efbcd6acb0b442a691ceb9919e95d3e9e98 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Apr 23 19:03:00 2022 +0200 User details fetch (From Plex & Tautulli) commit cb5b9384c0b716ef33770a0f96f6e4c0601cff50 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Sat Apr 23 12:07:57 2022 +0200 Shields.io stats commit 343e0ac727576652ccd81e565a7a385879b1bfb4 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 18 22:14:49 2022 +0200 Begun stats function Moved Taut test to separate function from API endpoint commit b7e34224d7524358a4b59bd667d75b3b6527361c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:26:54 2022 +0200 Update util.go commit 4a2598f77cce3c5e9d5fc66e9e870bf3cd4bfb51 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:22:34 2022 +0200 Error handling commit 09b80cf16c054d2767cd1cf50ae17f7f72268a53 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 15:01:59 2022 +0200 Updated readme to explain current standing commit 273b08f43ca317b6cd4ede01efb5040e63cc9839 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:46:34 2022 +0200 Removed test-log commands commit f2e85beb9d4aa9157b32933c50495c5f029787e4 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:26:17 2022 +0200 Removed legacy PHP files commit aaafea6da38173224d1b15063d4f32468ec12879 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:24:41 2022 +0200 URL builder & test Tautulli connection commit a02a172a7fc85a5a595fdb4003b00c8aa7d5f475 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 02:37:48 2022 +0200 Moved Plex Auth Get Pin to front end By moving this API call to the front end (JS), the IP address is identical when logging in. This removes the red warning. commit 744fae84a088cc77ba86d3c3687aff8d9caa77d7 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 01:33:40 2022 +0200 Plex Auth Plex Auth login, validation and JWT token creation commit 820bbca58a5679ef6a1e98ec586442cd841ac958 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 20:45:00 2022 +0200 Update config API now updates config file commit cb581d69007b32e8e924ac22ba66c923dd9eef23 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 15:49:04 2022 +0200 More API functions - Admin login - Config/Admin file creation - Config API retrieval commit f832df727de5c5fe583f03e2d8906714ceaf8017 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 12 09:30:58 2022 +0200 Functional API endpoints Some basic functionality - Retrieve wrapperr version - Retrieve admin state - Create admin commit 76193b7230e90d578bc561c8f479a87885c0b50f Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 11 16:51:35 2022 +0200 Config loaders commit c197a1b91b6307432e560756da97887bbfb36de5 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 8 17:20:36 2022 +0200 Config files commit 2ef850426a14ecf3dc39ab4b122fb479bb1e8f11 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 7 13:16:01 2022 +0200 Functional jwt validattion and creation commit a52de743daeb3dce18db7e0848eea37d4c35b707 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 22:25:01 2022 +0200 Auth token jwt commit 2f446a484ad6e4330a3a40cc708a543ca47ce148 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 14:19:49 2022 +0200 Middleware commit 1a1bc6ef09b9bce995d9d4b3f4bf7b0d1ead988a Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:14:02 2022 +0200 Added more comments commit 8c36dc74a98aa66565851ab01aff91e641287f06 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:08:26 2022 +0200 Port start argument Also included as ENV in Dockerfile commit 6bfbbdf5c3f955ab680ee4b47863bd7f017ffd5a Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Apr 5 23:31:36 2022 +0200 Whopsie commit 7600f2812e01d266f3488ed32a49d1591740a3e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 20:05:13 2022 +0200 Routing commit 0dbb1c756fcd411e60b73752554d75c8bf04f0b5 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 18:20:12 2022 +0200 Added warnings & Dockerfile commit a787a0acd41ab182ca0607dc3c1796a28ce947bd Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 17:51:48 2022 +0200 Go branch init The assets are served, but no API
2022-07-04 15:47:59 +00:00
"log"
"net/http"
"os"
"strconv"
"time"
"github.com/gin-contrib/cors"
"github.com/gin-gonic/gin"
_ "time/tzdata"
Squashed commit of the following: commit 23a91e9daad1c482435581c69c756257ac703149 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jul 4 17:47:18 2022 +0200 Removed tmp text commit 1c09e583b2fa5e30a36c809e85fc43b328e3ad7f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jul 3 15:33:36 2022 +0200 Read log in admin interface commit 4ae253185a33bb13a94b1a200bf3aa92a62fb17d Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:27:39 2022 +0200 Added comments commit 89cabc36e86ae541fa9b001928211ba48e9ba48b Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:08:47 2022 +0200 Update index.js commit 12279e7ed47eeb45454ab525aa745eeaac0da180 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:02:36 2022 +0200 Update index.html commit a1c76b3e4d06cd25f7795390155521f2c341465f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 23:56:39 2022 +0200 Errors and frontend Cookies are more stable Errors are more concise commit ee170aeb3acf3f586c93e7b142a08bbb32a17134 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:33:27 2022 +0200 Better error handling commit 6317a1fa15ccfaf91fb2d8737e346621d9884008 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:18:45 2022 +0200 Added returns on errors commit 7126ddf2fbb824de0906fd6d7bfc2ca8acac0fdf Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:09:07 2022 +0200 Added ASCII Art commit 1fd45ede34abe6ae9555d9d6f23f87a2e67dba3b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:39:24 2022 +0200 Form CSS tweak commit 9861c662cd5f2b66721b3d2f2030d92d84bdf8bc Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:24:03 2022 +0200 Update route_admin_auth.go commit 119de6b2b1124266aae6cd5fec90fff2d2ddd24f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:19:36 2022 +0200 Update route_admin_auth.go commit 87a43dfc4945fe5ce45b8d9d06c7dcd6a5c9ee0c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:17:21 2022 +0200 Bugs and CSS Time zone validation Caching log is prettier Return bug on certain API endpoints fixed commit 3e81df71516572944b8e46bad129da82235b1b85 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Jul 1 18:36:21 2022 +0200 Create codeql-analysis.yml commit 32d05f3fff0231139df0e590b98097d6c6e3cdfb Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:23:05 2022 +0200 Update index.js commit c3fcdee18406e1a9d96b26c85169e1db365bb36a Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:15:38 2022 +0200 Capital W commit a243d310597b9f8148621690b9662f93b8467e83 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:08:53 2022 +0200 Update index.js commit 068739fc76b96c4379bf93aa39d11db1c2dfcada Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:58:48 2022 +0200 Update README.md commit d61074bde69f5dac1a1a2dd6b2164564131f53d1 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:56:55 2022 +0200 Docker-compose mistake commit 3036905d92d23cb0664559471fa9e0a81565fa64 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:55:30 2022 +0200 README touchups commit 6f07775121cec5cddf17f25efe349b300d43b8e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:48:10 2022 +0200 Rewrote README commit 58a26b11c77e6d21be0f433cd22c4da46f5d0450 Author: Aune <oystein.sverre@gmail.com> Date: Fri Jul 1 10:00:58 2022 +0200 Changed release workflow commit ffeea7ca689f405b6e629411f5bc9fc8c19e6b34 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 20:09:01 2022 +0200 Updated workflow to 1.18 commit aa321e87729673b4ce047f87b68f7223ea02d159 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 19:58:44 2022 +0200 Update README.md commit 5c4e59474882689f6dadf61f140a4ec18f744a1e Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 18:16:30 2022 +0200 CSS fixes commit 97f3fc57a389e5dd637b560e48fee86c4163dcd5 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Jun 29 22:00:32 2022 +0200 Option to disable winter theme And loading screen commit cf804312c7b9b72b416ef2a53947efab79ab604b Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Jun 28 22:05:43 2022 +0200 Update README.md commit 362a15ee1daa2464ad4f27b7e3107a63d736e591 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 28 18:41:19 2022 +0200 Fixed buddy bug commit 58f4d0060230c2349634689438088dcdf48d7715 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jun 27 19:26:37 2022 +0200 Finalized show buddy commit 0f89a1df974af9947d9e297f3c662d4082c0403d Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 26 12:47:37 2022 +0200 Improved logging commit b57cb24928c2e213c38ce566478af11937e6e4e3 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jun 25 13:42:14 2022 +0200 Finalized shareable links Links can be deleted Links are retrieved to the front page Links can be copied to clipboard commit 000022b882877bc306e13203578a3d1e184afc9a Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 18:47:34 2022 +0200 Get share links now functional commit df697f68b2bcedc7c623d9d9ec291a9625b62160 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:29:52 2022 +0200 Share link formatting bug commit 3b357ca72767fcbb9742a935f29770ab488ac36f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:26:15 2022 +0200 Share link creation Started implementation Missing get and delete functionality Added delete cache option to Tautulli settings commit 54e079951ff131d9177fd0f4a79238c03043d875 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jun 10 19:13:01 2022 +0200 Fixed bugs Shows with seasons in different years were split on top lists Amount of media plays was not unique to media-release, just amount of plays overall Fixed display for music minutes Logging can now be disabled Tautulli libraries were not included in API calls commit 26508af56a182b9611affb4401e5db494ae27c8b Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:38:08 2022 +0200 Fixed bug where top-lists under 10 crashed the API commit 0f28e39c8d4fe444c8d30caaaee9ca138d469270 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:17:41 2022 +0200 Fixed bug for year users duration-sum commit 1e3cb11637cfe001936d4b950b28564d2eec2a4b Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 29 19:51:15 2022 +0200 Statistics retrieval finished Revamped config get/set functions Redid some UI explanations Renamed template JSON commit 93390d469bab45560574e678a88b38dcef60f100 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon May 23 22:23:31 2022 +0200 Bug problem commit 3eb49b8da1c77d33923913e817cb41201cab3963 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 23:48:11 2022 +0200 Users commit aa6b3ec5121bb73cbe5828d9f42e1fd14514ddbd Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 13:11:35 2022 +0200 More stats Leaderboard and show buddy missing Working on bug that resets config (?!) commit 29742a2b6305a3835c63fc2c7760018b3e2267f0 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 00:41:19 2022 +0200 Basis for stats retrieval personal movies, shows and music is functional commit a0df0759a76689638d47657abde755cc34dd4a1b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:24 2022 +0200 Removed Docker folder commit 3e192997c08a5406a3d98e850218a674559f9ff0 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:05 2022 +0200 Renaming and Pop-up fix Pop ups should now not be blocked. Hopefully... commit 57b2d03fb57762c6c2aec7433a4f2affd6faa090 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 15:37:26 2022 +0200 CSS changes New rounded corners Transparent background colors Yellow borders Blurred background image Better footer placement More depth to snow particles commit b562e75bee6ff612019fa08d221fbf1ee69edd11 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 12:37:18 2022 +0200 API endpoints changes Get wrapperr-version now also retrieves config-state Login via Plex Auth disabled if Wrapperr is unconfigured Cookies changed to strict samesite value Logging changes commit e01bfc41cf46b3d7bc3b6627c93b67c0f70aa718 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Apr 29 10:47:12 2022 +0200 Update README.md More shields commit 2d2893cb9b212016c3455fd4f8dd3a5b229550ba Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 22:09:24 2022 +0200 Comments and time zone fixes commit 271c16b00e0eb4d58a97ed3b82f0e96993a7d853 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 16:26:44 2022 +0200 Caching and caching loop commit 44376b4d57765258602ec585e59b0825938d3c77 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 10:33:18 2022 +0200 Pulling Tautulli History Moved Tautulli functions to their own file commit 5355dafc68c5c2ed5a7c7e413388981438314500 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 22:00:49 2022 +0200 Start of Tautulli data collection Added time-zone setting in code Created cache structs commit 8bcce997c3b1a0556752ff99b5925cce7e18c4b6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 17:25:06 2022 +0200 Comments and caching mode commit 6e951efbcd6acb0b442a691ceb9919e95d3e9e98 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Apr 23 19:03:00 2022 +0200 User details fetch (From Plex & Tautulli) commit cb5b9384c0b716ef33770a0f96f6e4c0601cff50 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Sat Apr 23 12:07:57 2022 +0200 Shields.io stats commit 343e0ac727576652ccd81e565a7a385879b1bfb4 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 18 22:14:49 2022 +0200 Begun stats function Moved Taut test to separate function from API endpoint commit b7e34224d7524358a4b59bd667d75b3b6527361c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:26:54 2022 +0200 Update util.go commit 4a2598f77cce3c5e9d5fc66e9e870bf3cd4bfb51 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:22:34 2022 +0200 Error handling commit 09b80cf16c054d2767cd1cf50ae17f7f72268a53 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 15:01:59 2022 +0200 Updated readme to explain current standing commit 273b08f43ca317b6cd4ede01efb5040e63cc9839 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:46:34 2022 +0200 Removed test-log commands commit f2e85beb9d4aa9157b32933c50495c5f029787e4 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:26:17 2022 +0200 Removed legacy PHP files commit aaafea6da38173224d1b15063d4f32468ec12879 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:24:41 2022 +0200 URL builder & test Tautulli connection commit a02a172a7fc85a5a595fdb4003b00c8aa7d5f475 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 02:37:48 2022 +0200 Moved Plex Auth Get Pin to front end By moving this API call to the front end (JS), the IP address is identical when logging in. This removes the red warning. commit 744fae84a088cc77ba86d3c3687aff8d9caa77d7 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 01:33:40 2022 +0200 Plex Auth Plex Auth login, validation and JWT token creation commit 820bbca58a5679ef6a1e98ec586442cd841ac958 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 20:45:00 2022 +0200 Update config API now updates config file commit cb581d69007b32e8e924ac22ba66c923dd9eef23 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 15:49:04 2022 +0200 More API functions - Admin login - Config/Admin file creation - Config API retrieval commit f832df727de5c5fe583f03e2d8906714ceaf8017 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 12 09:30:58 2022 +0200 Functional API endpoints Some basic functionality - Retrieve wrapperr version - Retrieve admin state - Create admin commit 76193b7230e90d578bc561c8f479a87885c0b50f Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 11 16:51:35 2022 +0200 Config loaders commit c197a1b91b6307432e560756da97887bbfb36de5 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 8 17:20:36 2022 +0200 Config files commit 2ef850426a14ecf3dc39ab4b122fb479bb1e8f11 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 7 13:16:01 2022 +0200 Functional jwt validattion and creation commit a52de743daeb3dce18db7e0848eea37d4c35b707 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 22:25:01 2022 +0200 Auth token jwt commit 2f446a484ad6e4330a3a40cc708a543ca47ce148 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 14:19:49 2022 +0200 Middleware commit 1a1bc6ef09b9bce995d9d4b3f4bf7b0d1ead988a Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:14:02 2022 +0200 Added more comments commit 8c36dc74a98aa66565851ab01aff91e641287f06 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:08:26 2022 +0200 Port start argument Also included as ENV in Dockerfile commit 6bfbbdf5c3f955ab680ee4b47863bd7f017ffd5a Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Apr 5 23:31:36 2022 +0200 Whopsie commit 7600f2812e01d266f3488ed32a49d1591740a3e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 20:05:13 2022 +0200 Routing commit 0dbb1c756fcd411e60b73752554d75c8bf04f0b5 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 18:20:12 2022 +0200 Added warnings & Dockerfile commit a787a0acd41ab182ca0607dc3c1796a28ce947bd Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 17:51:48 2022 +0200 Go branch init The assets are served, but no API
2022-07-04 15:47:59 +00:00
)
func main() {
utilities.PrintASCII()
gin.SetMode(gin.ReleaseMode)
Squashed commit of the following: commit 23a91e9daad1c482435581c69c756257ac703149 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jul 4 17:47:18 2022 +0200 Removed tmp text commit 1c09e583b2fa5e30a36c809e85fc43b328e3ad7f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jul 3 15:33:36 2022 +0200 Read log in admin interface commit 4ae253185a33bb13a94b1a200bf3aa92a62fb17d Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:27:39 2022 +0200 Added comments commit 89cabc36e86ae541fa9b001928211ba48e9ba48b Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:08:47 2022 +0200 Update index.js commit 12279e7ed47eeb45454ab525aa745eeaac0da180 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:02:36 2022 +0200 Update index.html commit a1c76b3e4d06cd25f7795390155521f2c341465f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 23:56:39 2022 +0200 Errors and frontend Cookies are more stable Errors are more concise commit ee170aeb3acf3f586c93e7b142a08bbb32a17134 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:33:27 2022 +0200 Better error handling commit 6317a1fa15ccfaf91fb2d8737e346621d9884008 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:18:45 2022 +0200 Added returns on errors commit 7126ddf2fbb824de0906fd6d7bfc2ca8acac0fdf Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:09:07 2022 +0200 Added ASCII Art commit 1fd45ede34abe6ae9555d9d6f23f87a2e67dba3b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:39:24 2022 +0200 Form CSS tweak commit 9861c662cd5f2b66721b3d2f2030d92d84bdf8bc Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:24:03 2022 +0200 Update route_admin_auth.go commit 119de6b2b1124266aae6cd5fec90fff2d2ddd24f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:19:36 2022 +0200 Update route_admin_auth.go commit 87a43dfc4945fe5ce45b8d9d06c7dcd6a5c9ee0c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:17:21 2022 +0200 Bugs and CSS Time zone validation Caching log is prettier Return bug on certain API endpoints fixed commit 3e81df71516572944b8e46bad129da82235b1b85 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Jul 1 18:36:21 2022 +0200 Create codeql-analysis.yml commit 32d05f3fff0231139df0e590b98097d6c6e3cdfb Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:23:05 2022 +0200 Update index.js commit c3fcdee18406e1a9d96b26c85169e1db365bb36a Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:15:38 2022 +0200 Capital W commit a243d310597b9f8148621690b9662f93b8467e83 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:08:53 2022 +0200 Update index.js commit 068739fc76b96c4379bf93aa39d11db1c2dfcada Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:58:48 2022 +0200 Update README.md commit d61074bde69f5dac1a1a2dd6b2164564131f53d1 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:56:55 2022 +0200 Docker-compose mistake commit 3036905d92d23cb0664559471fa9e0a81565fa64 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:55:30 2022 +0200 README touchups commit 6f07775121cec5cddf17f25efe349b300d43b8e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:48:10 2022 +0200 Rewrote README commit 58a26b11c77e6d21be0f433cd22c4da46f5d0450 Author: Aune <oystein.sverre@gmail.com> Date: Fri Jul 1 10:00:58 2022 +0200 Changed release workflow commit ffeea7ca689f405b6e629411f5bc9fc8c19e6b34 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 20:09:01 2022 +0200 Updated workflow to 1.18 commit aa321e87729673b4ce047f87b68f7223ea02d159 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 19:58:44 2022 +0200 Update README.md commit 5c4e59474882689f6dadf61f140a4ec18f744a1e Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 18:16:30 2022 +0200 CSS fixes commit 97f3fc57a389e5dd637b560e48fee86c4163dcd5 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Jun 29 22:00:32 2022 +0200 Option to disable winter theme And loading screen commit cf804312c7b9b72b416ef2a53947efab79ab604b Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Jun 28 22:05:43 2022 +0200 Update README.md commit 362a15ee1daa2464ad4f27b7e3107a63d736e591 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 28 18:41:19 2022 +0200 Fixed buddy bug commit 58f4d0060230c2349634689438088dcdf48d7715 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jun 27 19:26:37 2022 +0200 Finalized show buddy commit 0f89a1df974af9947d9e297f3c662d4082c0403d Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 26 12:47:37 2022 +0200 Improved logging commit b57cb24928c2e213c38ce566478af11937e6e4e3 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jun 25 13:42:14 2022 +0200 Finalized shareable links Links can be deleted Links are retrieved to the front page Links can be copied to clipboard commit 000022b882877bc306e13203578a3d1e184afc9a Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 18:47:34 2022 +0200 Get share links now functional commit df697f68b2bcedc7c623d9d9ec291a9625b62160 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:29:52 2022 +0200 Share link formatting bug commit 3b357ca72767fcbb9742a935f29770ab488ac36f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:26:15 2022 +0200 Share link creation Started implementation Missing get and delete functionality Added delete cache option to Tautulli settings commit 54e079951ff131d9177fd0f4a79238c03043d875 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jun 10 19:13:01 2022 +0200 Fixed bugs Shows with seasons in different years were split on top lists Amount of media plays was not unique to media-release, just amount of plays overall Fixed display for music minutes Logging can now be disabled Tautulli libraries were not included in API calls commit 26508af56a182b9611affb4401e5db494ae27c8b Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:38:08 2022 +0200 Fixed bug where top-lists under 10 crashed the API commit 0f28e39c8d4fe444c8d30caaaee9ca138d469270 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:17:41 2022 +0200 Fixed bug for year users duration-sum commit 1e3cb11637cfe001936d4b950b28564d2eec2a4b Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 29 19:51:15 2022 +0200 Statistics retrieval finished Revamped config get/set functions Redid some UI explanations Renamed template JSON commit 93390d469bab45560574e678a88b38dcef60f100 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon May 23 22:23:31 2022 +0200 Bug problem commit 3eb49b8da1c77d33923913e817cb41201cab3963 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 23:48:11 2022 +0200 Users commit aa6b3ec5121bb73cbe5828d9f42e1fd14514ddbd Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 13:11:35 2022 +0200 More stats Leaderboard and show buddy missing Working on bug that resets config (?!) commit 29742a2b6305a3835c63fc2c7760018b3e2267f0 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 00:41:19 2022 +0200 Basis for stats retrieval personal movies, shows and music is functional commit a0df0759a76689638d47657abde755cc34dd4a1b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:24 2022 +0200 Removed Docker folder commit 3e192997c08a5406a3d98e850218a674559f9ff0 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:05 2022 +0200 Renaming and Pop-up fix Pop ups should now not be blocked. Hopefully... commit 57b2d03fb57762c6c2aec7433a4f2affd6faa090 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 15:37:26 2022 +0200 CSS changes New rounded corners Transparent background colors Yellow borders Blurred background image Better footer placement More depth to snow particles commit b562e75bee6ff612019fa08d221fbf1ee69edd11 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 12:37:18 2022 +0200 API endpoints changes Get wrapperr-version now also retrieves config-state Login via Plex Auth disabled if Wrapperr is unconfigured Cookies changed to strict samesite value Logging changes commit e01bfc41cf46b3d7bc3b6627c93b67c0f70aa718 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Apr 29 10:47:12 2022 +0200 Update README.md More shields commit 2d2893cb9b212016c3455fd4f8dd3a5b229550ba Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 22:09:24 2022 +0200 Comments and time zone fixes commit 271c16b00e0eb4d58a97ed3b82f0e96993a7d853 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 16:26:44 2022 +0200 Caching and caching loop commit 44376b4d57765258602ec585e59b0825938d3c77 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 10:33:18 2022 +0200 Pulling Tautulli History Moved Tautulli functions to their own file commit 5355dafc68c5c2ed5a7c7e413388981438314500 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 22:00:49 2022 +0200 Start of Tautulli data collection Added time-zone setting in code Created cache structs commit 8bcce997c3b1a0556752ff99b5925cce7e18c4b6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 17:25:06 2022 +0200 Comments and caching mode commit 6e951efbcd6acb0b442a691ceb9919e95d3e9e98 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Apr 23 19:03:00 2022 +0200 User details fetch (From Plex & Tautulli) commit cb5b9384c0b716ef33770a0f96f6e4c0601cff50 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Sat Apr 23 12:07:57 2022 +0200 Shields.io stats commit 343e0ac727576652ccd81e565a7a385879b1bfb4 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 18 22:14:49 2022 +0200 Begun stats function Moved Taut test to separate function from API endpoint commit b7e34224d7524358a4b59bd667d75b3b6527361c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:26:54 2022 +0200 Update util.go commit 4a2598f77cce3c5e9d5fc66e9e870bf3cd4bfb51 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:22:34 2022 +0200 Error handling commit 09b80cf16c054d2767cd1cf50ae17f7f72268a53 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 15:01:59 2022 +0200 Updated readme to explain current standing commit 273b08f43ca317b6cd4ede01efb5040e63cc9839 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:46:34 2022 +0200 Removed test-log commands commit f2e85beb9d4aa9157b32933c50495c5f029787e4 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:26:17 2022 +0200 Removed legacy PHP files commit aaafea6da38173224d1b15063d4f32468ec12879 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:24:41 2022 +0200 URL builder & test Tautulli connection commit a02a172a7fc85a5a595fdb4003b00c8aa7d5f475 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 02:37:48 2022 +0200 Moved Plex Auth Get Pin to front end By moving this API call to the front end (JS), the IP address is identical when logging in. This removes the red warning. commit 744fae84a088cc77ba86d3c3687aff8d9caa77d7 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 01:33:40 2022 +0200 Plex Auth Plex Auth login, validation and JWT token creation commit 820bbca58a5679ef6a1e98ec586442cd841ac958 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 20:45:00 2022 +0200 Update config API now updates config file commit cb581d69007b32e8e924ac22ba66c923dd9eef23 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 15:49:04 2022 +0200 More API functions - Admin login - Config/Admin file creation - Config API retrieval commit f832df727de5c5fe583f03e2d8906714ceaf8017 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 12 09:30:58 2022 +0200 Functional API endpoints Some basic functionality - Retrieve wrapperr version - Retrieve admin state - Create admin commit 76193b7230e90d578bc561c8f479a87885c0b50f Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 11 16:51:35 2022 +0200 Config loaders commit c197a1b91b6307432e560756da97887bbfb36de5 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 8 17:20:36 2022 +0200 Config files commit 2ef850426a14ecf3dc39ab4b122fb479bb1e8f11 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 7 13:16:01 2022 +0200 Functional jwt validattion and creation commit a52de743daeb3dce18db7e0848eea37d4c35b707 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 22:25:01 2022 +0200 Auth token jwt commit 2f446a484ad6e4330a3a40cc708a543ca47ce148 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 14:19:49 2022 +0200 Middleware commit 1a1bc6ef09b9bce995d9d4b3f4bf7b0d1ead988a Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:14:02 2022 +0200 Added more comments commit 8c36dc74a98aa66565851ab01aff91e641287f06 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:08:26 2022 +0200 Port start argument Also included as ENV in Dockerfile commit 6bfbbdf5c3f955ab680ee4b47863bd7f017ffd5a Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Apr 5 23:31:36 2022 +0200 Whopsie commit 7600f2812e01d266f3488ed32a49d1591740a3e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 20:05:13 2022 +0200 Routing commit 0dbb1c756fcd411e60b73752554d75c8bf04f0b5 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 18:20:12 2022 +0200 Added warnings & Dockerfile commit a787a0acd41ab182ca0607dc3c1796a28ce947bd Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 17:51:48 2022 +0200 Go branch init The assets are served, but no API
2022-07-04 15:47:59 +00:00
// Create and define file for logging
2023-10-24 14:36:21 +00:00
logFile, err := os.OpenFile("config/wrapperr.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0666)
Squashed commit of the following: commit 23a91e9daad1c482435581c69c756257ac703149 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jul 4 17:47:18 2022 +0200 Removed tmp text commit 1c09e583b2fa5e30a36c809e85fc43b328e3ad7f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jul 3 15:33:36 2022 +0200 Read log in admin interface commit 4ae253185a33bb13a94b1a200bf3aa92a62fb17d Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:27:39 2022 +0200 Added comments commit 89cabc36e86ae541fa9b001928211ba48e9ba48b Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:08:47 2022 +0200 Update index.js commit 12279e7ed47eeb45454ab525aa745eeaac0da180 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:02:36 2022 +0200 Update index.html commit a1c76b3e4d06cd25f7795390155521f2c341465f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 23:56:39 2022 +0200 Errors and frontend Cookies are more stable Errors are more concise commit ee170aeb3acf3f586c93e7b142a08bbb32a17134 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:33:27 2022 +0200 Better error handling commit 6317a1fa15ccfaf91fb2d8737e346621d9884008 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:18:45 2022 +0200 Added returns on errors commit 7126ddf2fbb824de0906fd6d7bfc2ca8acac0fdf Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:09:07 2022 +0200 Added ASCII Art commit 1fd45ede34abe6ae9555d9d6f23f87a2e67dba3b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:39:24 2022 +0200 Form CSS tweak commit 9861c662cd5f2b66721b3d2f2030d92d84bdf8bc Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:24:03 2022 +0200 Update route_admin_auth.go commit 119de6b2b1124266aae6cd5fec90fff2d2ddd24f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:19:36 2022 +0200 Update route_admin_auth.go commit 87a43dfc4945fe5ce45b8d9d06c7dcd6a5c9ee0c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:17:21 2022 +0200 Bugs and CSS Time zone validation Caching log is prettier Return bug on certain API endpoints fixed commit 3e81df71516572944b8e46bad129da82235b1b85 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Jul 1 18:36:21 2022 +0200 Create codeql-analysis.yml commit 32d05f3fff0231139df0e590b98097d6c6e3cdfb Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:23:05 2022 +0200 Update index.js commit c3fcdee18406e1a9d96b26c85169e1db365bb36a Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:15:38 2022 +0200 Capital W commit a243d310597b9f8148621690b9662f93b8467e83 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:08:53 2022 +0200 Update index.js commit 068739fc76b96c4379bf93aa39d11db1c2dfcada Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:58:48 2022 +0200 Update README.md commit d61074bde69f5dac1a1a2dd6b2164564131f53d1 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:56:55 2022 +0200 Docker-compose mistake commit 3036905d92d23cb0664559471fa9e0a81565fa64 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:55:30 2022 +0200 README touchups commit 6f07775121cec5cddf17f25efe349b300d43b8e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:48:10 2022 +0200 Rewrote README commit 58a26b11c77e6d21be0f433cd22c4da46f5d0450 Author: Aune <oystein.sverre@gmail.com> Date: Fri Jul 1 10:00:58 2022 +0200 Changed release workflow commit ffeea7ca689f405b6e629411f5bc9fc8c19e6b34 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 20:09:01 2022 +0200 Updated workflow to 1.18 commit aa321e87729673b4ce047f87b68f7223ea02d159 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 19:58:44 2022 +0200 Update README.md commit 5c4e59474882689f6dadf61f140a4ec18f744a1e Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 18:16:30 2022 +0200 CSS fixes commit 97f3fc57a389e5dd637b560e48fee86c4163dcd5 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Jun 29 22:00:32 2022 +0200 Option to disable winter theme And loading screen commit cf804312c7b9b72b416ef2a53947efab79ab604b Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Jun 28 22:05:43 2022 +0200 Update README.md commit 362a15ee1daa2464ad4f27b7e3107a63d736e591 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 28 18:41:19 2022 +0200 Fixed buddy bug commit 58f4d0060230c2349634689438088dcdf48d7715 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jun 27 19:26:37 2022 +0200 Finalized show buddy commit 0f89a1df974af9947d9e297f3c662d4082c0403d Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 26 12:47:37 2022 +0200 Improved logging commit b57cb24928c2e213c38ce566478af11937e6e4e3 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jun 25 13:42:14 2022 +0200 Finalized shareable links Links can be deleted Links are retrieved to the front page Links can be copied to clipboard commit 000022b882877bc306e13203578a3d1e184afc9a Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 18:47:34 2022 +0200 Get share links now functional commit df697f68b2bcedc7c623d9d9ec291a9625b62160 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:29:52 2022 +0200 Share link formatting bug commit 3b357ca72767fcbb9742a935f29770ab488ac36f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:26:15 2022 +0200 Share link creation Started implementation Missing get and delete functionality Added delete cache option to Tautulli settings commit 54e079951ff131d9177fd0f4a79238c03043d875 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jun 10 19:13:01 2022 +0200 Fixed bugs Shows with seasons in different years were split on top lists Amount of media plays was not unique to media-release, just amount of plays overall Fixed display for music minutes Logging can now be disabled Tautulli libraries were not included in API calls commit 26508af56a182b9611affb4401e5db494ae27c8b Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:38:08 2022 +0200 Fixed bug where top-lists under 10 crashed the API commit 0f28e39c8d4fe444c8d30caaaee9ca138d469270 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:17:41 2022 +0200 Fixed bug for year users duration-sum commit 1e3cb11637cfe001936d4b950b28564d2eec2a4b Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 29 19:51:15 2022 +0200 Statistics retrieval finished Revamped config get/set functions Redid some UI explanations Renamed template JSON commit 93390d469bab45560574e678a88b38dcef60f100 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon May 23 22:23:31 2022 +0200 Bug problem commit 3eb49b8da1c77d33923913e817cb41201cab3963 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 23:48:11 2022 +0200 Users commit aa6b3ec5121bb73cbe5828d9f42e1fd14514ddbd Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 13:11:35 2022 +0200 More stats Leaderboard and show buddy missing Working on bug that resets config (?!) commit 29742a2b6305a3835c63fc2c7760018b3e2267f0 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 00:41:19 2022 +0200 Basis for stats retrieval personal movies, shows and music is functional commit a0df0759a76689638d47657abde755cc34dd4a1b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:24 2022 +0200 Removed Docker folder commit 3e192997c08a5406a3d98e850218a674559f9ff0 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:05 2022 +0200 Renaming and Pop-up fix Pop ups should now not be blocked. Hopefully... commit 57b2d03fb57762c6c2aec7433a4f2affd6faa090 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 15:37:26 2022 +0200 CSS changes New rounded corners Transparent background colors Yellow borders Blurred background image Better footer placement More depth to snow particles commit b562e75bee6ff612019fa08d221fbf1ee69edd11 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 12:37:18 2022 +0200 API endpoints changes Get wrapperr-version now also retrieves config-state Login via Plex Auth disabled if Wrapperr is unconfigured Cookies changed to strict samesite value Logging changes commit e01bfc41cf46b3d7bc3b6627c93b67c0f70aa718 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Apr 29 10:47:12 2022 +0200 Update README.md More shields commit 2d2893cb9b212016c3455fd4f8dd3a5b229550ba Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 22:09:24 2022 +0200 Comments and time zone fixes commit 271c16b00e0eb4d58a97ed3b82f0e96993a7d853 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 16:26:44 2022 +0200 Caching and caching loop commit 44376b4d57765258602ec585e59b0825938d3c77 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 10:33:18 2022 +0200 Pulling Tautulli History Moved Tautulli functions to their own file commit 5355dafc68c5c2ed5a7c7e413388981438314500 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 22:00:49 2022 +0200 Start of Tautulli data collection Added time-zone setting in code Created cache structs commit 8bcce997c3b1a0556752ff99b5925cce7e18c4b6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 17:25:06 2022 +0200 Comments and caching mode commit 6e951efbcd6acb0b442a691ceb9919e95d3e9e98 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Apr 23 19:03:00 2022 +0200 User details fetch (From Plex & Tautulli) commit cb5b9384c0b716ef33770a0f96f6e4c0601cff50 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Sat Apr 23 12:07:57 2022 +0200 Shields.io stats commit 343e0ac727576652ccd81e565a7a385879b1bfb4 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 18 22:14:49 2022 +0200 Begun stats function Moved Taut test to separate function from API endpoint commit b7e34224d7524358a4b59bd667d75b3b6527361c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:26:54 2022 +0200 Update util.go commit 4a2598f77cce3c5e9d5fc66e9e870bf3cd4bfb51 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:22:34 2022 +0200 Error handling commit 09b80cf16c054d2767cd1cf50ae17f7f72268a53 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 15:01:59 2022 +0200 Updated readme to explain current standing commit 273b08f43ca317b6cd4ede01efb5040e63cc9839 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:46:34 2022 +0200 Removed test-log commands commit f2e85beb9d4aa9157b32933c50495c5f029787e4 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:26:17 2022 +0200 Removed legacy PHP files commit aaafea6da38173224d1b15063d4f32468ec12879 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:24:41 2022 +0200 URL builder & test Tautulli connection commit a02a172a7fc85a5a595fdb4003b00c8aa7d5f475 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 02:37:48 2022 +0200 Moved Plex Auth Get Pin to front end By moving this API call to the front end (JS), the IP address is identical when logging in. This removes the red warning. commit 744fae84a088cc77ba86d3c3687aff8d9caa77d7 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 01:33:40 2022 +0200 Plex Auth Plex Auth login, validation and JWT token creation commit 820bbca58a5679ef6a1e98ec586442cd841ac958 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 20:45:00 2022 +0200 Update config API now updates config file commit cb581d69007b32e8e924ac22ba66c923dd9eef23 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 15:49:04 2022 +0200 More API functions - Admin login - Config/Admin file creation - Config API retrieval commit f832df727de5c5fe583f03e2d8906714ceaf8017 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 12 09:30:58 2022 +0200 Functional API endpoints Some basic functionality - Retrieve wrapperr version - Retrieve admin state - Create admin commit 76193b7230e90d578bc561c8f479a87885c0b50f Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 11 16:51:35 2022 +0200 Config loaders commit c197a1b91b6307432e560756da97887bbfb36de5 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 8 17:20:36 2022 +0200 Config files commit 2ef850426a14ecf3dc39ab4b122fb479bb1e8f11 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 7 13:16:01 2022 +0200 Functional jwt validattion and creation commit a52de743daeb3dce18db7e0848eea37d4c35b707 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 22:25:01 2022 +0200 Auth token jwt commit 2f446a484ad6e4330a3a40cc708a543ca47ce148 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 14:19:49 2022 +0200 Middleware commit 1a1bc6ef09b9bce995d9d4b3f4bf7b0d1ead988a Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:14:02 2022 +0200 Added more comments commit 8c36dc74a98aa66565851ab01aff91e641287f06 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:08:26 2022 +0200 Port start argument Also included as ENV in Dockerfile commit 6bfbbdf5c3f955ab680ee4b47863bd7f017ffd5a Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Apr 5 23:31:36 2022 +0200 Whopsie commit 7600f2812e01d266f3488ed32a49d1591740a3e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 20:05:13 2022 +0200 Routing commit 0dbb1c756fcd411e60b73752554d75c8bf04f0b5 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 18:20:12 2022 +0200 Added warnings & Dockerfile commit a787a0acd41ab182ca0607dc3c1796a28ce947bd Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 17:51:48 2022 +0200 Go branch init The assets are served, but no API
2022-07-04 15:47:59 +00:00
if err != nil {
2023-10-24 14:36:21 +00:00
fmt.Println("Failed to load log file. Error: " + err.Error())
Squashed commit of the following: commit 23a91e9daad1c482435581c69c756257ac703149 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jul 4 17:47:18 2022 +0200 Removed tmp text commit 1c09e583b2fa5e30a36c809e85fc43b328e3ad7f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jul 3 15:33:36 2022 +0200 Read log in admin interface commit 4ae253185a33bb13a94b1a200bf3aa92a62fb17d Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:27:39 2022 +0200 Added comments commit 89cabc36e86ae541fa9b001928211ba48e9ba48b Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:08:47 2022 +0200 Update index.js commit 12279e7ed47eeb45454ab525aa745eeaac0da180 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:02:36 2022 +0200 Update index.html commit a1c76b3e4d06cd25f7795390155521f2c341465f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 23:56:39 2022 +0200 Errors and frontend Cookies are more stable Errors are more concise commit ee170aeb3acf3f586c93e7b142a08bbb32a17134 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:33:27 2022 +0200 Better error handling commit 6317a1fa15ccfaf91fb2d8737e346621d9884008 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:18:45 2022 +0200 Added returns on errors commit 7126ddf2fbb824de0906fd6d7bfc2ca8acac0fdf Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:09:07 2022 +0200 Added ASCII Art commit 1fd45ede34abe6ae9555d9d6f23f87a2e67dba3b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:39:24 2022 +0200 Form CSS tweak commit 9861c662cd5f2b66721b3d2f2030d92d84bdf8bc Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:24:03 2022 +0200 Update route_admin_auth.go commit 119de6b2b1124266aae6cd5fec90fff2d2ddd24f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:19:36 2022 +0200 Update route_admin_auth.go commit 87a43dfc4945fe5ce45b8d9d06c7dcd6a5c9ee0c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:17:21 2022 +0200 Bugs and CSS Time zone validation Caching log is prettier Return bug on certain API endpoints fixed commit 3e81df71516572944b8e46bad129da82235b1b85 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Jul 1 18:36:21 2022 +0200 Create codeql-analysis.yml commit 32d05f3fff0231139df0e590b98097d6c6e3cdfb Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:23:05 2022 +0200 Update index.js commit c3fcdee18406e1a9d96b26c85169e1db365bb36a Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:15:38 2022 +0200 Capital W commit a243d310597b9f8148621690b9662f93b8467e83 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:08:53 2022 +0200 Update index.js commit 068739fc76b96c4379bf93aa39d11db1c2dfcada Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:58:48 2022 +0200 Update README.md commit d61074bde69f5dac1a1a2dd6b2164564131f53d1 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:56:55 2022 +0200 Docker-compose mistake commit 3036905d92d23cb0664559471fa9e0a81565fa64 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:55:30 2022 +0200 README touchups commit 6f07775121cec5cddf17f25efe349b300d43b8e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:48:10 2022 +0200 Rewrote README commit 58a26b11c77e6d21be0f433cd22c4da46f5d0450 Author: Aune <oystein.sverre@gmail.com> Date: Fri Jul 1 10:00:58 2022 +0200 Changed release workflow commit ffeea7ca689f405b6e629411f5bc9fc8c19e6b34 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 20:09:01 2022 +0200 Updated workflow to 1.18 commit aa321e87729673b4ce047f87b68f7223ea02d159 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 19:58:44 2022 +0200 Update README.md commit 5c4e59474882689f6dadf61f140a4ec18f744a1e Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 18:16:30 2022 +0200 CSS fixes commit 97f3fc57a389e5dd637b560e48fee86c4163dcd5 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Jun 29 22:00:32 2022 +0200 Option to disable winter theme And loading screen commit cf804312c7b9b72b416ef2a53947efab79ab604b Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Jun 28 22:05:43 2022 +0200 Update README.md commit 362a15ee1daa2464ad4f27b7e3107a63d736e591 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 28 18:41:19 2022 +0200 Fixed buddy bug commit 58f4d0060230c2349634689438088dcdf48d7715 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jun 27 19:26:37 2022 +0200 Finalized show buddy commit 0f89a1df974af9947d9e297f3c662d4082c0403d Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 26 12:47:37 2022 +0200 Improved logging commit b57cb24928c2e213c38ce566478af11937e6e4e3 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jun 25 13:42:14 2022 +0200 Finalized shareable links Links can be deleted Links are retrieved to the front page Links can be copied to clipboard commit 000022b882877bc306e13203578a3d1e184afc9a Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 18:47:34 2022 +0200 Get share links now functional commit df697f68b2bcedc7c623d9d9ec291a9625b62160 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:29:52 2022 +0200 Share link formatting bug commit 3b357ca72767fcbb9742a935f29770ab488ac36f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:26:15 2022 +0200 Share link creation Started implementation Missing get and delete functionality Added delete cache option to Tautulli settings commit 54e079951ff131d9177fd0f4a79238c03043d875 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jun 10 19:13:01 2022 +0200 Fixed bugs Shows with seasons in different years were split on top lists Amount of media plays was not unique to media-release, just amount of plays overall Fixed display for music minutes Logging can now be disabled Tautulli libraries were not included in API calls commit 26508af56a182b9611affb4401e5db494ae27c8b Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:38:08 2022 +0200 Fixed bug where top-lists under 10 crashed the API commit 0f28e39c8d4fe444c8d30caaaee9ca138d469270 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:17:41 2022 +0200 Fixed bug for year users duration-sum commit 1e3cb11637cfe001936d4b950b28564d2eec2a4b Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 29 19:51:15 2022 +0200 Statistics retrieval finished Revamped config get/set functions Redid some UI explanations Renamed template JSON commit 93390d469bab45560574e678a88b38dcef60f100 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon May 23 22:23:31 2022 +0200 Bug problem commit 3eb49b8da1c77d33923913e817cb41201cab3963 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 23:48:11 2022 +0200 Users commit aa6b3ec5121bb73cbe5828d9f42e1fd14514ddbd Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 13:11:35 2022 +0200 More stats Leaderboard and show buddy missing Working on bug that resets config (?!) commit 29742a2b6305a3835c63fc2c7760018b3e2267f0 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 00:41:19 2022 +0200 Basis for stats retrieval personal movies, shows and music is functional commit a0df0759a76689638d47657abde755cc34dd4a1b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:24 2022 +0200 Removed Docker folder commit 3e192997c08a5406a3d98e850218a674559f9ff0 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:05 2022 +0200 Renaming and Pop-up fix Pop ups should now not be blocked. Hopefully... commit 57b2d03fb57762c6c2aec7433a4f2affd6faa090 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 15:37:26 2022 +0200 CSS changes New rounded corners Transparent background colors Yellow borders Blurred background image Better footer placement More depth to snow particles commit b562e75bee6ff612019fa08d221fbf1ee69edd11 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 12:37:18 2022 +0200 API endpoints changes Get wrapperr-version now also retrieves config-state Login via Plex Auth disabled if Wrapperr is unconfigured Cookies changed to strict samesite value Logging changes commit e01bfc41cf46b3d7bc3b6627c93b67c0f70aa718 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Apr 29 10:47:12 2022 +0200 Update README.md More shields commit 2d2893cb9b212016c3455fd4f8dd3a5b229550ba Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 22:09:24 2022 +0200 Comments and time zone fixes commit 271c16b00e0eb4d58a97ed3b82f0e96993a7d853 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 16:26:44 2022 +0200 Caching and caching loop commit 44376b4d57765258602ec585e59b0825938d3c77 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 10:33:18 2022 +0200 Pulling Tautulli History Moved Tautulli functions to their own file commit 5355dafc68c5c2ed5a7c7e413388981438314500 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 22:00:49 2022 +0200 Start of Tautulli data collection Added time-zone setting in code Created cache structs commit 8bcce997c3b1a0556752ff99b5925cce7e18c4b6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 17:25:06 2022 +0200 Comments and caching mode commit 6e951efbcd6acb0b442a691ceb9919e95d3e9e98 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Apr 23 19:03:00 2022 +0200 User details fetch (From Plex & Tautulli) commit cb5b9384c0b716ef33770a0f96f6e4c0601cff50 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Sat Apr 23 12:07:57 2022 +0200 Shields.io stats commit 343e0ac727576652ccd81e565a7a385879b1bfb4 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 18 22:14:49 2022 +0200 Begun stats function Moved Taut test to separate function from API endpoint commit b7e34224d7524358a4b59bd667d75b3b6527361c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:26:54 2022 +0200 Update util.go commit 4a2598f77cce3c5e9d5fc66e9e870bf3cd4bfb51 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:22:34 2022 +0200 Error handling commit 09b80cf16c054d2767cd1cf50ae17f7f72268a53 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 15:01:59 2022 +0200 Updated readme to explain current standing commit 273b08f43ca317b6cd4ede01efb5040e63cc9839 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:46:34 2022 +0200 Removed test-log commands commit f2e85beb9d4aa9157b32933c50495c5f029787e4 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:26:17 2022 +0200 Removed legacy PHP files commit aaafea6da38173224d1b15063d4f32468ec12879 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:24:41 2022 +0200 URL builder & test Tautulli connection commit a02a172a7fc85a5a595fdb4003b00c8aa7d5f475 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 02:37:48 2022 +0200 Moved Plex Auth Get Pin to front end By moving this API call to the front end (JS), the IP address is identical when logging in. This removes the red warning. commit 744fae84a088cc77ba86d3c3687aff8d9caa77d7 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 01:33:40 2022 +0200 Plex Auth Plex Auth login, validation and JWT token creation commit 820bbca58a5679ef6a1e98ec586442cd841ac958 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 20:45:00 2022 +0200 Update config API now updates config file commit cb581d69007b32e8e924ac22ba66c923dd9eef23 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 15:49:04 2022 +0200 More API functions - Admin login - Config/Admin file creation - Config API retrieval commit f832df727de5c5fe583f03e2d8906714ceaf8017 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 12 09:30:58 2022 +0200 Functional API endpoints Some basic functionality - Retrieve wrapperr version - Retrieve admin state - Create admin commit 76193b7230e90d578bc561c8f479a87885c0b50f Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 11 16:51:35 2022 +0200 Config loaders commit c197a1b91b6307432e560756da97887bbfb36de5 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 8 17:20:36 2022 +0200 Config files commit 2ef850426a14ecf3dc39ab4b122fb479bb1e8f11 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 7 13:16:01 2022 +0200 Functional jwt validattion and creation commit a52de743daeb3dce18db7e0848eea37d4c35b707 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 22:25:01 2022 +0200 Auth token jwt commit 2f446a484ad6e4330a3a40cc708a543ca47ce148 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 14:19:49 2022 +0200 Middleware commit 1a1bc6ef09b9bce995d9d4b3f4bf7b0d1ead988a Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:14:02 2022 +0200 Added more comments commit 8c36dc74a98aa66565851ab01aff91e641287f06 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:08:26 2022 +0200 Port start argument Also included as ENV in Dockerfile commit 6bfbbdf5c3f955ab680ee4b47863bd7f017ffd5a Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Apr 5 23:31:36 2022 +0200 Whopsie commit 7600f2812e01d266f3488ed32a49d1591740a3e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 20:05:13 2022 +0200 Routing commit 0dbb1c756fcd411e60b73752554d75c8bf04f0b5 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 18:20:12 2022 +0200 Added warnings & Dockerfile commit a787a0acd41ab182ca0607dc3c1796a28ce947bd Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 17:51:48 2022 +0200 Go branch init The assets are served, but no API
2022-07-04 15:47:59 +00:00
os.Exit(1)
}
2023-10-24 14:36:21 +00:00
// Set log file as log destination
log.SetOutput(logFile)
fmt.Println("Log file set.")
// Load config file
config, err := files.GetConfig()
Squashed commit of the following: commit 23a91e9daad1c482435581c69c756257ac703149 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jul 4 17:47:18 2022 +0200 Removed tmp text commit 1c09e583b2fa5e30a36c809e85fc43b328e3ad7f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jul 3 15:33:36 2022 +0200 Read log in admin interface commit 4ae253185a33bb13a94b1a200bf3aa92a62fb17d Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:27:39 2022 +0200 Added comments commit 89cabc36e86ae541fa9b001928211ba48e9ba48b Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:08:47 2022 +0200 Update index.js commit 12279e7ed47eeb45454ab525aa745eeaac0da180 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:02:36 2022 +0200 Update index.html commit a1c76b3e4d06cd25f7795390155521f2c341465f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 23:56:39 2022 +0200 Errors and frontend Cookies are more stable Errors are more concise commit ee170aeb3acf3f586c93e7b142a08bbb32a17134 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:33:27 2022 +0200 Better error handling commit 6317a1fa15ccfaf91fb2d8737e346621d9884008 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:18:45 2022 +0200 Added returns on errors commit 7126ddf2fbb824de0906fd6d7bfc2ca8acac0fdf Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:09:07 2022 +0200 Added ASCII Art commit 1fd45ede34abe6ae9555d9d6f23f87a2e67dba3b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:39:24 2022 +0200 Form CSS tweak commit 9861c662cd5f2b66721b3d2f2030d92d84bdf8bc Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:24:03 2022 +0200 Update route_admin_auth.go commit 119de6b2b1124266aae6cd5fec90fff2d2ddd24f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:19:36 2022 +0200 Update route_admin_auth.go commit 87a43dfc4945fe5ce45b8d9d06c7dcd6a5c9ee0c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:17:21 2022 +0200 Bugs and CSS Time zone validation Caching log is prettier Return bug on certain API endpoints fixed commit 3e81df71516572944b8e46bad129da82235b1b85 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Jul 1 18:36:21 2022 +0200 Create codeql-analysis.yml commit 32d05f3fff0231139df0e590b98097d6c6e3cdfb Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:23:05 2022 +0200 Update index.js commit c3fcdee18406e1a9d96b26c85169e1db365bb36a Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:15:38 2022 +0200 Capital W commit a243d310597b9f8148621690b9662f93b8467e83 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:08:53 2022 +0200 Update index.js commit 068739fc76b96c4379bf93aa39d11db1c2dfcada Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:58:48 2022 +0200 Update README.md commit d61074bde69f5dac1a1a2dd6b2164564131f53d1 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:56:55 2022 +0200 Docker-compose mistake commit 3036905d92d23cb0664559471fa9e0a81565fa64 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:55:30 2022 +0200 README touchups commit 6f07775121cec5cddf17f25efe349b300d43b8e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:48:10 2022 +0200 Rewrote README commit 58a26b11c77e6d21be0f433cd22c4da46f5d0450 Author: Aune <oystein.sverre@gmail.com> Date: Fri Jul 1 10:00:58 2022 +0200 Changed release workflow commit ffeea7ca689f405b6e629411f5bc9fc8c19e6b34 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 20:09:01 2022 +0200 Updated workflow to 1.18 commit aa321e87729673b4ce047f87b68f7223ea02d159 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 19:58:44 2022 +0200 Update README.md commit 5c4e59474882689f6dadf61f140a4ec18f744a1e Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 18:16:30 2022 +0200 CSS fixes commit 97f3fc57a389e5dd637b560e48fee86c4163dcd5 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Jun 29 22:00:32 2022 +0200 Option to disable winter theme And loading screen commit cf804312c7b9b72b416ef2a53947efab79ab604b Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Jun 28 22:05:43 2022 +0200 Update README.md commit 362a15ee1daa2464ad4f27b7e3107a63d736e591 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 28 18:41:19 2022 +0200 Fixed buddy bug commit 58f4d0060230c2349634689438088dcdf48d7715 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jun 27 19:26:37 2022 +0200 Finalized show buddy commit 0f89a1df974af9947d9e297f3c662d4082c0403d Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 26 12:47:37 2022 +0200 Improved logging commit b57cb24928c2e213c38ce566478af11937e6e4e3 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jun 25 13:42:14 2022 +0200 Finalized shareable links Links can be deleted Links are retrieved to the front page Links can be copied to clipboard commit 000022b882877bc306e13203578a3d1e184afc9a Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 18:47:34 2022 +0200 Get share links now functional commit df697f68b2bcedc7c623d9d9ec291a9625b62160 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:29:52 2022 +0200 Share link formatting bug commit 3b357ca72767fcbb9742a935f29770ab488ac36f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:26:15 2022 +0200 Share link creation Started implementation Missing get and delete functionality Added delete cache option to Tautulli settings commit 54e079951ff131d9177fd0f4a79238c03043d875 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jun 10 19:13:01 2022 +0200 Fixed bugs Shows with seasons in different years were split on top lists Amount of media plays was not unique to media-release, just amount of plays overall Fixed display for music minutes Logging can now be disabled Tautulli libraries were not included in API calls commit 26508af56a182b9611affb4401e5db494ae27c8b Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:38:08 2022 +0200 Fixed bug where top-lists under 10 crashed the API commit 0f28e39c8d4fe444c8d30caaaee9ca138d469270 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:17:41 2022 +0200 Fixed bug for year users duration-sum commit 1e3cb11637cfe001936d4b950b28564d2eec2a4b Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 29 19:51:15 2022 +0200 Statistics retrieval finished Revamped config get/set functions Redid some UI explanations Renamed template JSON commit 93390d469bab45560574e678a88b38dcef60f100 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon May 23 22:23:31 2022 +0200 Bug problem commit 3eb49b8da1c77d33923913e817cb41201cab3963 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 23:48:11 2022 +0200 Users commit aa6b3ec5121bb73cbe5828d9f42e1fd14514ddbd Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 13:11:35 2022 +0200 More stats Leaderboard and show buddy missing Working on bug that resets config (?!) commit 29742a2b6305a3835c63fc2c7760018b3e2267f0 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 00:41:19 2022 +0200 Basis for stats retrieval personal movies, shows and music is functional commit a0df0759a76689638d47657abde755cc34dd4a1b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:24 2022 +0200 Removed Docker folder commit 3e192997c08a5406a3d98e850218a674559f9ff0 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:05 2022 +0200 Renaming and Pop-up fix Pop ups should now not be blocked. Hopefully... commit 57b2d03fb57762c6c2aec7433a4f2affd6faa090 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 15:37:26 2022 +0200 CSS changes New rounded corners Transparent background colors Yellow borders Blurred background image Better footer placement More depth to snow particles commit b562e75bee6ff612019fa08d221fbf1ee69edd11 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 12:37:18 2022 +0200 API endpoints changes Get wrapperr-version now also retrieves config-state Login via Plex Auth disabled if Wrapperr is unconfigured Cookies changed to strict samesite value Logging changes commit e01bfc41cf46b3d7bc3b6627c93b67c0f70aa718 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Apr 29 10:47:12 2022 +0200 Update README.md More shields commit 2d2893cb9b212016c3455fd4f8dd3a5b229550ba Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 22:09:24 2022 +0200 Comments and time zone fixes commit 271c16b00e0eb4d58a97ed3b82f0e96993a7d853 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 16:26:44 2022 +0200 Caching and caching loop commit 44376b4d57765258602ec585e59b0825938d3c77 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 10:33:18 2022 +0200 Pulling Tautulli History Moved Tautulli functions to their own file commit 5355dafc68c5c2ed5a7c7e413388981438314500 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 22:00:49 2022 +0200 Start of Tautulli data collection Added time-zone setting in code Created cache structs commit 8bcce997c3b1a0556752ff99b5925cce7e18c4b6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 17:25:06 2022 +0200 Comments and caching mode commit 6e951efbcd6acb0b442a691ceb9919e95d3e9e98 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Apr 23 19:03:00 2022 +0200 User details fetch (From Plex & Tautulli) commit cb5b9384c0b716ef33770a0f96f6e4c0601cff50 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Sat Apr 23 12:07:57 2022 +0200 Shields.io stats commit 343e0ac727576652ccd81e565a7a385879b1bfb4 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 18 22:14:49 2022 +0200 Begun stats function Moved Taut test to separate function from API endpoint commit b7e34224d7524358a4b59bd667d75b3b6527361c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:26:54 2022 +0200 Update util.go commit 4a2598f77cce3c5e9d5fc66e9e870bf3cd4bfb51 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:22:34 2022 +0200 Error handling commit 09b80cf16c054d2767cd1cf50ae17f7f72268a53 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 15:01:59 2022 +0200 Updated readme to explain current standing commit 273b08f43ca317b6cd4ede01efb5040e63cc9839 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:46:34 2022 +0200 Removed test-log commands commit f2e85beb9d4aa9157b32933c50495c5f029787e4 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:26:17 2022 +0200 Removed legacy PHP files commit aaafea6da38173224d1b15063d4f32468ec12879 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:24:41 2022 +0200 URL builder & test Tautulli connection commit a02a172a7fc85a5a595fdb4003b00c8aa7d5f475 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 02:37:48 2022 +0200 Moved Plex Auth Get Pin to front end By moving this API call to the front end (JS), the IP address is identical when logging in. This removes the red warning. commit 744fae84a088cc77ba86d3c3687aff8d9caa77d7 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 01:33:40 2022 +0200 Plex Auth Plex Auth login, validation and JWT token creation commit 820bbca58a5679ef6a1e98ec586442cd841ac958 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 20:45:00 2022 +0200 Update config API now updates config file commit cb581d69007b32e8e924ac22ba66c923dd9eef23 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 15:49:04 2022 +0200 More API functions - Admin login - Config/Admin file creation - Config API retrieval commit f832df727de5c5fe583f03e2d8906714ceaf8017 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 12 09:30:58 2022 +0200 Functional API endpoints Some basic functionality - Retrieve wrapperr version - Retrieve admin state - Create admin commit 76193b7230e90d578bc561c8f479a87885c0b50f Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 11 16:51:35 2022 +0200 Config loaders commit c197a1b91b6307432e560756da97887bbfb36de5 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 8 17:20:36 2022 +0200 Config files commit 2ef850426a14ecf3dc39ab4b122fb479bb1e8f11 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 7 13:16:01 2022 +0200 Functional jwt validattion and creation commit a52de743daeb3dce18db7e0848eea37d4c35b707 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 22:25:01 2022 +0200 Auth token jwt commit 2f446a484ad6e4330a3a40cc708a543ca47ce148 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 14:19:49 2022 +0200 Middleware commit 1a1bc6ef09b9bce995d9d4b3f4bf7b0d1ead988a Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:14:02 2022 +0200 Added more comments commit 8c36dc74a98aa66565851ab01aff91e641287f06 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:08:26 2022 +0200 Port start argument Also included as ENV in Dockerfile commit 6bfbbdf5c3f955ab680ee4b47863bd7f017ffd5a Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Apr 5 23:31:36 2022 +0200 Whopsie commit 7600f2812e01d266f3488ed32a49d1591740a3e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 20:05:13 2022 +0200 Routing commit 0dbb1c756fcd411e60b73752554d75c8bf04f0b5 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 18:20:12 2022 +0200 Added warnings & Dockerfile commit a787a0acd41ab182ca0607dc3c1796a28ce947bd Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 17:51:48 2022 +0200 Go branch init The assets are served, but no API
2022-07-04 15:47:59 +00:00
if err != nil {
2022-12-11 16:39:53 +00:00
fmt.Println("Failed to load configuration file. Error: " + err.Error())
Squashed commit of the following: commit 23a91e9daad1c482435581c69c756257ac703149 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jul 4 17:47:18 2022 +0200 Removed tmp text commit 1c09e583b2fa5e30a36c809e85fc43b328e3ad7f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jul 3 15:33:36 2022 +0200 Read log in admin interface commit 4ae253185a33bb13a94b1a200bf3aa92a62fb17d Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:27:39 2022 +0200 Added comments commit 89cabc36e86ae541fa9b001928211ba48e9ba48b Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:08:47 2022 +0200 Update index.js commit 12279e7ed47eeb45454ab525aa745eeaac0da180 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:02:36 2022 +0200 Update index.html commit a1c76b3e4d06cd25f7795390155521f2c341465f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 23:56:39 2022 +0200 Errors and frontend Cookies are more stable Errors are more concise commit ee170aeb3acf3f586c93e7b142a08bbb32a17134 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:33:27 2022 +0200 Better error handling commit 6317a1fa15ccfaf91fb2d8737e346621d9884008 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:18:45 2022 +0200 Added returns on errors commit 7126ddf2fbb824de0906fd6d7bfc2ca8acac0fdf Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:09:07 2022 +0200 Added ASCII Art commit 1fd45ede34abe6ae9555d9d6f23f87a2e67dba3b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:39:24 2022 +0200 Form CSS tweak commit 9861c662cd5f2b66721b3d2f2030d92d84bdf8bc Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:24:03 2022 +0200 Update route_admin_auth.go commit 119de6b2b1124266aae6cd5fec90fff2d2ddd24f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:19:36 2022 +0200 Update route_admin_auth.go commit 87a43dfc4945fe5ce45b8d9d06c7dcd6a5c9ee0c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:17:21 2022 +0200 Bugs and CSS Time zone validation Caching log is prettier Return bug on certain API endpoints fixed commit 3e81df71516572944b8e46bad129da82235b1b85 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Jul 1 18:36:21 2022 +0200 Create codeql-analysis.yml commit 32d05f3fff0231139df0e590b98097d6c6e3cdfb Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:23:05 2022 +0200 Update index.js commit c3fcdee18406e1a9d96b26c85169e1db365bb36a Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:15:38 2022 +0200 Capital W commit a243d310597b9f8148621690b9662f93b8467e83 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:08:53 2022 +0200 Update index.js commit 068739fc76b96c4379bf93aa39d11db1c2dfcada Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:58:48 2022 +0200 Update README.md commit d61074bde69f5dac1a1a2dd6b2164564131f53d1 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:56:55 2022 +0200 Docker-compose mistake commit 3036905d92d23cb0664559471fa9e0a81565fa64 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:55:30 2022 +0200 README touchups commit 6f07775121cec5cddf17f25efe349b300d43b8e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:48:10 2022 +0200 Rewrote README commit 58a26b11c77e6d21be0f433cd22c4da46f5d0450 Author: Aune <oystein.sverre@gmail.com> Date: Fri Jul 1 10:00:58 2022 +0200 Changed release workflow commit ffeea7ca689f405b6e629411f5bc9fc8c19e6b34 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 20:09:01 2022 +0200 Updated workflow to 1.18 commit aa321e87729673b4ce047f87b68f7223ea02d159 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 19:58:44 2022 +0200 Update README.md commit 5c4e59474882689f6dadf61f140a4ec18f744a1e Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 18:16:30 2022 +0200 CSS fixes commit 97f3fc57a389e5dd637b560e48fee86c4163dcd5 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Jun 29 22:00:32 2022 +0200 Option to disable winter theme And loading screen commit cf804312c7b9b72b416ef2a53947efab79ab604b Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Jun 28 22:05:43 2022 +0200 Update README.md commit 362a15ee1daa2464ad4f27b7e3107a63d736e591 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 28 18:41:19 2022 +0200 Fixed buddy bug commit 58f4d0060230c2349634689438088dcdf48d7715 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jun 27 19:26:37 2022 +0200 Finalized show buddy commit 0f89a1df974af9947d9e297f3c662d4082c0403d Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 26 12:47:37 2022 +0200 Improved logging commit b57cb24928c2e213c38ce566478af11937e6e4e3 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jun 25 13:42:14 2022 +0200 Finalized shareable links Links can be deleted Links are retrieved to the front page Links can be copied to clipboard commit 000022b882877bc306e13203578a3d1e184afc9a Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 18:47:34 2022 +0200 Get share links now functional commit df697f68b2bcedc7c623d9d9ec291a9625b62160 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:29:52 2022 +0200 Share link formatting bug commit 3b357ca72767fcbb9742a935f29770ab488ac36f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:26:15 2022 +0200 Share link creation Started implementation Missing get and delete functionality Added delete cache option to Tautulli settings commit 54e079951ff131d9177fd0f4a79238c03043d875 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jun 10 19:13:01 2022 +0200 Fixed bugs Shows with seasons in different years were split on top lists Amount of media plays was not unique to media-release, just amount of plays overall Fixed display for music minutes Logging can now be disabled Tautulli libraries were not included in API calls commit 26508af56a182b9611affb4401e5db494ae27c8b Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:38:08 2022 +0200 Fixed bug where top-lists under 10 crashed the API commit 0f28e39c8d4fe444c8d30caaaee9ca138d469270 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:17:41 2022 +0200 Fixed bug for year users duration-sum commit 1e3cb11637cfe001936d4b950b28564d2eec2a4b Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 29 19:51:15 2022 +0200 Statistics retrieval finished Revamped config get/set functions Redid some UI explanations Renamed template JSON commit 93390d469bab45560574e678a88b38dcef60f100 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon May 23 22:23:31 2022 +0200 Bug problem commit 3eb49b8da1c77d33923913e817cb41201cab3963 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 23:48:11 2022 +0200 Users commit aa6b3ec5121bb73cbe5828d9f42e1fd14514ddbd Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 13:11:35 2022 +0200 More stats Leaderboard and show buddy missing Working on bug that resets config (?!) commit 29742a2b6305a3835c63fc2c7760018b3e2267f0 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 00:41:19 2022 +0200 Basis for stats retrieval personal movies, shows and music is functional commit a0df0759a76689638d47657abde755cc34dd4a1b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:24 2022 +0200 Removed Docker folder commit 3e192997c08a5406a3d98e850218a674559f9ff0 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:05 2022 +0200 Renaming and Pop-up fix Pop ups should now not be blocked. Hopefully... commit 57b2d03fb57762c6c2aec7433a4f2affd6faa090 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 15:37:26 2022 +0200 CSS changes New rounded corners Transparent background colors Yellow borders Blurred background image Better footer placement More depth to snow particles commit b562e75bee6ff612019fa08d221fbf1ee69edd11 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 12:37:18 2022 +0200 API endpoints changes Get wrapperr-version now also retrieves config-state Login via Plex Auth disabled if Wrapperr is unconfigured Cookies changed to strict samesite value Logging changes commit e01bfc41cf46b3d7bc3b6627c93b67c0f70aa718 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Apr 29 10:47:12 2022 +0200 Update README.md More shields commit 2d2893cb9b212016c3455fd4f8dd3a5b229550ba Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 22:09:24 2022 +0200 Comments and time zone fixes commit 271c16b00e0eb4d58a97ed3b82f0e96993a7d853 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 16:26:44 2022 +0200 Caching and caching loop commit 44376b4d57765258602ec585e59b0825938d3c77 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 10:33:18 2022 +0200 Pulling Tautulli History Moved Tautulli functions to their own file commit 5355dafc68c5c2ed5a7c7e413388981438314500 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 22:00:49 2022 +0200 Start of Tautulli data collection Added time-zone setting in code Created cache structs commit 8bcce997c3b1a0556752ff99b5925cce7e18c4b6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 17:25:06 2022 +0200 Comments and caching mode commit 6e951efbcd6acb0b442a691ceb9919e95d3e9e98 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Apr 23 19:03:00 2022 +0200 User details fetch (From Plex & Tautulli) commit cb5b9384c0b716ef33770a0f96f6e4c0601cff50 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Sat Apr 23 12:07:57 2022 +0200 Shields.io stats commit 343e0ac727576652ccd81e565a7a385879b1bfb4 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 18 22:14:49 2022 +0200 Begun stats function Moved Taut test to separate function from API endpoint commit b7e34224d7524358a4b59bd667d75b3b6527361c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:26:54 2022 +0200 Update util.go commit 4a2598f77cce3c5e9d5fc66e9e870bf3cd4bfb51 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:22:34 2022 +0200 Error handling commit 09b80cf16c054d2767cd1cf50ae17f7f72268a53 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 15:01:59 2022 +0200 Updated readme to explain current standing commit 273b08f43ca317b6cd4ede01efb5040e63cc9839 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:46:34 2022 +0200 Removed test-log commands commit f2e85beb9d4aa9157b32933c50495c5f029787e4 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:26:17 2022 +0200 Removed legacy PHP files commit aaafea6da38173224d1b15063d4f32468ec12879 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:24:41 2022 +0200 URL builder & test Tautulli connection commit a02a172a7fc85a5a595fdb4003b00c8aa7d5f475 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 02:37:48 2022 +0200 Moved Plex Auth Get Pin to front end By moving this API call to the front end (JS), the IP address is identical when logging in. This removes the red warning. commit 744fae84a088cc77ba86d3c3687aff8d9caa77d7 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 01:33:40 2022 +0200 Plex Auth Plex Auth login, validation and JWT token creation commit 820bbca58a5679ef6a1e98ec586442cd841ac958 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 20:45:00 2022 +0200 Update config API now updates config file commit cb581d69007b32e8e924ac22ba66c923dd9eef23 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 15:49:04 2022 +0200 More API functions - Admin login - Config/Admin file creation - Config API retrieval commit f832df727de5c5fe583f03e2d8906714ceaf8017 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 12 09:30:58 2022 +0200 Functional API endpoints Some basic functionality - Retrieve wrapperr version - Retrieve admin state - Create admin commit 76193b7230e90d578bc561c8f479a87885c0b50f Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 11 16:51:35 2022 +0200 Config loaders commit c197a1b91b6307432e560756da97887bbfb36de5 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 8 17:20:36 2022 +0200 Config files commit 2ef850426a14ecf3dc39ab4b122fb479bb1e8f11 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 7 13:16:01 2022 +0200 Functional jwt validattion and creation commit a52de743daeb3dce18db7e0848eea37d4c35b707 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 22:25:01 2022 +0200 Auth token jwt commit 2f446a484ad6e4330a3a40cc708a543ca47ce148 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 14:19:49 2022 +0200 Middleware commit 1a1bc6ef09b9bce995d9d4b3f4bf7b0d1ead988a Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:14:02 2022 +0200 Added more comments commit 8c36dc74a98aa66565851ab01aff91e641287f06 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:08:26 2022 +0200 Port start argument Also included as ENV in Dockerfile commit 6bfbbdf5c3f955ab680ee4b47863bd7f017ffd5a Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Apr 5 23:31:36 2022 +0200 Whopsie commit 7600f2812e01d266f3488ed32a49d1591740a3e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 20:05:13 2022 +0200 Routing commit 0dbb1c756fcd411e60b73752554d75c8bf04f0b5 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 18:20:12 2022 +0200 Added warnings & Dockerfile commit a787a0acd41ab182ca0607dc3c1796a28ce947bd Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 17:51:48 2022 +0200 Go branch init The assets are served, but no API
2022-07-04 15:47:59 +00:00
os.Exit(1)
}
2023-10-24 14:36:21 +00:00
var mw io.Writer
// Set log file is logging is enabled
if config.UseLogs {
out := os.Stdout
mw = io.MultiWriter(out, logFile)
} else {
out := os.Stdout
mw = io.MultiWriter(out)
}
// Get pipe reader and writer | writes to pipe writer come out pipe reader
_, w, _ := os.Pipe()
// Replace stdout,stderr with pipe writer | all writes to stdout, stderr will go through pipe instead (log.print, log)
os.Stdout = w
os.Stderr = w
// writes with log.Print should also write to mw
log.SetOutput(mw)
Squashed commit of the following: commit 23a91e9daad1c482435581c69c756257ac703149 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jul 4 17:47:18 2022 +0200 Removed tmp text commit 1c09e583b2fa5e30a36c809e85fc43b328e3ad7f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jul 3 15:33:36 2022 +0200 Read log in admin interface commit 4ae253185a33bb13a94b1a200bf3aa92a62fb17d Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:27:39 2022 +0200 Added comments commit 89cabc36e86ae541fa9b001928211ba48e9ba48b Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:08:47 2022 +0200 Update index.js commit 12279e7ed47eeb45454ab525aa745eeaac0da180 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:02:36 2022 +0200 Update index.html commit a1c76b3e4d06cd25f7795390155521f2c341465f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 23:56:39 2022 +0200 Errors and frontend Cookies are more stable Errors are more concise commit ee170aeb3acf3f586c93e7b142a08bbb32a17134 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:33:27 2022 +0200 Better error handling commit 6317a1fa15ccfaf91fb2d8737e346621d9884008 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:18:45 2022 +0200 Added returns on errors commit 7126ddf2fbb824de0906fd6d7bfc2ca8acac0fdf Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:09:07 2022 +0200 Added ASCII Art commit 1fd45ede34abe6ae9555d9d6f23f87a2e67dba3b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:39:24 2022 +0200 Form CSS tweak commit 9861c662cd5f2b66721b3d2f2030d92d84bdf8bc Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:24:03 2022 +0200 Update route_admin_auth.go commit 119de6b2b1124266aae6cd5fec90fff2d2ddd24f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:19:36 2022 +0200 Update route_admin_auth.go commit 87a43dfc4945fe5ce45b8d9d06c7dcd6a5c9ee0c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:17:21 2022 +0200 Bugs and CSS Time zone validation Caching log is prettier Return bug on certain API endpoints fixed commit 3e81df71516572944b8e46bad129da82235b1b85 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Jul 1 18:36:21 2022 +0200 Create codeql-analysis.yml commit 32d05f3fff0231139df0e590b98097d6c6e3cdfb Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:23:05 2022 +0200 Update index.js commit c3fcdee18406e1a9d96b26c85169e1db365bb36a Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:15:38 2022 +0200 Capital W commit a243d310597b9f8148621690b9662f93b8467e83 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:08:53 2022 +0200 Update index.js commit 068739fc76b96c4379bf93aa39d11db1c2dfcada Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:58:48 2022 +0200 Update README.md commit d61074bde69f5dac1a1a2dd6b2164564131f53d1 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:56:55 2022 +0200 Docker-compose mistake commit 3036905d92d23cb0664559471fa9e0a81565fa64 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:55:30 2022 +0200 README touchups commit 6f07775121cec5cddf17f25efe349b300d43b8e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:48:10 2022 +0200 Rewrote README commit 58a26b11c77e6d21be0f433cd22c4da46f5d0450 Author: Aune <oystein.sverre@gmail.com> Date: Fri Jul 1 10:00:58 2022 +0200 Changed release workflow commit ffeea7ca689f405b6e629411f5bc9fc8c19e6b34 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 20:09:01 2022 +0200 Updated workflow to 1.18 commit aa321e87729673b4ce047f87b68f7223ea02d159 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 19:58:44 2022 +0200 Update README.md commit 5c4e59474882689f6dadf61f140a4ec18f744a1e Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 18:16:30 2022 +0200 CSS fixes commit 97f3fc57a389e5dd637b560e48fee86c4163dcd5 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Jun 29 22:00:32 2022 +0200 Option to disable winter theme And loading screen commit cf804312c7b9b72b416ef2a53947efab79ab604b Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Jun 28 22:05:43 2022 +0200 Update README.md commit 362a15ee1daa2464ad4f27b7e3107a63d736e591 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 28 18:41:19 2022 +0200 Fixed buddy bug commit 58f4d0060230c2349634689438088dcdf48d7715 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jun 27 19:26:37 2022 +0200 Finalized show buddy commit 0f89a1df974af9947d9e297f3c662d4082c0403d Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 26 12:47:37 2022 +0200 Improved logging commit b57cb24928c2e213c38ce566478af11937e6e4e3 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jun 25 13:42:14 2022 +0200 Finalized shareable links Links can be deleted Links are retrieved to the front page Links can be copied to clipboard commit 000022b882877bc306e13203578a3d1e184afc9a Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 18:47:34 2022 +0200 Get share links now functional commit df697f68b2bcedc7c623d9d9ec291a9625b62160 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:29:52 2022 +0200 Share link formatting bug commit 3b357ca72767fcbb9742a935f29770ab488ac36f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:26:15 2022 +0200 Share link creation Started implementation Missing get and delete functionality Added delete cache option to Tautulli settings commit 54e079951ff131d9177fd0f4a79238c03043d875 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jun 10 19:13:01 2022 +0200 Fixed bugs Shows with seasons in different years were split on top lists Amount of media plays was not unique to media-release, just amount of plays overall Fixed display for music minutes Logging can now be disabled Tautulli libraries were not included in API calls commit 26508af56a182b9611affb4401e5db494ae27c8b Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:38:08 2022 +0200 Fixed bug where top-lists under 10 crashed the API commit 0f28e39c8d4fe444c8d30caaaee9ca138d469270 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:17:41 2022 +0200 Fixed bug for year users duration-sum commit 1e3cb11637cfe001936d4b950b28564d2eec2a4b Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 29 19:51:15 2022 +0200 Statistics retrieval finished Revamped config get/set functions Redid some UI explanations Renamed template JSON commit 93390d469bab45560574e678a88b38dcef60f100 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon May 23 22:23:31 2022 +0200 Bug problem commit 3eb49b8da1c77d33923913e817cb41201cab3963 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 23:48:11 2022 +0200 Users commit aa6b3ec5121bb73cbe5828d9f42e1fd14514ddbd Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 13:11:35 2022 +0200 More stats Leaderboard and show buddy missing Working on bug that resets config (?!) commit 29742a2b6305a3835c63fc2c7760018b3e2267f0 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 00:41:19 2022 +0200 Basis for stats retrieval personal movies, shows and music is functional commit a0df0759a76689638d47657abde755cc34dd4a1b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:24 2022 +0200 Removed Docker folder commit 3e192997c08a5406a3d98e850218a674559f9ff0 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:05 2022 +0200 Renaming and Pop-up fix Pop ups should now not be blocked. Hopefully... commit 57b2d03fb57762c6c2aec7433a4f2affd6faa090 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 15:37:26 2022 +0200 CSS changes New rounded corners Transparent background colors Yellow borders Blurred background image Better footer placement More depth to snow particles commit b562e75bee6ff612019fa08d221fbf1ee69edd11 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 12:37:18 2022 +0200 API endpoints changes Get wrapperr-version now also retrieves config-state Login via Plex Auth disabled if Wrapperr is unconfigured Cookies changed to strict samesite value Logging changes commit e01bfc41cf46b3d7bc3b6627c93b67c0f70aa718 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Apr 29 10:47:12 2022 +0200 Update README.md More shields commit 2d2893cb9b212016c3455fd4f8dd3a5b229550ba Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 22:09:24 2022 +0200 Comments and time zone fixes commit 271c16b00e0eb4d58a97ed3b82f0e96993a7d853 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 16:26:44 2022 +0200 Caching and caching loop commit 44376b4d57765258602ec585e59b0825938d3c77 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 10:33:18 2022 +0200 Pulling Tautulli History Moved Tautulli functions to their own file commit 5355dafc68c5c2ed5a7c7e413388981438314500 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 22:00:49 2022 +0200 Start of Tautulli data collection Added time-zone setting in code Created cache structs commit 8bcce997c3b1a0556752ff99b5925cce7e18c4b6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 17:25:06 2022 +0200 Comments and caching mode commit 6e951efbcd6acb0b442a691ceb9919e95d3e9e98 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Apr 23 19:03:00 2022 +0200 User details fetch (From Plex & Tautulli) commit cb5b9384c0b716ef33770a0f96f6e4c0601cff50 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Sat Apr 23 12:07:57 2022 +0200 Shields.io stats commit 343e0ac727576652ccd81e565a7a385879b1bfb4 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 18 22:14:49 2022 +0200 Begun stats function Moved Taut test to separate function from API endpoint commit b7e34224d7524358a4b59bd667d75b3b6527361c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:26:54 2022 +0200 Update util.go commit 4a2598f77cce3c5e9d5fc66e9e870bf3cd4bfb51 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:22:34 2022 +0200 Error handling commit 09b80cf16c054d2767cd1cf50ae17f7f72268a53 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 15:01:59 2022 +0200 Updated readme to explain current standing commit 273b08f43ca317b6cd4ede01efb5040e63cc9839 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:46:34 2022 +0200 Removed test-log commands commit f2e85beb9d4aa9157b32933c50495c5f029787e4 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:26:17 2022 +0200 Removed legacy PHP files commit aaafea6da38173224d1b15063d4f32468ec12879 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:24:41 2022 +0200 URL builder & test Tautulli connection commit a02a172a7fc85a5a595fdb4003b00c8aa7d5f475 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 02:37:48 2022 +0200 Moved Plex Auth Get Pin to front end By moving this API call to the front end (JS), the IP address is identical when logging in. This removes the red warning. commit 744fae84a088cc77ba86d3c3687aff8d9caa77d7 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 01:33:40 2022 +0200 Plex Auth Plex Auth login, validation and JWT token creation commit 820bbca58a5679ef6a1e98ec586442cd841ac958 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 20:45:00 2022 +0200 Update config API now updates config file commit cb581d69007b32e8e924ac22ba66c923dd9eef23 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 15:49:04 2022 +0200 More API functions - Admin login - Config/Admin file creation - Config API retrieval commit f832df727de5c5fe583f03e2d8906714ceaf8017 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 12 09:30:58 2022 +0200 Functional API endpoints Some basic functionality - Retrieve wrapperr version - Retrieve admin state - Create admin commit 76193b7230e90d578bc561c8f479a87885c0b50f Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 11 16:51:35 2022 +0200 Config loaders commit c197a1b91b6307432e560756da97887bbfb36de5 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 8 17:20:36 2022 +0200 Config files commit 2ef850426a14ecf3dc39ab4b122fb479bb1e8f11 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 7 13:16:01 2022 +0200 Functional jwt validattion and creation commit a52de743daeb3dce18db7e0848eea37d4c35b707 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 22:25:01 2022 +0200 Auth token jwt commit 2f446a484ad6e4330a3a40cc708a543ca47ce148 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 14:19:49 2022 +0200 Middleware commit 1a1bc6ef09b9bce995d9d4b3f4bf7b0d1ead988a Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:14:02 2022 +0200 Added more comments commit 8c36dc74a98aa66565851ab01aff91e641287f06 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:08:26 2022 +0200 Port start argument Also included as ENV in Dockerfile commit 6bfbbdf5c3f955ab680ee4b47863bd7f017ffd5a Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Apr 5 23:31:36 2022 +0200 Whopsie commit 7600f2812e01d266f3488ed32a49d1591740a3e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 20:05:13 2022 +0200 Routing commit 0dbb1c756fcd411e60b73752554d75c8bf04f0b5 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 18:20:12 2022 +0200 Added warnings & Dockerfile commit a787a0acd41ab182ca0607dc3c1796a28ce947bd Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 17:51:48 2022 +0200 Go branch init The assets are served, but no API
2022-07-04 15:47:59 +00:00
// Set time zone from config if it is not empty
if config.Timezone != "" {
loc, err := time.LoadLocation(config.Timezone)
if err != nil {
2023-10-24 14:36:21 +00:00
log.Println("Failed to set time zone from config. Error: " + err.Error())
log.Println("Removing value...")
Squashed commit of the following: commit 23a91e9daad1c482435581c69c756257ac703149 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jul 4 17:47:18 2022 +0200 Removed tmp text commit 1c09e583b2fa5e30a36c809e85fc43b328e3ad7f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jul 3 15:33:36 2022 +0200 Read log in admin interface commit 4ae253185a33bb13a94b1a200bf3aa92a62fb17d Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:27:39 2022 +0200 Added comments commit 89cabc36e86ae541fa9b001928211ba48e9ba48b Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:08:47 2022 +0200 Update index.js commit 12279e7ed47eeb45454ab525aa745eeaac0da180 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:02:36 2022 +0200 Update index.html commit a1c76b3e4d06cd25f7795390155521f2c341465f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 23:56:39 2022 +0200 Errors and frontend Cookies are more stable Errors are more concise commit ee170aeb3acf3f586c93e7b142a08bbb32a17134 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:33:27 2022 +0200 Better error handling commit 6317a1fa15ccfaf91fb2d8737e346621d9884008 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:18:45 2022 +0200 Added returns on errors commit 7126ddf2fbb824de0906fd6d7bfc2ca8acac0fdf Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:09:07 2022 +0200 Added ASCII Art commit 1fd45ede34abe6ae9555d9d6f23f87a2e67dba3b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:39:24 2022 +0200 Form CSS tweak commit 9861c662cd5f2b66721b3d2f2030d92d84bdf8bc Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:24:03 2022 +0200 Update route_admin_auth.go commit 119de6b2b1124266aae6cd5fec90fff2d2ddd24f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:19:36 2022 +0200 Update route_admin_auth.go commit 87a43dfc4945fe5ce45b8d9d06c7dcd6a5c9ee0c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:17:21 2022 +0200 Bugs and CSS Time zone validation Caching log is prettier Return bug on certain API endpoints fixed commit 3e81df71516572944b8e46bad129da82235b1b85 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Jul 1 18:36:21 2022 +0200 Create codeql-analysis.yml commit 32d05f3fff0231139df0e590b98097d6c6e3cdfb Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:23:05 2022 +0200 Update index.js commit c3fcdee18406e1a9d96b26c85169e1db365bb36a Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:15:38 2022 +0200 Capital W commit a243d310597b9f8148621690b9662f93b8467e83 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:08:53 2022 +0200 Update index.js commit 068739fc76b96c4379bf93aa39d11db1c2dfcada Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:58:48 2022 +0200 Update README.md commit d61074bde69f5dac1a1a2dd6b2164564131f53d1 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:56:55 2022 +0200 Docker-compose mistake commit 3036905d92d23cb0664559471fa9e0a81565fa64 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:55:30 2022 +0200 README touchups commit 6f07775121cec5cddf17f25efe349b300d43b8e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:48:10 2022 +0200 Rewrote README commit 58a26b11c77e6d21be0f433cd22c4da46f5d0450 Author: Aune <oystein.sverre@gmail.com> Date: Fri Jul 1 10:00:58 2022 +0200 Changed release workflow commit ffeea7ca689f405b6e629411f5bc9fc8c19e6b34 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 20:09:01 2022 +0200 Updated workflow to 1.18 commit aa321e87729673b4ce047f87b68f7223ea02d159 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 19:58:44 2022 +0200 Update README.md commit 5c4e59474882689f6dadf61f140a4ec18f744a1e Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 18:16:30 2022 +0200 CSS fixes commit 97f3fc57a389e5dd637b560e48fee86c4163dcd5 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Jun 29 22:00:32 2022 +0200 Option to disable winter theme And loading screen commit cf804312c7b9b72b416ef2a53947efab79ab604b Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Jun 28 22:05:43 2022 +0200 Update README.md commit 362a15ee1daa2464ad4f27b7e3107a63d736e591 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 28 18:41:19 2022 +0200 Fixed buddy bug commit 58f4d0060230c2349634689438088dcdf48d7715 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jun 27 19:26:37 2022 +0200 Finalized show buddy commit 0f89a1df974af9947d9e297f3c662d4082c0403d Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 26 12:47:37 2022 +0200 Improved logging commit b57cb24928c2e213c38ce566478af11937e6e4e3 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jun 25 13:42:14 2022 +0200 Finalized shareable links Links can be deleted Links are retrieved to the front page Links can be copied to clipboard commit 000022b882877bc306e13203578a3d1e184afc9a Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 18:47:34 2022 +0200 Get share links now functional commit df697f68b2bcedc7c623d9d9ec291a9625b62160 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:29:52 2022 +0200 Share link formatting bug commit 3b357ca72767fcbb9742a935f29770ab488ac36f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:26:15 2022 +0200 Share link creation Started implementation Missing get and delete functionality Added delete cache option to Tautulli settings commit 54e079951ff131d9177fd0f4a79238c03043d875 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jun 10 19:13:01 2022 +0200 Fixed bugs Shows with seasons in different years were split on top lists Amount of media plays was not unique to media-release, just amount of plays overall Fixed display for music minutes Logging can now be disabled Tautulli libraries were not included in API calls commit 26508af56a182b9611affb4401e5db494ae27c8b Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:38:08 2022 +0200 Fixed bug where top-lists under 10 crashed the API commit 0f28e39c8d4fe444c8d30caaaee9ca138d469270 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:17:41 2022 +0200 Fixed bug for year users duration-sum commit 1e3cb11637cfe001936d4b950b28564d2eec2a4b Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 29 19:51:15 2022 +0200 Statistics retrieval finished Revamped config get/set functions Redid some UI explanations Renamed template JSON commit 93390d469bab45560574e678a88b38dcef60f100 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon May 23 22:23:31 2022 +0200 Bug problem commit 3eb49b8da1c77d33923913e817cb41201cab3963 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 23:48:11 2022 +0200 Users commit aa6b3ec5121bb73cbe5828d9f42e1fd14514ddbd Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 13:11:35 2022 +0200 More stats Leaderboard and show buddy missing Working on bug that resets config (?!) commit 29742a2b6305a3835c63fc2c7760018b3e2267f0 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 00:41:19 2022 +0200 Basis for stats retrieval personal movies, shows and music is functional commit a0df0759a76689638d47657abde755cc34dd4a1b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:24 2022 +0200 Removed Docker folder commit 3e192997c08a5406a3d98e850218a674559f9ff0 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:05 2022 +0200 Renaming and Pop-up fix Pop ups should now not be blocked. Hopefully... commit 57b2d03fb57762c6c2aec7433a4f2affd6faa090 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 15:37:26 2022 +0200 CSS changes New rounded corners Transparent background colors Yellow borders Blurred background image Better footer placement More depth to snow particles commit b562e75bee6ff612019fa08d221fbf1ee69edd11 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 12:37:18 2022 +0200 API endpoints changes Get wrapperr-version now also retrieves config-state Login via Plex Auth disabled if Wrapperr is unconfigured Cookies changed to strict samesite value Logging changes commit e01bfc41cf46b3d7bc3b6627c93b67c0f70aa718 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Apr 29 10:47:12 2022 +0200 Update README.md More shields commit 2d2893cb9b212016c3455fd4f8dd3a5b229550ba Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 22:09:24 2022 +0200 Comments and time zone fixes commit 271c16b00e0eb4d58a97ed3b82f0e96993a7d853 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 16:26:44 2022 +0200 Caching and caching loop commit 44376b4d57765258602ec585e59b0825938d3c77 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 10:33:18 2022 +0200 Pulling Tautulli History Moved Tautulli functions to their own file commit 5355dafc68c5c2ed5a7c7e413388981438314500 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 22:00:49 2022 +0200 Start of Tautulli data collection Added time-zone setting in code Created cache structs commit 8bcce997c3b1a0556752ff99b5925cce7e18c4b6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 17:25:06 2022 +0200 Comments and caching mode commit 6e951efbcd6acb0b442a691ceb9919e95d3e9e98 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Apr 23 19:03:00 2022 +0200 User details fetch (From Plex & Tautulli) commit cb5b9384c0b716ef33770a0f96f6e4c0601cff50 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Sat Apr 23 12:07:57 2022 +0200 Shields.io stats commit 343e0ac727576652ccd81e565a7a385879b1bfb4 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 18 22:14:49 2022 +0200 Begun stats function Moved Taut test to separate function from API endpoint commit b7e34224d7524358a4b59bd667d75b3b6527361c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:26:54 2022 +0200 Update util.go commit 4a2598f77cce3c5e9d5fc66e9e870bf3cd4bfb51 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:22:34 2022 +0200 Error handling commit 09b80cf16c054d2767cd1cf50ae17f7f72268a53 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 15:01:59 2022 +0200 Updated readme to explain current standing commit 273b08f43ca317b6cd4ede01efb5040e63cc9839 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:46:34 2022 +0200 Removed test-log commands commit f2e85beb9d4aa9157b32933c50495c5f029787e4 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:26:17 2022 +0200 Removed legacy PHP files commit aaafea6da38173224d1b15063d4f32468ec12879 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:24:41 2022 +0200 URL builder & test Tautulli connection commit a02a172a7fc85a5a595fdb4003b00c8aa7d5f475 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 02:37:48 2022 +0200 Moved Plex Auth Get Pin to front end By moving this API call to the front end (JS), the IP address is identical when logging in. This removes the red warning. commit 744fae84a088cc77ba86d3c3687aff8d9caa77d7 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 01:33:40 2022 +0200 Plex Auth Plex Auth login, validation and JWT token creation commit 820bbca58a5679ef6a1e98ec586442cd841ac958 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 20:45:00 2022 +0200 Update config API now updates config file commit cb581d69007b32e8e924ac22ba66c923dd9eef23 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 15:49:04 2022 +0200 More API functions - Admin login - Config/Admin file creation - Config API retrieval commit f832df727de5c5fe583f03e2d8906714ceaf8017 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 12 09:30:58 2022 +0200 Functional API endpoints Some basic functionality - Retrieve wrapperr version - Retrieve admin state - Create admin commit 76193b7230e90d578bc561c8f479a87885c0b50f Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 11 16:51:35 2022 +0200 Config loaders commit c197a1b91b6307432e560756da97887bbfb36de5 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 8 17:20:36 2022 +0200 Config files commit 2ef850426a14ecf3dc39ab4b122fb479bb1e8f11 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 7 13:16:01 2022 +0200 Functional jwt validattion and creation commit a52de743daeb3dce18db7e0848eea37d4c35b707 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 22:25:01 2022 +0200 Auth token jwt commit 2f446a484ad6e4330a3a40cc708a543ca47ce148 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 14:19:49 2022 +0200 Middleware commit 1a1bc6ef09b9bce995d9d4b3f4bf7b0d1ead988a Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:14:02 2022 +0200 Added more comments commit 8c36dc74a98aa66565851ab01aff91e641287f06 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:08:26 2022 +0200 Port start argument Also included as ENV in Dockerfile commit 6bfbbdf5c3f955ab680ee4b47863bd7f017ffd5a Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Apr 5 23:31:36 2022 +0200 Whopsie commit 7600f2812e01d266f3488ed32a49d1591740a3e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 20:05:13 2022 +0200 Routing commit 0dbb1c756fcd411e60b73752554d75c8bf04f0b5 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 18:20:12 2022 +0200 Added warnings & Dockerfile commit a787a0acd41ab182ca0607dc3c1796a28ce947bd Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 17:51:48 2022 +0200 Go branch init The assets are served, but no API
2022-07-04 15:47:59 +00:00
config.Timezone = ""
err = files.SaveConfig(config)
Squashed commit of the following: commit 23a91e9daad1c482435581c69c756257ac703149 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jul 4 17:47:18 2022 +0200 Removed tmp text commit 1c09e583b2fa5e30a36c809e85fc43b328e3ad7f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jul 3 15:33:36 2022 +0200 Read log in admin interface commit 4ae253185a33bb13a94b1a200bf3aa92a62fb17d Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:27:39 2022 +0200 Added comments commit 89cabc36e86ae541fa9b001928211ba48e9ba48b Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:08:47 2022 +0200 Update index.js commit 12279e7ed47eeb45454ab525aa745eeaac0da180 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:02:36 2022 +0200 Update index.html commit a1c76b3e4d06cd25f7795390155521f2c341465f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 23:56:39 2022 +0200 Errors and frontend Cookies are more stable Errors are more concise commit ee170aeb3acf3f586c93e7b142a08bbb32a17134 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:33:27 2022 +0200 Better error handling commit 6317a1fa15ccfaf91fb2d8737e346621d9884008 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:18:45 2022 +0200 Added returns on errors commit 7126ddf2fbb824de0906fd6d7bfc2ca8acac0fdf Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:09:07 2022 +0200 Added ASCII Art commit 1fd45ede34abe6ae9555d9d6f23f87a2e67dba3b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:39:24 2022 +0200 Form CSS tweak commit 9861c662cd5f2b66721b3d2f2030d92d84bdf8bc Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:24:03 2022 +0200 Update route_admin_auth.go commit 119de6b2b1124266aae6cd5fec90fff2d2ddd24f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:19:36 2022 +0200 Update route_admin_auth.go commit 87a43dfc4945fe5ce45b8d9d06c7dcd6a5c9ee0c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:17:21 2022 +0200 Bugs and CSS Time zone validation Caching log is prettier Return bug on certain API endpoints fixed commit 3e81df71516572944b8e46bad129da82235b1b85 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Jul 1 18:36:21 2022 +0200 Create codeql-analysis.yml commit 32d05f3fff0231139df0e590b98097d6c6e3cdfb Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:23:05 2022 +0200 Update index.js commit c3fcdee18406e1a9d96b26c85169e1db365bb36a Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:15:38 2022 +0200 Capital W commit a243d310597b9f8148621690b9662f93b8467e83 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:08:53 2022 +0200 Update index.js commit 068739fc76b96c4379bf93aa39d11db1c2dfcada Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:58:48 2022 +0200 Update README.md commit d61074bde69f5dac1a1a2dd6b2164564131f53d1 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:56:55 2022 +0200 Docker-compose mistake commit 3036905d92d23cb0664559471fa9e0a81565fa64 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:55:30 2022 +0200 README touchups commit 6f07775121cec5cddf17f25efe349b300d43b8e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:48:10 2022 +0200 Rewrote README commit 58a26b11c77e6d21be0f433cd22c4da46f5d0450 Author: Aune <oystein.sverre@gmail.com> Date: Fri Jul 1 10:00:58 2022 +0200 Changed release workflow commit ffeea7ca689f405b6e629411f5bc9fc8c19e6b34 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 20:09:01 2022 +0200 Updated workflow to 1.18 commit aa321e87729673b4ce047f87b68f7223ea02d159 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 19:58:44 2022 +0200 Update README.md commit 5c4e59474882689f6dadf61f140a4ec18f744a1e Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 18:16:30 2022 +0200 CSS fixes commit 97f3fc57a389e5dd637b560e48fee86c4163dcd5 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Jun 29 22:00:32 2022 +0200 Option to disable winter theme And loading screen commit cf804312c7b9b72b416ef2a53947efab79ab604b Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Jun 28 22:05:43 2022 +0200 Update README.md commit 362a15ee1daa2464ad4f27b7e3107a63d736e591 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 28 18:41:19 2022 +0200 Fixed buddy bug commit 58f4d0060230c2349634689438088dcdf48d7715 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jun 27 19:26:37 2022 +0200 Finalized show buddy commit 0f89a1df974af9947d9e297f3c662d4082c0403d Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 26 12:47:37 2022 +0200 Improved logging commit b57cb24928c2e213c38ce566478af11937e6e4e3 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jun 25 13:42:14 2022 +0200 Finalized shareable links Links can be deleted Links are retrieved to the front page Links can be copied to clipboard commit 000022b882877bc306e13203578a3d1e184afc9a Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 18:47:34 2022 +0200 Get share links now functional commit df697f68b2bcedc7c623d9d9ec291a9625b62160 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:29:52 2022 +0200 Share link formatting bug commit 3b357ca72767fcbb9742a935f29770ab488ac36f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:26:15 2022 +0200 Share link creation Started implementation Missing get and delete functionality Added delete cache option to Tautulli settings commit 54e079951ff131d9177fd0f4a79238c03043d875 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jun 10 19:13:01 2022 +0200 Fixed bugs Shows with seasons in different years were split on top lists Amount of media plays was not unique to media-release, just amount of plays overall Fixed display for music minutes Logging can now be disabled Tautulli libraries were not included in API calls commit 26508af56a182b9611affb4401e5db494ae27c8b Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:38:08 2022 +0200 Fixed bug where top-lists under 10 crashed the API commit 0f28e39c8d4fe444c8d30caaaee9ca138d469270 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:17:41 2022 +0200 Fixed bug for year users duration-sum commit 1e3cb11637cfe001936d4b950b28564d2eec2a4b Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 29 19:51:15 2022 +0200 Statistics retrieval finished Revamped config get/set functions Redid some UI explanations Renamed template JSON commit 93390d469bab45560574e678a88b38dcef60f100 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon May 23 22:23:31 2022 +0200 Bug problem commit 3eb49b8da1c77d33923913e817cb41201cab3963 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 23:48:11 2022 +0200 Users commit aa6b3ec5121bb73cbe5828d9f42e1fd14514ddbd Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 13:11:35 2022 +0200 More stats Leaderboard and show buddy missing Working on bug that resets config (?!) commit 29742a2b6305a3835c63fc2c7760018b3e2267f0 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 00:41:19 2022 +0200 Basis for stats retrieval personal movies, shows and music is functional commit a0df0759a76689638d47657abde755cc34dd4a1b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:24 2022 +0200 Removed Docker folder commit 3e192997c08a5406a3d98e850218a674559f9ff0 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:05 2022 +0200 Renaming and Pop-up fix Pop ups should now not be blocked. Hopefully... commit 57b2d03fb57762c6c2aec7433a4f2affd6faa090 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 15:37:26 2022 +0200 CSS changes New rounded corners Transparent background colors Yellow borders Blurred background image Better footer placement More depth to snow particles commit b562e75bee6ff612019fa08d221fbf1ee69edd11 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 12:37:18 2022 +0200 API endpoints changes Get wrapperr-version now also retrieves config-state Login via Plex Auth disabled if Wrapperr is unconfigured Cookies changed to strict samesite value Logging changes commit e01bfc41cf46b3d7bc3b6627c93b67c0f70aa718 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Apr 29 10:47:12 2022 +0200 Update README.md More shields commit 2d2893cb9b212016c3455fd4f8dd3a5b229550ba Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 22:09:24 2022 +0200 Comments and time zone fixes commit 271c16b00e0eb4d58a97ed3b82f0e96993a7d853 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 16:26:44 2022 +0200 Caching and caching loop commit 44376b4d57765258602ec585e59b0825938d3c77 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 10:33:18 2022 +0200 Pulling Tautulli History Moved Tautulli functions to their own file commit 5355dafc68c5c2ed5a7c7e413388981438314500 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 22:00:49 2022 +0200 Start of Tautulli data collection Added time-zone setting in code Created cache structs commit 8bcce997c3b1a0556752ff99b5925cce7e18c4b6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 17:25:06 2022 +0200 Comments and caching mode commit 6e951efbcd6acb0b442a691ceb9919e95d3e9e98 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Apr 23 19:03:00 2022 +0200 User details fetch (From Plex & Tautulli) commit cb5b9384c0b716ef33770a0f96f6e4c0601cff50 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Sat Apr 23 12:07:57 2022 +0200 Shields.io stats commit 343e0ac727576652ccd81e565a7a385879b1bfb4 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 18 22:14:49 2022 +0200 Begun stats function Moved Taut test to separate function from API endpoint commit b7e34224d7524358a4b59bd667d75b3b6527361c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:26:54 2022 +0200 Update util.go commit 4a2598f77cce3c5e9d5fc66e9e870bf3cd4bfb51 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:22:34 2022 +0200 Error handling commit 09b80cf16c054d2767cd1cf50ae17f7f72268a53 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 15:01:59 2022 +0200 Updated readme to explain current standing commit 273b08f43ca317b6cd4ede01efb5040e63cc9839 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:46:34 2022 +0200 Removed test-log commands commit f2e85beb9d4aa9157b32933c50495c5f029787e4 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:26:17 2022 +0200 Removed legacy PHP files commit aaafea6da38173224d1b15063d4f32468ec12879 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:24:41 2022 +0200 URL builder & test Tautulli connection commit a02a172a7fc85a5a595fdb4003b00c8aa7d5f475 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 02:37:48 2022 +0200 Moved Plex Auth Get Pin to front end By moving this API call to the front end (JS), the IP address is identical when logging in. This removes the red warning. commit 744fae84a088cc77ba86d3c3687aff8d9caa77d7 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 01:33:40 2022 +0200 Plex Auth Plex Auth login, validation and JWT token creation commit 820bbca58a5679ef6a1e98ec586442cd841ac958 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 20:45:00 2022 +0200 Update config API now updates config file commit cb581d69007b32e8e924ac22ba66c923dd9eef23 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 15:49:04 2022 +0200 More API functions - Admin login - Config/Admin file creation - Config API retrieval commit f832df727de5c5fe583f03e2d8906714ceaf8017 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 12 09:30:58 2022 +0200 Functional API endpoints Some basic functionality - Retrieve wrapperr version - Retrieve admin state - Create admin commit 76193b7230e90d578bc561c8f479a87885c0b50f Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 11 16:51:35 2022 +0200 Config loaders commit c197a1b91b6307432e560756da97887bbfb36de5 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 8 17:20:36 2022 +0200 Config files commit 2ef850426a14ecf3dc39ab4b122fb479bb1e8f11 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 7 13:16:01 2022 +0200 Functional jwt validattion and creation commit a52de743daeb3dce18db7e0848eea37d4c35b707 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 22:25:01 2022 +0200 Auth token jwt commit 2f446a484ad6e4330a3a40cc708a543ca47ce148 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 14:19:49 2022 +0200 Middleware commit 1a1bc6ef09b9bce995d9d4b3f4bf7b0d1ead988a Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:14:02 2022 +0200 Added more comments commit 8c36dc74a98aa66565851ab01aff91e641287f06 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:08:26 2022 +0200 Port start argument Also included as ENV in Dockerfile commit 6bfbbdf5c3f955ab680ee4b47863bd7f017ffd5a Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Apr 5 23:31:36 2022 +0200 Whopsie commit 7600f2812e01d266f3488ed32a49d1591740a3e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 20:05:13 2022 +0200 Routing commit 0dbb1c756fcd411e60b73752554d75c8bf04f0b5 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 18:20:12 2022 +0200 Added warnings & Dockerfile commit a787a0acd41ab182ca0607dc3c1796a28ce947bd Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 17:51:48 2022 +0200 Go branch init The assets are served, but no API
2022-07-04 15:47:59 +00:00
if err != nil {
2023-10-24 14:36:21 +00:00
log.Println("Failed to set new time zone in the config. Error: " + err.Error())
log.Println("Exiting...")
Squashed commit of the following: commit 23a91e9daad1c482435581c69c756257ac703149 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jul 4 17:47:18 2022 +0200 Removed tmp text commit 1c09e583b2fa5e30a36c809e85fc43b328e3ad7f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jul 3 15:33:36 2022 +0200 Read log in admin interface commit 4ae253185a33bb13a94b1a200bf3aa92a62fb17d Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:27:39 2022 +0200 Added comments commit 89cabc36e86ae541fa9b001928211ba48e9ba48b Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:08:47 2022 +0200 Update index.js commit 12279e7ed47eeb45454ab525aa745eeaac0da180 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:02:36 2022 +0200 Update index.html commit a1c76b3e4d06cd25f7795390155521f2c341465f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 23:56:39 2022 +0200 Errors and frontend Cookies are more stable Errors are more concise commit ee170aeb3acf3f586c93e7b142a08bbb32a17134 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:33:27 2022 +0200 Better error handling commit 6317a1fa15ccfaf91fb2d8737e346621d9884008 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:18:45 2022 +0200 Added returns on errors commit 7126ddf2fbb824de0906fd6d7bfc2ca8acac0fdf Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:09:07 2022 +0200 Added ASCII Art commit 1fd45ede34abe6ae9555d9d6f23f87a2e67dba3b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:39:24 2022 +0200 Form CSS tweak commit 9861c662cd5f2b66721b3d2f2030d92d84bdf8bc Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:24:03 2022 +0200 Update route_admin_auth.go commit 119de6b2b1124266aae6cd5fec90fff2d2ddd24f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:19:36 2022 +0200 Update route_admin_auth.go commit 87a43dfc4945fe5ce45b8d9d06c7dcd6a5c9ee0c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:17:21 2022 +0200 Bugs and CSS Time zone validation Caching log is prettier Return bug on certain API endpoints fixed commit 3e81df71516572944b8e46bad129da82235b1b85 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Jul 1 18:36:21 2022 +0200 Create codeql-analysis.yml commit 32d05f3fff0231139df0e590b98097d6c6e3cdfb Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:23:05 2022 +0200 Update index.js commit c3fcdee18406e1a9d96b26c85169e1db365bb36a Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:15:38 2022 +0200 Capital W commit a243d310597b9f8148621690b9662f93b8467e83 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:08:53 2022 +0200 Update index.js commit 068739fc76b96c4379bf93aa39d11db1c2dfcada Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:58:48 2022 +0200 Update README.md commit d61074bde69f5dac1a1a2dd6b2164564131f53d1 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:56:55 2022 +0200 Docker-compose mistake commit 3036905d92d23cb0664559471fa9e0a81565fa64 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:55:30 2022 +0200 README touchups commit 6f07775121cec5cddf17f25efe349b300d43b8e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:48:10 2022 +0200 Rewrote README commit 58a26b11c77e6d21be0f433cd22c4da46f5d0450 Author: Aune <oystein.sverre@gmail.com> Date: Fri Jul 1 10:00:58 2022 +0200 Changed release workflow commit ffeea7ca689f405b6e629411f5bc9fc8c19e6b34 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 20:09:01 2022 +0200 Updated workflow to 1.18 commit aa321e87729673b4ce047f87b68f7223ea02d159 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 19:58:44 2022 +0200 Update README.md commit 5c4e59474882689f6dadf61f140a4ec18f744a1e Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 18:16:30 2022 +0200 CSS fixes commit 97f3fc57a389e5dd637b560e48fee86c4163dcd5 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Jun 29 22:00:32 2022 +0200 Option to disable winter theme And loading screen commit cf804312c7b9b72b416ef2a53947efab79ab604b Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Jun 28 22:05:43 2022 +0200 Update README.md commit 362a15ee1daa2464ad4f27b7e3107a63d736e591 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 28 18:41:19 2022 +0200 Fixed buddy bug commit 58f4d0060230c2349634689438088dcdf48d7715 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jun 27 19:26:37 2022 +0200 Finalized show buddy commit 0f89a1df974af9947d9e297f3c662d4082c0403d Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 26 12:47:37 2022 +0200 Improved logging commit b57cb24928c2e213c38ce566478af11937e6e4e3 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jun 25 13:42:14 2022 +0200 Finalized shareable links Links can be deleted Links are retrieved to the front page Links can be copied to clipboard commit 000022b882877bc306e13203578a3d1e184afc9a Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 18:47:34 2022 +0200 Get share links now functional commit df697f68b2bcedc7c623d9d9ec291a9625b62160 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:29:52 2022 +0200 Share link formatting bug commit 3b357ca72767fcbb9742a935f29770ab488ac36f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:26:15 2022 +0200 Share link creation Started implementation Missing get and delete functionality Added delete cache option to Tautulli settings commit 54e079951ff131d9177fd0f4a79238c03043d875 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jun 10 19:13:01 2022 +0200 Fixed bugs Shows with seasons in different years were split on top lists Amount of media plays was not unique to media-release, just amount of plays overall Fixed display for music minutes Logging can now be disabled Tautulli libraries were not included in API calls commit 26508af56a182b9611affb4401e5db494ae27c8b Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:38:08 2022 +0200 Fixed bug where top-lists under 10 crashed the API commit 0f28e39c8d4fe444c8d30caaaee9ca138d469270 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:17:41 2022 +0200 Fixed bug for year users duration-sum commit 1e3cb11637cfe001936d4b950b28564d2eec2a4b Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 29 19:51:15 2022 +0200 Statistics retrieval finished Revamped config get/set functions Redid some UI explanations Renamed template JSON commit 93390d469bab45560574e678a88b38dcef60f100 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon May 23 22:23:31 2022 +0200 Bug problem commit 3eb49b8da1c77d33923913e817cb41201cab3963 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 23:48:11 2022 +0200 Users commit aa6b3ec5121bb73cbe5828d9f42e1fd14514ddbd Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 13:11:35 2022 +0200 More stats Leaderboard and show buddy missing Working on bug that resets config (?!) commit 29742a2b6305a3835c63fc2c7760018b3e2267f0 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 00:41:19 2022 +0200 Basis for stats retrieval personal movies, shows and music is functional commit a0df0759a76689638d47657abde755cc34dd4a1b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:24 2022 +0200 Removed Docker folder commit 3e192997c08a5406a3d98e850218a674559f9ff0 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:05 2022 +0200 Renaming and Pop-up fix Pop ups should now not be blocked. Hopefully... commit 57b2d03fb57762c6c2aec7433a4f2affd6faa090 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 15:37:26 2022 +0200 CSS changes New rounded corners Transparent background colors Yellow borders Blurred background image Better footer placement More depth to snow particles commit b562e75bee6ff612019fa08d221fbf1ee69edd11 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 12:37:18 2022 +0200 API endpoints changes Get wrapperr-version now also retrieves config-state Login via Plex Auth disabled if Wrapperr is unconfigured Cookies changed to strict samesite value Logging changes commit e01bfc41cf46b3d7bc3b6627c93b67c0f70aa718 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Apr 29 10:47:12 2022 +0200 Update README.md More shields commit 2d2893cb9b212016c3455fd4f8dd3a5b229550ba Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 22:09:24 2022 +0200 Comments and time zone fixes commit 271c16b00e0eb4d58a97ed3b82f0e96993a7d853 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 16:26:44 2022 +0200 Caching and caching loop commit 44376b4d57765258602ec585e59b0825938d3c77 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 10:33:18 2022 +0200 Pulling Tautulli History Moved Tautulli functions to their own file commit 5355dafc68c5c2ed5a7c7e413388981438314500 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 22:00:49 2022 +0200 Start of Tautulli data collection Added time-zone setting in code Created cache structs commit 8bcce997c3b1a0556752ff99b5925cce7e18c4b6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 17:25:06 2022 +0200 Comments and caching mode commit 6e951efbcd6acb0b442a691ceb9919e95d3e9e98 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Apr 23 19:03:00 2022 +0200 User details fetch (From Plex & Tautulli) commit cb5b9384c0b716ef33770a0f96f6e4c0601cff50 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Sat Apr 23 12:07:57 2022 +0200 Shields.io stats commit 343e0ac727576652ccd81e565a7a385879b1bfb4 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 18 22:14:49 2022 +0200 Begun stats function Moved Taut test to separate function from API endpoint commit b7e34224d7524358a4b59bd667d75b3b6527361c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:26:54 2022 +0200 Update util.go commit 4a2598f77cce3c5e9d5fc66e9e870bf3cd4bfb51 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:22:34 2022 +0200 Error handling commit 09b80cf16c054d2767cd1cf50ae17f7f72268a53 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 15:01:59 2022 +0200 Updated readme to explain current standing commit 273b08f43ca317b6cd4ede01efb5040e63cc9839 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:46:34 2022 +0200 Removed test-log commands commit f2e85beb9d4aa9157b32933c50495c5f029787e4 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:26:17 2022 +0200 Removed legacy PHP files commit aaafea6da38173224d1b15063d4f32468ec12879 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:24:41 2022 +0200 URL builder & test Tautulli connection commit a02a172a7fc85a5a595fdb4003b00c8aa7d5f475 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 02:37:48 2022 +0200 Moved Plex Auth Get Pin to front end By moving this API call to the front end (JS), the IP address is identical when logging in. This removes the red warning. commit 744fae84a088cc77ba86d3c3687aff8d9caa77d7 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 01:33:40 2022 +0200 Plex Auth Plex Auth login, validation and JWT token creation commit 820bbca58a5679ef6a1e98ec586442cd841ac958 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 20:45:00 2022 +0200 Update config API now updates config file commit cb581d69007b32e8e924ac22ba66c923dd9eef23 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 15:49:04 2022 +0200 More API functions - Admin login - Config/Admin file creation - Config API retrieval commit f832df727de5c5fe583f03e2d8906714ceaf8017 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 12 09:30:58 2022 +0200 Functional API endpoints Some basic functionality - Retrieve wrapperr version - Retrieve admin state - Create admin commit 76193b7230e90d578bc561c8f479a87885c0b50f Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 11 16:51:35 2022 +0200 Config loaders commit c197a1b91b6307432e560756da97887bbfb36de5 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 8 17:20:36 2022 +0200 Config files commit 2ef850426a14ecf3dc39ab4b122fb479bb1e8f11 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 7 13:16:01 2022 +0200 Functional jwt validattion and creation commit a52de743daeb3dce18db7e0848eea37d4c35b707 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 22:25:01 2022 +0200 Auth token jwt commit 2f446a484ad6e4330a3a40cc708a543ca47ce148 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 14:19:49 2022 +0200 Middleware commit 1a1bc6ef09b9bce995d9d4b3f4bf7b0d1ead988a Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:14:02 2022 +0200 Added more comments commit 8c36dc74a98aa66565851ab01aff91e641287f06 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:08:26 2022 +0200 Port start argument Also included as ENV in Dockerfile commit 6bfbbdf5c3f955ab680ee4b47863bd7f017ffd5a Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Apr 5 23:31:36 2022 +0200 Whopsie commit 7600f2812e01d266f3488ed32a49d1591740a3e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 20:05:13 2022 +0200 Routing commit 0dbb1c756fcd411e60b73752554d75c8bf04f0b5 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 18:20:12 2022 +0200 Added warnings & Dockerfile commit a787a0acd41ab182ca0607dc3c1796a28ce947bd Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 17:51:48 2022 +0200 Go branch init The assets are served, but no API
2022-07-04 15:47:59 +00:00
os.Exit(1)
}
} else {
time.Local = loc
2023-10-24 14:36:21 +00:00
log.Println("Timezone set to " + config.Timezone + ".")
Squashed commit of the following: commit 23a91e9daad1c482435581c69c756257ac703149 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jul 4 17:47:18 2022 +0200 Removed tmp text commit 1c09e583b2fa5e30a36c809e85fc43b328e3ad7f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jul 3 15:33:36 2022 +0200 Read log in admin interface commit 4ae253185a33bb13a94b1a200bf3aa92a62fb17d Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:27:39 2022 +0200 Added comments commit 89cabc36e86ae541fa9b001928211ba48e9ba48b Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:08:47 2022 +0200 Update index.js commit 12279e7ed47eeb45454ab525aa745eeaac0da180 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:02:36 2022 +0200 Update index.html commit a1c76b3e4d06cd25f7795390155521f2c341465f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 23:56:39 2022 +0200 Errors and frontend Cookies are more stable Errors are more concise commit ee170aeb3acf3f586c93e7b142a08bbb32a17134 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:33:27 2022 +0200 Better error handling commit 6317a1fa15ccfaf91fb2d8737e346621d9884008 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:18:45 2022 +0200 Added returns on errors commit 7126ddf2fbb824de0906fd6d7bfc2ca8acac0fdf Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:09:07 2022 +0200 Added ASCII Art commit 1fd45ede34abe6ae9555d9d6f23f87a2e67dba3b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:39:24 2022 +0200 Form CSS tweak commit 9861c662cd5f2b66721b3d2f2030d92d84bdf8bc Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:24:03 2022 +0200 Update route_admin_auth.go commit 119de6b2b1124266aae6cd5fec90fff2d2ddd24f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:19:36 2022 +0200 Update route_admin_auth.go commit 87a43dfc4945fe5ce45b8d9d06c7dcd6a5c9ee0c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:17:21 2022 +0200 Bugs and CSS Time zone validation Caching log is prettier Return bug on certain API endpoints fixed commit 3e81df71516572944b8e46bad129da82235b1b85 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Jul 1 18:36:21 2022 +0200 Create codeql-analysis.yml commit 32d05f3fff0231139df0e590b98097d6c6e3cdfb Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:23:05 2022 +0200 Update index.js commit c3fcdee18406e1a9d96b26c85169e1db365bb36a Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:15:38 2022 +0200 Capital W commit a243d310597b9f8148621690b9662f93b8467e83 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:08:53 2022 +0200 Update index.js commit 068739fc76b96c4379bf93aa39d11db1c2dfcada Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:58:48 2022 +0200 Update README.md commit d61074bde69f5dac1a1a2dd6b2164564131f53d1 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:56:55 2022 +0200 Docker-compose mistake commit 3036905d92d23cb0664559471fa9e0a81565fa64 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:55:30 2022 +0200 README touchups commit 6f07775121cec5cddf17f25efe349b300d43b8e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:48:10 2022 +0200 Rewrote README commit 58a26b11c77e6d21be0f433cd22c4da46f5d0450 Author: Aune <oystein.sverre@gmail.com> Date: Fri Jul 1 10:00:58 2022 +0200 Changed release workflow commit ffeea7ca689f405b6e629411f5bc9fc8c19e6b34 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 20:09:01 2022 +0200 Updated workflow to 1.18 commit aa321e87729673b4ce047f87b68f7223ea02d159 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 19:58:44 2022 +0200 Update README.md commit 5c4e59474882689f6dadf61f140a4ec18f744a1e Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 18:16:30 2022 +0200 CSS fixes commit 97f3fc57a389e5dd637b560e48fee86c4163dcd5 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Jun 29 22:00:32 2022 +0200 Option to disable winter theme And loading screen commit cf804312c7b9b72b416ef2a53947efab79ab604b Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Jun 28 22:05:43 2022 +0200 Update README.md commit 362a15ee1daa2464ad4f27b7e3107a63d736e591 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 28 18:41:19 2022 +0200 Fixed buddy bug commit 58f4d0060230c2349634689438088dcdf48d7715 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jun 27 19:26:37 2022 +0200 Finalized show buddy commit 0f89a1df974af9947d9e297f3c662d4082c0403d Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 26 12:47:37 2022 +0200 Improved logging commit b57cb24928c2e213c38ce566478af11937e6e4e3 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jun 25 13:42:14 2022 +0200 Finalized shareable links Links can be deleted Links are retrieved to the front page Links can be copied to clipboard commit 000022b882877bc306e13203578a3d1e184afc9a Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 18:47:34 2022 +0200 Get share links now functional commit df697f68b2bcedc7c623d9d9ec291a9625b62160 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:29:52 2022 +0200 Share link formatting bug commit 3b357ca72767fcbb9742a935f29770ab488ac36f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:26:15 2022 +0200 Share link creation Started implementation Missing get and delete functionality Added delete cache option to Tautulli settings commit 54e079951ff131d9177fd0f4a79238c03043d875 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jun 10 19:13:01 2022 +0200 Fixed bugs Shows with seasons in different years were split on top lists Amount of media plays was not unique to media-release, just amount of plays overall Fixed display for music minutes Logging can now be disabled Tautulli libraries were not included in API calls commit 26508af56a182b9611affb4401e5db494ae27c8b Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:38:08 2022 +0200 Fixed bug where top-lists under 10 crashed the API commit 0f28e39c8d4fe444c8d30caaaee9ca138d469270 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:17:41 2022 +0200 Fixed bug for year users duration-sum commit 1e3cb11637cfe001936d4b950b28564d2eec2a4b Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 29 19:51:15 2022 +0200 Statistics retrieval finished Revamped config get/set functions Redid some UI explanations Renamed template JSON commit 93390d469bab45560574e678a88b38dcef60f100 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon May 23 22:23:31 2022 +0200 Bug problem commit 3eb49b8da1c77d33923913e817cb41201cab3963 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 23:48:11 2022 +0200 Users commit aa6b3ec5121bb73cbe5828d9f42e1fd14514ddbd Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 13:11:35 2022 +0200 More stats Leaderboard and show buddy missing Working on bug that resets config (?!) commit 29742a2b6305a3835c63fc2c7760018b3e2267f0 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 00:41:19 2022 +0200 Basis for stats retrieval personal movies, shows and music is functional commit a0df0759a76689638d47657abde755cc34dd4a1b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:24 2022 +0200 Removed Docker folder commit 3e192997c08a5406a3d98e850218a674559f9ff0 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:05 2022 +0200 Renaming and Pop-up fix Pop ups should now not be blocked. Hopefully... commit 57b2d03fb57762c6c2aec7433a4f2affd6faa090 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 15:37:26 2022 +0200 CSS changes New rounded corners Transparent background colors Yellow borders Blurred background image Better footer placement More depth to snow particles commit b562e75bee6ff612019fa08d221fbf1ee69edd11 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 12:37:18 2022 +0200 API endpoints changes Get wrapperr-version now also retrieves config-state Login via Plex Auth disabled if Wrapperr is unconfigured Cookies changed to strict samesite value Logging changes commit e01bfc41cf46b3d7bc3b6627c93b67c0f70aa718 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Apr 29 10:47:12 2022 +0200 Update README.md More shields commit 2d2893cb9b212016c3455fd4f8dd3a5b229550ba Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 22:09:24 2022 +0200 Comments and time zone fixes commit 271c16b00e0eb4d58a97ed3b82f0e96993a7d853 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 16:26:44 2022 +0200 Caching and caching loop commit 44376b4d57765258602ec585e59b0825938d3c77 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 10:33:18 2022 +0200 Pulling Tautulli History Moved Tautulli functions to their own file commit 5355dafc68c5c2ed5a7c7e413388981438314500 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 22:00:49 2022 +0200 Start of Tautulli data collection Added time-zone setting in code Created cache structs commit 8bcce997c3b1a0556752ff99b5925cce7e18c4b6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 17:25:06 2022 +0200 Comments and caching mode commit 6e951efbcd6acb0b442a691ceb9919e95d3e9e98 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Apr 23 19:03:00 2022 +0200 User details fetch (From Plex & Tautulli) commit cb5b9384c0b716ef33770a0f96f6e4c0601cff50 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Sat Apr 23 12:07:57 2022 +0200 Shields.io stats commit 343e0ac727576652ccd81e565a7a385879b1bfb4 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 18 22:14:49 2022 +0200 Begun stats function Moved Taut test to separate function from API endpoint commit b7e34224d7524358a4b59bd667d75b3b6527361c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:26:54 2022 +0200 Update util.go commit 4a2598f77cce3c5e9d5fc66e9e870bf3cd4bfb51 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:22:34 2022 +0200 Error handling commit 09b80cf16c054d2767cd1cf50ae17f7f72268a53 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 15:01:59 2022 +0200 Updated readme to explain current standing commit 273b08f43ca317b6cd4ede01efb5040e63cc9839 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:46:34 2022 +0200 Removed test-log commands commit f2e85beb9d4aa9157b32933c50495c5f029787e4 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:26:17 2022 +0200 Removed legacy PHP files commit aaafea6da38173224d1b15063d4f32468ec12879 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:24:41 2022 +0200 URL builder & test Tautulli connection commit a02a172a7fc85a5a595fdb4003b00c8aa7d5f475 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 02:37:48 2022 +0200 Moved Plex Auth Get Pin to front end By moving this API call to the front end (JS), the IP address is identical when logging in. This removes the red warning. commit 744fae84a088cc77ba86d3c3687aff8d9caa77d7 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 01:33:40 2022 +0200 Plex Auth Plex Auth login, validation and JWT token creation commit 820bbca58a5679ef6a1e98ec586442cd841ac958 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 20:45:00 2022 +0200 Update config API now updates config file commit cb581d69007b32e8e924ac22ba66c923dd9eef23 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 15:49:04 2022 +0200 More API functions - Admin login - Config/Admin file creation - Config API retrieval commit f832df727de5c5fe583f03e2d8906714ceaf8017 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 12 09:30:58 2022 +0200 Functional API endpoints Some basic functionality - Retrieve wrapperr version - Retrieve admin state - Create admin commit 76193b7230e90d578bc561c8f479a87885c0b50f Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 11 16:51:35 2022 +0200 Config loaders commit c197a1b91b6307432e560756da97887bbfb36de5 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 8 17:20:36 2022 +0200 Config files commit 2ef850426a14ecf3dc39ab4b122fb479bb1e8f11 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 7 13:16:01 2022 +0200 Functional jwt validattion and creation commit a52de743daeb3dce18db7e0848eea37d4c35b707 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 22:25:01 2022 +0200 Auth token jwt commit 2f446a484ad6e4330a3a40cc708a543ca47ce148 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 14:19:49 2022 +0200 Middleware commit 1a1bc6ef09b9bce995d9d4b3f4bf7b0d1ead988a Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:14:02 2022 +0200 Added more comments commit 8c36dc74a98aa66565851ab01aff91e641287f06 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:08:26 2022 +0200 Port start argument Also included as ENV in Dockerfile commit 6bfbbdf5c3f955ab680ee4b47863bd7f017ffd5a Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Apr 5 23:31:36 2022 +0200 Whopsie commit 7600f2812e01d266f3488ed32a49d1591740a3e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 20:05:13 2022 +0200 Routing commit 0dbb1c756fcd411e60b73752554d75c8bf04f0b5 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 18:20:12 2022 +0200 Added warnings & Dockerfile commit a787a0acd41ab182ca0607dc3c1796a28ce947bd Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 17:51:48 2022 +0200 Go branch init The assets are served, but no API
2022-07-04 15:47:59 +00:00
}
}
// Print current version
2023-10-24 14:36:21 +00:00
log.Println("Running version " + config.WrapperrVersion + ".")
Squashed commit of the following: commit 23a91e9daad1c482435581c69c756257ac703149 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jul 4 17:47:18 2022 +0200 Removed tmp text commit 1c09e583b2fa5e30a36c809e85fc43b328e3ad7f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jul 3 15:33:36 2022 +0200 Read log in admin interface commit 4ae253185a33bb13a94b1a200bf3aa92a62fb17d Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:27:39 2022 +0200 Added comments commit 89cabc36e86ae541fa9b001928211ba48e9ba48b Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:08:47 2022 +0200 Update index.js commit 12279e7ed47eeb45454ab525aa745eeaac0da180 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:02:36 2022 +0200 Update index.html commit a1c76b3e4d06cd25f7795390155521f2c341465f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 23:56:39 2022 +0200 Errors and frontend Cookies are more stable Errors are more concise commit ee170aeb3acf3f586c93e7b142a08bbb32a17134 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:33:27 2022 +0200 Better error handling commit 6317a1fa15ccfaf91fb2d8737e346621d9884008 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:18:45 2022 +0200 Added returns on errors commit 7126ddf2fbb824de0906fd6d7bfc2ca8acac0fdf Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:09:07 2022 +0200 Added ASCII Art commit 1fd45ede34abe6ae9555d9d6f23f87a2e67dba3b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:39:24 2022 +0200 Form CSS tweak commit 9861c662cd5f2b66721b3d2f2030d92d84bdf8bc Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:24:03 2022 +0200 Update route_admin_auth.go commit 119de6b2b1124266aae6cd5fec90fff2d2ddd24f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:19:36 2022 +0200 Update route_admin_auth.go commit 87a43dfc4945fe5ce45b8d9d06c7dcd6a5c9ee0c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:17:21 2022 +0200 Bugs and CSS Time zone validation Caching log is prettier Return bug on certain API endpoints fixed commit 3e81df71516572944b8e46bad129da82235b1b85 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Jul 1 18:36:21 2022 +0200 Create codeql-analysis.yml commit 32d05f3fff0231139df0e590b98097d6c6e3cdfb Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:23:05 2022 +0200 Update index.js commit c3fcdee18406e1a9d96b26c85169e1db365bb36a Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:15:38 2022 +0200 Capital W commit a243d310597b9f8148621690b9662f93b8467e83 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:08:53 2022 +0200 Update index.js commit 068739fc76b96c4379bf93aa39d11db1c2dfcada Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:58:48 2022 +0200 Update README.md commit d61074bde69f5dac1a1a2dd6b2164564131f53d1 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:56:55 2022 +0200 Docker-compose mistake commit 3036905d92d23cb0664559471fa9e0a81565fa64 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:55:30 2022 +0200 README touchups commit 6f07775121cec5cddf17f25efe349b300d43b8e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:48:10 2022 +0200 Rewrote README commit 58a26b11c77e6d21be0f433cd22c4da46f5d0450 Author: Aune <oystein.sverre@gmail.com> Date: Fri Jul 1 10:00:58 2022 +0200 Changed release workflow commit ffeea7ca689f405b6e629411f5bc9fc8c19e6b34 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 20:09:01 2022 +0200 Updated workflow to 1.18 commit aa321e87729673b4ce047f87b68f7223ea02d159 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 19:58:44 2022 +0200 Update README.md commit 5c4e59474882689f6dadf61f140a4ec18f744a1e Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 18:16:30 2022 +0200 CSS fixes commit 97f3fc57a389e5dd637b560e48fee86c4163dcd5 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Jun 29 22:00:32 2022 +0200 Option to disable winter theme And loading screen commit cf804312c7b9b72b416ef2a53947efab79ab604b Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Jun 28 22:05:43 2022 +0200 Update README.md commit 362a15ee1daa2464ad4f27b7e3107a63d736e591 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 28 18:41:19 2022 +0200 Fixed buddy bug commit 58f4d0060230c2349634689438088dcdf48d7715 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jun 27 19:26:37 2022 +0200 Finalized show buddy commit 0f89a1df974af9947d9e297f3c662d4082c0403d Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 26 12:47:37 2022 +0200 Improved logging commit b57cb24928c2e213c38ce566478af11937e6e4e3 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jun 25 13:42:14 2022 +0200 Finalized shareable links Links can be deleted Links are retrieved to the front page Links can be copied to clipboard commit 000022b882877bc306e13203578a3d1e184afc9a Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 18:47:34 2022 +0200 Get share links now functional commit df697f68b2bcedc7c623d9d9ec291a9625b62160 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:29:52 2022 +0200 Share link formatting bug commit 3b357ca72767fcbb9742a935f29770ab488ac36f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:26:15 2022 +0200 Share link creation Started implementation Missing get and delete functionality Added delete cache option to Tautulli settings commit 54e079951ff131d9177fd0f4a79238c03043d875 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jun 10 19:13:01 2022 +0200 Fixed bugs Shows with seasons in different years were split on top lists Amount of media plays was not unique to media-release, just amount of plays overall Fixed display for music minutes Logging can now be disabled Tautulli libraries were not included in API calls commit 26508af56a182b9611affb4401e5db494ae27c8b Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:38:08 2022 +0200 Fixed bug where top-lists under 10 crashed the API commit 0f28e39c8d4fe444c8d30caaaee9ca138d469270 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:17:41 2022 +0200 Fixed bug for year users duration-sum commit 1e3cb11637cfe001936d4b950b28564d2eec2a4b Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 29 19:51:15 2022 +0200 Statistics retrieval finished Revamped config get/set functions Redid some UI explanations Renamed template JSON commit 93390d469bab45560574e678a88b38dcef60f100 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon May 23 22:23:31 2022 +0200 Bug problem commit 3eb49b8da1c77d33923913e817cb41201cab3963 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 23:48:11 2022 +0200 Users commit aa6b3ec5121bb73cbe5828d9f42e1fd14514ddbd Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 13:11:35 2022 +0200 More stats Leaderboard and show buddy missing Working on bug that resets config (?!) commit 29742a2b6305a3835c63fc2c7760018b3e2267f0 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 00:41:19 2022 +0200 Basis for stats retrieval personal movies, shows and music is functional commit a0df0759a76689638d47657abde755cc34dd4a1b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:24 2022 +0200 Removed Docker folder commit 3e192997c08a5406a3d98e850218a674559f9ff0 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:05 2022 +0200 Renaming and Pop-up fix Pop ups should now not be blocked. Hopefully... commit 57b2d03fb57762c6c2aec7433a4f2affd6faa090 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 15:37:26 2022 +0200 CSS changes New rounded corners Transparent background colors Yellow borders Blurred background image Better footer placement More depth to snow particles commit b562e75bee6ff612019fa08d221fbf1ee69edd11 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 12:37:18 2022 +0200 API endpoints changes Get wrapperr-version now also retrieves config-state Login via Plex Auth disabled if Wrapperr is unconfigured Cookies changed to strict samesite value Logging changes commit e01bfc41cf46b3d7bc3b6627c93b67c0f70aa718 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Apr 29 10:47:12 2022 +0200 Update README.md More shields commit 2d2893cb9b212016c3455fd4f8dd3a5b229550ba Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 22:09:24 2022 +0200 Comments and time zone fixes commit 271c16b00e0eb4d58a97ed3b82f0e96993a7d853 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 16:26:44 2022 +0200 Caching and caching loop commit 44376b4d57765258602ec585e59b0825938d3c77 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 10:33:18 2022 +0200 Pulling Tautulli History Moved Tautulli functions to their own file commit 5355dafc68c5c2ed5a7c7e413388981438314500 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 22:00:49 2022 +0200 Start of Tautulli data collection Added time-zone setting in code Created cache structs commit 8bcce997c3b1a0556752ff99b5925cce7e18c4b6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 17:25:06 2022 +0200 Comments and caching mode commit 6e951efbcd6acb0b442a691ceb9919e95d3e9e98 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Apr 23 19:03:00 2022 +0200 User details fetch (From Plex & Tautulli) commit cb5b9384c0b716ef33770a0f96f6e4c0601cff50 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Sat Apr 23 12:07:57 2022 +0200 Shields.io stats commit 343e0ac727576652ccd81e565a7a385879b1bfb4 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 18 22:14:49 2022 +0200 Begun stats function Moved Taut test to separate function from API endpoint commit b7e34224d7524358a4b59bd667d75b3b6527361c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:26:54 2022 +0200 Update util.go commit 4a2598f77cce3c5e9d5fc66e9e870bf3cd4bfb51 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:22:34 2022 +0200 Error handling commit 09b80cf16c054d2767cd1cf50ae17f7f72268a53 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 15:01:59 2022 +0200 Updated readme to explain current standing commit 273b08f43ca317b6cd4ede01efb5040e63cc9839 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:46:34 2022 +0200 Removed test-log commands commit f2e85beb9d4aa9157b32933c50495c5f029787e4 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:26:17 2022 +0200 Removed legacy PHP files commit aaafea6da38173224d1b15063d4f32468ec12879 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:24:41 2022 +0200 URL builder & test Tautulli connection commit a02a172a7fc85a5a595fdb4003b00c8aa7d5f475 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 02:37:48 2022 +0200 Moved Plex Auth Get Pin to front end By moving this API call to the front end (JS), the IP address is identical when logging in. This removes the red warning. commit 744fae84a088cc77ba86d3c3687aff8d9caa77d7 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 01:33:40 2022 +0200 Plex Auth Plex Auth login, validation and JWT token creation commit 820bbca58a5679ef6a1e98ec586442cd841ac958 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 20:45:00 2022 +0200 Update config API now updates config file commit cb581d69007b32e8e924ac22ba66c923dd9eef23 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 15:49:04 2022 +0200 More API functions - Admin login - Config/Admin file creation - Config API retrieval commit f832df727de5c5fe583f03e2d8906714ceaf8017 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 12 09:30:58 2022 +0200 Functional API endpoints Some basic functionality - Retrieve wrapperr version - Retrieve admin state - Create admin commit 76193b7230e90d578bc561c8f479a87885c0b50f Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 11 16:51:35 2022 +0200 Config loaders commit c197a1b91b6307432e560756da97887bbfb36de5 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 8 17:20:36 2022 +0200 Config files commit 2ef850426a14ecf3dc39ab4b122fb479bb1e8f11 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 7 13:16:01 2022 +0200 Functional jwt validattion and creation commit a52de743daeb3dce18db7e0848eea37d4c35b707 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 22:25:01 2022 +0200 Auth token jwt commit 2f446a484ad6e4330a3a40cc708a543ca47ce148 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 14:19:49 2022 +0200 Middleware commit 1a1bc6ef09b9bce995d9d4b3f4bf7b0d1ead988a Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:14:02 2022 +0200 Added more comments commit 8c36dc74a98aa66565851ab01aff91e641287f06 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:08:26 2022 +0200 Port start argument Also included as ENV in Dockerfile commit 6bfbbdf5c3f955ab680ee4b47863bd7f017ffd5a Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Apr 5 23:31:36 2022 +0200 Whopsie commit 7600f2812e01d266f3488ed32a49d1591740a3e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 20:05:13 2022 +0200 Routing commit 0dbb1c756fcd411e60b73752554d75c8bf04f0b5 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 18:20:12 2022 +0200 Added warnings & Dockerfile commit a787a0acd41ab182ca0607dc3c1796a28ce947bd Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 17:51:48 2022 +0200 Go branch init The assets are served, but no API
2022-07-04 15:47:59 +00:00
// Define port variable with the port from the config file as default
var port int
flag.IntVar(&port, "port", config.WrapperrPort, "The port Wrapperr is listening on.")
// Parse the flags from input
flag.Parse()
// Alert what port is in use
2023-10-24 14:36:21 +00:00
log.Println("Starting Wrapperr on port " + strconv.Itoa(port) + ".")
Squashed commit of the following: commit 23a91e9daad1c482435581c69c756257ac703149 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jul 4 17:47:18 2022 +0200 Removed tmp text commit 1c09e583b2fa5e30a36c809e85fc43b328e3ad7f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jul 3 15:33:36 2022 +0200 Read log in admin interface commit 4ae253185a33bb13a94b1a200bf3aa92a62fb17d Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:27:39 2022 +0200 Added comments commit 89cabc36e86ae541fa9b001928211ba48e9ba48b Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:08:47 2022 +0200 Update index.js commit 12279e7ed47eeb45454ab525aa745eeaac0da180 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:02:36 2022 +0200 Update index.html commit a1c76b3e4d06cd25f7795390155521f2c341465f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 23:56:39 2022 +0200 Errors and frontend Cookies are more stable Errors are more concise commit ee170aeb3acf3f586c93e7b142a08bbb32a17134 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:33:27 2022 +0200 Better error handling commit 6317a1fa15ccfaf91fb2d8737e346621d9884008 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:18:45 2022 +0200 Added returns on errors commit 7126ddf2fbb824de0906fd6d7bfc2ca8acac0fdf Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:09:07 2022 +0200 Added ASCII Art commit 1fd45ede34abe6ae9555d9d6f23f87a2e67dba3b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:39:24 2022 +0200 Form CSS tweak commit 9861c662cd5f2b66721b3d2f2030d92d84bdf8bc Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:24:03 2022 +0200 Update route_admin_auth.go commit 119de6b2b1124266aae6cd5fec90fff2d2ddd24f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:19:36 2022 +0200 Update route_admin_auth.go commit 87a43dfc4945fe5ce45b8d9d06c7dcd6a5c9ee0c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:17:21 2022 +0200 Bugs and CSS Time zone validation Caching log is prettier Return bug on certain API endpoints fixed commit 3e81df71516572944b8e46bad129da82235b1b85 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Jul 1 18:36:21 2022 +0200 Create codeql-analysis.yml commit 32d05f3fff0231139df0e590b98097d6c6e3cdfb Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:23:05 2022 +0200 Update index.js commit c3fcdee18406e1a9d96b26c85169e1db365bb36a Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:15:38 2022 +0200 Capital W commit a243d310597b9f8148621690b9662f93b8467e83 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:08:53 2022 +0200 Update index.js commit 068739fc76b96c4379bf93aa39d11db1c2dfcada Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:58:48 2022 +0200 Update README.md commit d61074bde69f5dac1a1a2dd6b2164564131f53d1 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:56:55 2022 +0200 Docker-compose mistake commit 3036905d92d23cb0664559471fa9e0a81565fa64 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:55:30 2022 +0200 README touchups commit 6f07775121cec5cddf17f25efe349b300d43b8e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:48:10 2022 +0200 Rewrote README commit 58a26b11c77e6d21be0f433cd22c4da46f5d0450 Author: Aune <oystein.sverre@gmail.com> Date: Fri Jul 1 10:00:58 2022 +0200 Changed release workflow commit ffeea7ca689f405b6e629411f5bc9fc8c19e6b34 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 20:09:01 2022 +0200 Updated workflow to 1.18 commit aa321e87729673b4ce047f87b68f7223ea02d159 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 19:58:44 2022 +0200 Update README.md commit 5c4e59474882689f6dadf61f140a4ec18f744a1e Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 18:16:30 2022 +0200 CSS fixes commit 97f3fc57a389e5dd637b560e48fee86c4163dcd5 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Jun 29 22:00:32 2022 +0200 Option to disable winter theme And loading screen commit cf804312c7b9b72b416ef2a53947efab79ab604b Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Jun 28 22:05:43 2022 +0200 Update README.md commit 362a15ee1daa2464ad4f27b7e3107a63d736e591 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 28 18:41:19 2022 +0200 Fixed buddy bug commit 58f4d0060230c2349634689438088dcdf48d7715 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jun 27 19:26:37 2022 +0200 Finalized show buddy commit 0f89a1df974af9947d9e297f3c662d4082c0403d Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 26 12:47:37 2022 +0200 Improved logging commit b57cb24928c2e213c38ce566478af11937e6e4e3 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jun 25 13:42:14 2022 +0200 Finalized shareable links Links can be deleted Links are retrieved to the front page Links can be copied to clipboard commit 000022b882877bc306e13203578a3d1e184afc9a Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 18:47:34 2022 +0200 Get share links now functional commit df697f68b2bcedc7c623d9d9ec291a9625b62160 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:29:52 2022 +0200 Share link formatting bug commit 3b357ca72767fcbb9742a935f29770ab488ac36f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:26:15 2022 +0200 Share link creation Started implementation Missing get and delete functionality Added delete cache option to Tautulli settings commit 54e079951ff131d9177fd0f4a79238c03043d875 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jun 10 19:13:01 2022 +0200 Fixed bugs Shows with seasons in different years were split on top lists Amount of media plays was not unique to media-release, just amount of plays overall Fixed display for music minutes Logging can now be disabled Tautulli libraries were not included in API calls commit 26508af56a182b9611affb4401e5db494ae27c8b Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:38:08 2022 +0200 Fixed bug where top-lists under 10 crashed the API commit 0f28e39c8d4fe444c8d30caaaee9ca138d469270 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:17:41 2022 +0200 Fixed bug for year users duration-sum commit 1e3cb11637cfe001936d4b950b28564d2eec2a4b Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 29 19:51:15 2022 +0200 Statistics retrieval finished Revamped config get/set functions Redid some UI explanations Renamed template JSON commit 93390d469bab45560574e678a88b38dcef60f100 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon May 23 22:23:31 2022 +0200 Bug problem commit 3eb49b8da1c77d33923913e817cb41201cab3963 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 23:48:11 2022 +0200 Users commit aa6b3ec5121bb73cbe5828d9f42e1fd14514ddbd Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 13:11:35 2022 +0200 More stats Leaderboard and show buddy missing Working on bug that resets config (?!) commit 29742a2b6305a3835c63fc2c7760018b3e2267f0 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 00:41:19 2022 +0200 Basis for stats retrieval personal movies, shows and music is functional commit a0df0759a76689638d47657abde755cc34dd4a1b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:24 2022 +0200 Removed Docker folder commit 3e192997c08a5406a3d98e850218a674559f9ff0 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:05 2022 +0200 Renaming and Pop-up fix Pop ups should now not be blocked. Hopefully... commit 57b2d03fb57762c6c2aec7433a4f2affd6faa090 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 15:37:26 2022 +0200 CSS changes New rounded corners Transparent background colors Yellow borders Blurred background image Better footer placement More depth to snow particles commit b562e75bee6ff612019fa08d221fbf1ee69edd11 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 12:37:18 2022 +0200 API endpoints changes Get wrapperr-version now also retrieves config-state Login via Plex Auth disabled if Wrapperr is unconfigured Cookies changed to strict samesite value Logging changes commit e01bfc41cf46b3d7bc3b6627c93b67c0f70aa718 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Apr 29 10:47:12 2022 +0200 Update README.md More shields commit 2d2893cb9b212016c3455fd4f8dd3a5b229550ba Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 22:09:24 2022 +0200 Comments and time zone fixes commit 271c16b00e0eb4d58a97ed3b82f0e96993a7d853 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 16:26:44 2022 +0200 Caching and caching loop commit 44376b4d57765258602ec585e59b0825938d3c77 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 10:33:18 2022 +0200 Pulling Tautulli History Moved Tautulli functions to their own file commit 5355dafc68c5c2ed5a7c7e413388981438314500 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 22:00:49 2022 +0200 Start of Tautulli data collection Added time-zone setting in code Created cache structs commit 8bcce997c3b1a0556752ff99b5925cce7e18c4b6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 17:25:06 2022 +0200 Comments and caching mode commit 6e951efbcd6acb0b442a691ceb9919e95d3e9e98 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Apr 23 19:03:00 2022 +0200 User details fetch (From Plex & Tautulli) commit cb5b9384c0b716ef33770a0f96f6e4c0601cff50 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Sat Apr 23 12:07:57 2022 +0200 Shields.io stats commit 343e0ac727576652ccd81e565a7a385879b1bfb4 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 18 22:14:49 2022 +0200 Begun stats function Moved Taut test to separate function from API endpoint commit b7e34224d7524358a4b59bd667d75b3b6527361c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:26:54 2022 +0200 Update util.go commit 4a2598f77cce3c5e9d5fc66e9e870bf3cd4bfb51 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:22:34 2022 +0200 Error handling commit 09b80cf16c054d2767cd1cf50ae17f7f72268a53 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 15:01:59 2022 +0200 Updated readme to explain current standing commit 273b08f43ca317b6cd4ede01efb5040e63cc9839 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:46:34 2022 +0200 Removed test-log commands commit f2e85beb9d4aa9157b32933c50495c5f029787e4 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:26:17 2022 +0200 Removed legacy PHP files commit aaafea6da38173224d1b15063d4f32468ec12879 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:24:41 2022 +0200 URL builder & test Tautulli connection commit a02a172a7fc85a5a595fdb4003b00c8aa7d5f475 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 02:37:48 2022 +0200 Moved Plex Auth Get Pin to front end By moving this API call to the front end (JS), the IP address is identical when logging in. This removes the red warning. commit 744fae84a088cc77ba86d3c3687aff8d9caa77d7 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 01:33:40 2022 +0200 Plex Auth Plex Auth login, validation and JWT token creation commit 820bbca58a5679ef6a1e98ec586442cd841ac958 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 20:45:00 2022 +0200 Update config API now updates config file commit cb581d69007b32e8e924ac22ba66c923dd9eef23 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 15:49:04 2022 +0200 More API functions - Admin login - Config/Admin file creation - Config API retrieval commit f832df727de5c5fe583f03e2d8906714ceaf8017 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 12 09:30:58 2022 +0200 Functional API endpoints Some basic functionality - Retrieve wrapperr version - Retrieve admin state - Create admin commit 76193b7230e90d578bc561c8f479a87885c0b50f Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 11 16:51:35 2022 +0200 Config loaders commit c197a1b91b6307432e560756da97887bbfb36de5 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 8 17:20:36 2022 +0200 Config files commit 2ef850426a14ecf3dc39ab4b122fb479bb1e8f11 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 7 13:16:01 2022 +0200 Functional jwt validattion and creation commit a52de743daeb3dce18db7e0848eea37d4c35b707 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 22:25:01 2022 +0200 Auth token jwt commit 2f446a484ad6e4330a3a40cc708a543ca47ce148 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 14:19:49 2022 +0200 Middleware commit 1a1bc6ef09b9bce995d9d4b3f4bf7b0d1ead988a Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:14:02 2022 +0200 Added more comments commit 8c36dc74a98aa66565851ab01aff91e641287f06 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:08:26 2022 +0200 Port start argument Also included as ENV in Dockerfile commit 6bfbbdf5c3f955ab680ee4b47863bd7f017ffd5a Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Apr 5 23:31:36 2022 +0200 Whopsie commit 7600f2812e01d266f3488ed32a49d1591740a3e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 20:05:13 2022 +0200 Routing commit 0dbb1c756fcd411e60b73752554d75c8bf04f0b5 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 18:20:12 2022 +0200 Added warnings & Dockerfile commit a787a0acd41ab182ca0607dc3c1796a28ce947bd Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 17:51:48 2022 +0200 Go branch init The assets are served, but no API
2022-07-04 15:47:59 +00:00
// Initialize Router
router := initRouter(config)
// Get TSL
certFound := files.CheckCertFiles()
// Start server
if certFound {
log.Println("Starting using HTTPS.")
certPath, certKeyPath := files.GetCertPaths()
log.Fatal(router.RunTLS(":"+strconv.Itoa(port), certPath, certKeyPath))
} else {
log.Println("Starting using HTTP.")
log.Fatal(router.Run(":" + strconv.Itoa(port)))
}
}
Squashed commit of the following: commit 23a91e9daad1c482435581c69c756257ac703149 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jul 4 17:47:18 2022 +0200 Removed tmp text commit 1c09e583b2fa5e30a36c809e85fc43b328e3ad7f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jul 3 15:33:36 2022 +0200 Read log in admin interface commit 4ae253185a33bb13a94b1a200bf3aa92a62fb17d Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:27:39 2022 +0200 Added comments commit 89cabc36e86ae541fa9b001928211ba48e9ba48b Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:08:47 2022 +0200 Update index.js commit 12279e7ed47eeb45454ab525aa745eeaac0da180 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:02:36 2022 +0200 Update index.html commit a1c76b3e4d06cd25f7795390155521f2c341465f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 23:56:39 2022 +0200 Errors and frontend Cookies are more stable Errors are more concise commit ee170aeb3acf3f586c93e7b142a08bbb32a17134 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:33:27 2022 +0200 Better error handling commit 6317a1fa15ccfaf91fb2d8737e346621d9884008 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:18:45 2022 +0200 Added returns on errors commit 7126ddf2fbb824de0906fd6d7bfc2ca8acac0fdf Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:09:07 2022 +0200 Added ASCII Art commit 1fd45ede34abe6ae9555d9d6f23f87a2e67dba3b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:39:24 2022 +0200 Form CSS tweak commit 9861c662cd5f2b66721b3d2f2030d92d84bdf8bc Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:24:03 2022 +0200 Update route_admin_auth.go commit 119de6b2b1124266aae6cd5fec90fff2d2ddd24f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:19:36 2022 +0200 Update route_admin_auth.go commit 87a43dfc4945fe5ce45b8d9d06c7dcd6a5c9ee0c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:17:21 2022 +0200 Bugs and CSS Time zone validation Caching log is prettier Return bug on certain API endpoints fixed commit 3e81df71516572944b8e46bad129da82235b1b85 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Jul 1 18:36:21 2022 +0200 Create codeql-analysis.yml commit 32d05f3fff0231139df0e590b98097d6c6e3cdfb Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:23:05 2022 +0200 Update index.js commit c3fcdee18406e1a9d96b26c85169e1db365bb36a Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:15:38 2022 +0200 Capital W commit a243d310597b9f8148621690b9662f93b8467e83 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:08:53 2022 +0200 Update index.js commit 068739fc76b96c4379bf93aa39d11db1c2dfcada Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:58:48 2022 +0200 Update README.md commit d61074bde69f5dac1a1a2dd6b2164564131f53d1 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:56:55 2022 +0200 Docker-compose mistake commit 3036905d92d23cb0664559471fa9e0a81565fa64 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:55:30 2022 +0200 README touchups commit 6f07775121cec5cddf17f25efe349b300d43b8e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:48:10 2022 +0200 Rewrote README commit 58a26b11c77e6d21be0f433cd22c4da46f5d0450 Author: Aune <oystein.sverre@gmail.com> Date: Fri Jul 1 10:00:58 2022 +0200 Changed release workflow commit ffeea7ca689f405b6e629411f5bc9fc8c19e6b34 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 20:09:01 2022 +0200 Updated workflow to 1.18 commit aa321e87729673b4ce047f87b68f7223ea02d159 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 19:58:44 2022 +0200 Update README.md commit 5c4e59474882689f6dadf61f140a4ec18f744a1e Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 18:16:30 2022 +0200 CSS fixes commit 97f3fc57a389e5dd637b560e48fee86c4163dcd5 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Jun 29 22:00:32 2022 +0200 Option to disable winter theme And loading screen commit cf804312c7b9b72b416ef2a53947efab79ab604b Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Jun 28 22:05:43 2022 +0200 Update README.md commit 362a15ee1daa2464ad4f27b7e3107a63d736e591 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 28 18:41:19 2022 +0200 Fixed buddy bug commit 58f4d0060230c2349634689438088dcdf48d7715 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jun 27 19:26:37 2022 +0200 Finalized show buddy commit 0f89a1df974af9947d9e297f3c662d4082c0403d Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 26 12:47:37 2022 +0200 Improved logging commit b57cb24928c2e213c38ce566478af11937e6e4e3 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jun 25 13:42:14 2022 +0200 Finalized shareable links Links can be deleted Links are retrieved to the front page Links can be copied to clipboard commit 000022b882877bc306e13203578a3d1e184afc9a Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 18:47:34 2022 +0200 Get share links now functional commit df697f68b2bcedc7c623d9d9ec291a9625b62160 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:29:52 2022 +0200 Share link formatting bug commit 3b357ca72767fcbb9742a935f29770ab488ac36f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:26:15 2022 +0200 Share link creation Started implementation Missing get and delete functionality Added delete cache option to Tautulli settings commit 54e079951ff131d9177fd0f4a79238c03043d875 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jun 10 19:13:01 2022 +0200 Fixed bugs Shows with seasons in different years were split on top lists Amount of media plays was not unique to media-release, just amount of plays overall Fixed display for music minutes Logging can now be disabled Tautulli libraries were not included in API calls commit 26508af56a182b9611affb4401e5db494ae27c8b Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:38:08 2022 +0200 Fixed bug where top-lists under 10 crashed the API commit 0f28e39c8d4fe444c8d30caaaee9ca138d469270 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:17:41 2022 +0200 Fixed bug for year users duration-sum commit 1e3cb11637cfe001936d4b950b28564d2eec2a4b Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 29 19:51:15 2022 +0200 Statistics retrieval finished Revamped config get/set functions Redid some UI explanations Renamed template JSON commit 93390d469bab45560574e678a88b38dcef60f100 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon May 23 22:23:31 2022 +0200 Bug problem commit 3eb49b8da1c77d33923913e817cb41201cab3963 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 23:48:11 2022 +0200 Users commit aa6b3ec5121bb73cbe5828d9f42e1fd14514ddbd Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 13:11:35 2022 +0200 More stats Leaderboard and show buddy missing Working on bug that resets config (?!) commit 29742a2b6305a3835c63fc2c7760018b3e2267f0 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 00:41:19 2022 +0200 Basis for stats retrieval personal movies, shows and music is functional commit a0df0759a76689638d47657abde755cc34dd4a1b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:24 2022 +0200 Removed Docker folder commit 3e192997c08a5406a3d98e850218a674559f9ff0 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:05 2022 +0200 Renaming and Pop-up fix Pop ups should now not be blocked. Hopefully... commit 57b2d03fb57762c6c2aec7433a4f2affd6faa090 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 15:37:26 2022 +0200 CSS changes New rounded corners Transparent background colors Yellow borders Blurred background image Better footer placement More depth to snow particles commit b562e75bee6ff612019fa08d221fbf1ee69edd11 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 12:37:18 2022 +0200 API endpoints changes Get wrapperr-version now also retrieves config-state Login via Plex Auth disabled if Wrapperr is unconfigured Cookies changed to strict samesite value Logging changes commit e01bfc41cf46b3d7bc3b6627c93b67c0f70aa718 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Apr 29 10:47:12 2022 +0200 Update README.md More shields commit 2d2893cb9b212016c3455fd4f8dd3a5b229550ba Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 22:09:24 2022 +0200 Comments and time zone fixes commit 271c16b00e0eb4d58a97ed3b82f0e96993a7d853 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 16:26:44 2022 +0200 Caching and caching loop commit 44376b4d57765258602ec585e59b0825938d3c77 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 10:33:18 2022 +0200 Pulling Tautulli History Moved Tautulli functions to their own file commit 5355dafc68c5c2ed5a7c7e413388981438314500 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 22:00:49 2022 +0200 Start of Tautulli data collection Added time-zone setting in code Created cache structs commit 8bcce997c3b1a0556752ff99b5925cce7e18c4b6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 17:25:06 2022 +0200 Comments and caching mode commit 6e951efbcd6acb0b442a691ceb9919e95d3e9e98 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Apr 23 19:03:00 2022 +0200 User details fetch (From Plex & Tautulli) commit cb5b9384c0b716ef33770a0f96f6e4c0601cff50 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Sat Apr 23 12:07:57 2022 +0200 Shields.io stats commit 343e0ac727576652ccd81e565a7a385879b1bfb4 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 18 22:14:49 2022 +0200 Begun stats function Moved Taut test to separate function from API endpoint commit b7e34224d7524358a4b59bd667d75b3b6527361c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:26:54 2022 +0200 Update util.go commit 4a2598f77cce3c5e9d5fc66e9e870bf3cd4bfb51 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:22:34 2022 +0200 Error handling commit 09b80cf16c054d2767cd1cf50ae17f7f72268a53 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 15:01:59 2022 +0200 Updated readme to explain current standing commit 273b08f43ca317b6cd4ede01efb5040e63cc9839 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:46:34 2022 +0200 Removed test-log commands commit f2e85beb9d4aa9157b32933c50495c5f029787e4 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:26:17 2022 +0200 Removed legacy PHP files commit aaafea6da38173224d1b15063d4f32468ec12879 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:24:41 2022 +0200 URL builder & test Tautulli connection commit a02a172a7fc85a5a595fdb4003b00c8aa7d5f475 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 02:37:48 2022 +0200 Moved Plex Auth Get Pin to front end By moving this API call to the front end (JS), the IP address is identical when logging in. This removes the red warning. commit 744fae84a088cc77ba86d3c3687aff8d9caa77d7 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 01:33:40 2022 +0200 Plex Auth Plex Auth login, validation and JWT token creation commit 820bbca58a5679ef6a1e98ec586442cd841ac958 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 20:45:00 2022 +0200 Update config API now updates config file commit cb581d69007b32e8e924ac22ba66c923dd9eef23 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 15:49:04 2022 +0200 More API functions - Admin login - Config/Admin file creation - Config API retrieval commit f832df727de5c5fe583f03e2d8906714ceaf8017 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 12 09:30:58 2022 +0200 Functional API endpoints Some basic functionality - Retrieve wrapperr version - Retrieve admin state - Create admin commit 76193b7230e90d578bc561c8f479a87885c0b50f Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 11 16:51:35 2022 +0200 Config loaders commit c197a1b91b6307432e560756da97887bbfb36de5 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 8 17:20:36 2022 +0200 Config files commit 2ef850426a14ecf3dc39ab4b122fb479bb1e8f11 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 7 13:16:01 2022 +0200 Functional jwt validattion and creation commit a52de743daeb3dce18db7e0848eea37d4c35b707 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 22:25:01 2022 +0200 Auth token jwt commit 2f446a484ad6e4330a3a40cc708a543ca47ce148 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 14:19:49 2022 +0200 Middleware commit 1a1bc6ef09b9bce995d9d4b3f4bf7b0d1ead988a Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:14:02 2022 +0200 Added more comments commit 8c36dc74a98aa66565851ab01aff91e641287f06 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:08:26 2022 +0200 Port start argument Also included as ENV in Dockerfile commit 6bfbbdf5c3f955ab680ee4b47863bd7f017ffd5a Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Apr 5 23:31:36 2022 +0200 Whopsie commit 7600f2812e01d266f3488ed32a49d1591740a3e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 20:05:13 2022 +0200 Routing commit 0dbb1c756fcd411e60b73752554d75c8bf04f0b5 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 18:20:12 2022 +0200 Added warnings & Dockerfile commit a787a0acd41ab182ca0607dc3c1796a28ce947bd Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 17:51:48 2022 +0200 Go branch init The assets are served, but no API
2022-07-04 15:47:59 +00:00
func initRouter(config models.WrapperrConfig) *gin.Engine {
var root string
if config.WrapperrRoot != "" {
root = "/" + config.WrapperrRoot
} else {
root = ""
}
router := gin.Default()
router.LoadHTMLGlob("web/*/*.html")
// API endpoint
api := router.Group(root + "/api")
{
// Requires no auth token
open := api.Group("")
{
open.POST("/get/wrapperr-version", routes.ApiGetWrapperrVersion)
open.POST("/get/admin-state", routes.ApiGetAdminState)
open.POST("/get/functions", routes.ApiGetFunctions)
open.POST("/create/admin", routes.ApiCreateAdmin)
open.POST("/get/config-state", routes.ApiWrapperrConfigured)
open.POST("/login/admin", routes.ApiLogInAdmin)
open.POST("/get/tautulli-connection", routes.ApiGetTautulliConncection)
open.POST("/get/share-link", routes.ApiGetShareLink)
open.POST("/login/plex-auth", routes.ApiLoginPlexAuth)
}
2022-12-09 16:38:23 +00:00
// Can be user auth based on config
both := api.Group("")
{
both.POST("/create/share-link", routes.ApiCreateShareLink)
both.POST("/get/statistics", routes.ApiWrapperGetStatistics)
}
2022-12-09 16:38:23 +00:00
// Must include an auth token (With Plex auth)
auth := api.Group("").Use(middlewares.AuthMiddleware(false))
{
auth.POST("/get/login-url", routes.ApiGetLoginURL)
auth.POST("/validate/plex-auth", routes.ApiValidatePlexAuth)
auth.POST("/get/user-share-link", routes.ApiGetUserShareLink)
auth.POST("/delete/user-share-link", routes.ApiDeleteUserShareLink)
}
// Must include an auth token (With admin)
admin := api.Group("").Use(middlewares.AuthMiddleware(true))
{
admin.POST("/validate/admin", routes.ApiValidateAdmin)
admin.POST("/get/config", routes.ApiGetConfig)
admin.POST("/set/config", routes.ApiSetConfig)
admin.POST("/update/admin", routes.ApiUpdateAdmin)
admin.POST("/get/log", routes.ApiGetLog)
admin.POST("/get/timezones", routes.ApiGetTimezones)
2023-10-29 17:03:55 +00:00
admin.POST("/get/cache-statistics", routes.ApiWrapperCacheStatistics)
admin.POST("/get/users", routes.ApiGetUsers)
admin.POST("/get/users/:userId", routes.ApiGetUser)
admin.POST("/sync/users", routes.ApiSyncTautulliUsers)
}
}
Squashed commit of the following: commit 23a91e9daad1c482435581c69c756257ac703149 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jul 4 17:47:18 2022 +0200 Removed tmp text commit 1c09e583b2fa5e30a36c809e85fc43b328e3ad7f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jul 3 15:33:36 2022 +0200 Read log in admin interface commit 4ae253185a33bb13a94b1a200bf3aa92a62fb17d Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:27:39 2022 +0200 Added comments commit 89cabc36e86ae541fa9b001928211ba48e9ba48b Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:08:47 2022 +0200 Update index.js commit 12279e7ed47eeb45454ab525aa745eeaac0da180 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:02:36 2022 +0200 Update index.html commit a1c76b3e4d06cd25f7795390155521f2c341465f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 23:56:39 2022 +0200 Errors and frontend Cookies are more stable Errors are more concise commit ee170aeb3acf3f586c93e7b142a08bbb32a17134 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:33:27 2022 +0200 Better error handling commit 6317a1fa15ccfaf91fb2d8737e346621d9884008 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:18:45 2022 +0200 Added returns on errors commit 7126ddf2fbb824de0906fd6d7bfc2ca8acac0fdf Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:09:07 2022 +0200 Added ASCII Art commit 1fd45ede34abe6ae9555d9d6f23f87a2e67dba3b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:39:24 2022 +0200 Form CSS tweak commit 9861c662cd5f2b66721b3d2f2030d92d84bdf8bc Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:24:03 2022 +0200 Update route_admin_auth.go commit 119de6b2b1124266aae6cd5fec90fff2d2ddd24f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:19:36 2022 +0200 Update route_admin_auth.go commit 87a43dfc4945fe5ce45b8d9d06c7dcd6a5c9ee0c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:17:21 2022 +0200 Bugs and CSS Time zone validation Caching log is prettier Return bug on certain API endpoints fixed commit 3e81df71516572944b8e46bad129da82235b1b85 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Jul 1 18:36:21 2022 +0200 Create codeql-analysis.yml commit 32d05f3fff0231139df0e590b98097d6c6e3cdfb Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:23:05 2022 +0200 Update index.js commit c3fcdee18406e1a9d96b26c85169e1db365bb36a Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:15:38 2022 +0200 Capital W commit a243d310597b9f8148621690b9662f93b8467e83 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:08:53 2022 +0200 Update index.js commit 068739fc76b96c4379bf93aa39d11db1c2dfcada Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:58:48 2022 +0200 Update README.md commit d61074bde69f5dac1a1a2dd6b2164564131f53d1 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:56:55 2022 +0200 Docker-compose mistake commit 3036905d92d23cb0664559471fa9e0a81565fa64 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:55:30 2022 +0200 README touchups commit 6f07775121cec5cddf17f25efe349b300d43b8e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:48:10 2022 +0200 Rewrote README commit 58a26b11c77e6d21be0f433cd22c4da46f5d0450 Author: Aune <oystein.sverre@gmail.com> Date: Fri Jul 1 10:00:58 2022 +0200 Changed release workflow commit ffeea7ca689f405b6e629411f5bc9fc8c19e6b34 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 20:09:01 2022 +0200 Updated workflow to 1.18 commit aa321e87729673b4ce047f87b68f7223ea02d159 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 19:58:44 2022 +0200 Update README.md commit 5c4e59474882689f6dadf61f140a4ec18f744a1e Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 18:16:30 2022 +0200 CSS fixes commit 97f3fc57a389e5dd637b560e48fee86c4163dcd5 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Jun 29 22:00:32 2022 +0200 Option to disable winter theme And loading screen commit cf804312c7b9b72b416ef2a53947efab79ab604b Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Jun 28 22:05:43 2022 +0200 Update README.md commit 362a15ee1daa2464ad4f27b7e3107a63d736e591 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 28 18:41:19 2022 +0200 Fixed buddy bug commit 58f4d0060230c2349634689438088dcdf48d7715 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jun 27 19:26:37 2022 +0200 Finalized show buddy commit 0f89a1df974af9947d9e297f3c662d4082c0403d Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 26 12:47:37 2022 +0200 Improved logging commit b57cb24928c2e213c38ce566478af11937e6e4e3 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jun 25 13:42:14 2022 +0200 Finalized shareable links Links can be deleted Links are retrieved to the front page Links can be copied to clipboard commit 000022b882877bc306e13203578a3d1e184afc9a Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 18:47:34 2022 +0200 Get share links now functional commit df697f68b2bcedc7c623d9d9ec291a9625b62160 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:29:52 2022 +0200 Share link formatting bug commit 3b357ca72767fcbb9742a935f29770ab488ac36f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:26:15 2022 +0200 Share link creation Started implementation Missing get and delete functionality Added delete cache option to Tautulli settings commit 54e079951ff131d9177fd0f4a79238c03043d875 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jun 10 19:13:01 2022 +0200 Fixed bugs Shows with seasons in different years were split on top lists Amount of media plays was not unique to media-release, just amount of plays overall Fixed display for music minutes Logging can now be disabled Tautulli libraries were not included in API calls commit 26508af56a182b9611affb4401e5db494ae27c8b Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:38:08 2022 +0200 Fixed bug where top-lists under 10 crashed the API commit 0f28e39c8d4fe444c8d30caaaee9ca138d469270 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:17:41 2022 +0200 Fixed bug for year users duration-sum commit 1e3cb11637cfe001936d4b950b28564d2eec2a4b Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 29 19:51:15 2022 +0200 Statistics retrieval finished Revamped config get/set functions Redid some UI explanations Renamed template JSON commit 93390d469bab45560574e678a88b38dcef60f100 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon May 23 22:23:31 2022 +0200 Bug problem commit 3eb49b8da1c77d33923913e817cb41201cab3963 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 23:48:11 2022 +0200 Users commit aa6b3ec5121bb73cbe5828d9f42e1fd14514ddbd Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 13:11:35 2022 +0200 More stats Leaderboard and show buddy missing Working on bug that resets config (?!) commit 29742a2b6305a3835c63fc2c7760018b3e2267f0 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 00:41:19 2022 +0200 Basis for stats retrieval personal movies, shows and music is functional commit a0df0759a76689638d47657abde755cc34dd4a1b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:24 2022 +0200 Removed Docker folder commit 3e192997c08a5406a3d98e850218a674559f9ff0 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:05 2022 +0200 Renaming and Pop-up fix Pop ups should now not be blocked. Hopefully... commit 57b2d03fb57762c6c2aec7433a4f2affd6faa090 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 15:37:26 2022 +0200 CSS changes New rounded corners Transparent background colors Yellow borders Blurred background image Better footer placement More depth to snow particles commit b562e75bee6ff612019fa08d221fbf1ee69edd11 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 12:37:18 2022 +0200 API endpoints changes Get wrapperr-version now also retrieves config-state Login via Plex Auth disabled if Wrapperr is unconfigured Cookies changed to strict samesite value Logging changes commit e01bfc41cf46b3d7bc3b6627c93b67c0f70aa718 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Apr 29 10:47:12 2022 +0200 Update README.md More shields commit 2d2893cb9b212016c3455fd4f8dd3a5b229550ba Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 22:09:24 2022 +0200 Comments and time zone fixes commit 271c16b00e0eb4d58a97ed3b82f0e96993a7d853 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 16:26:44 2022 +0200 Caching and caching loop commit 44376b4d57765258602ec585e59b0825938d3c77 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 10:33:18 2022 +0200 Pulling Tautulli History Moved Tautulli functions to their own file commit 5355dafc68c5c2ed5a7c7e413388981438314500 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 22:00:49 2022 +0200 Start of Tautulli data collection Added time-zone setting in code Created cache structs commit 8bcce997c3b1a0556752ff99b5925cce7e18c4b6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 17:25:06 2022 +0200 Comments and caching mode commit 6e951efbcd6acb0b442a691ceb9919e95d3e9e98 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Apr 23 19:03:00 2022 +0200 User details fetch (From Plex & Tautulli) commit cb5b9384c0b716ef33770a0f96f6e4c0601cff50 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Sat Apr 23 12:07:57 2022 +0200 Shields.io stats commit 343e0ac727576652ccd81e565a7a385879b1bfb4 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 18 22:14:49 2022 +0200 Begun stats function Moved Taut test to separate function from API endpoint commit b7e34224d7524358a4b59bd667d75b3b6527361c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:26:54 2022 +0200 Update util.go commit 4a2598f77cce3c5e9d5fc66e9e870bf3cd4bfb51 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:22:34 2022 +0200 Error handling commit 09b80cf16c054d2767cd1cf50ae17f7f72268a53 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 15:01:59 2022 +0200 Updated readme to explain current standing commit 273b08f43ca317b6cd4ede01efb5040e63cc9839 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:46:34 2022 +0200 Removed test-log commands commit f2e85beb9d4aa9157b32933c50495c5f029787e4 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:26:17 2022 +0200 Removed legacy PHP files commit aaafea6da38173224d1b15063d4f32468ec12879 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:24:41 2022 +0200 URL builder & test Tautulli connection commit a02a172a7fc85a5a595fdb4003b00c8aa7d5f475 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 02:37:48 2022 +0200 Moved Plex Auth Get Pin to front end By moving this API call to the front end (JS), the IP address is identical when logging in. This removes the red warning. commit 744fae84a088cc77ba86d3c3687aff8d9caa77d7 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 01:33:40 2022 +0200 Plex Auth Plex Auth login, validation and JWT token creation commit 820bbca58a5679ef6a1e98ec586442cd841ac958 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 20:45:00 2022 +0200 Update config API now updates config file commit cb581d69007b32e8e924ac22ba66c923dd9eef23 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 15:49:04 2022 +0200 More API functions - Admin login - Config/Admin file creation - Config API retrieval commit f832df727de5c5fe583f03e2d8906714ceaf8017 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 12 09:30:58 2022 +0200 Functional API endpoints Some basic functionality - Retrieve wrapperr version - Retrieve admin state - Create admin commit 76193b7230e90d578bc561c8f479a87885c0b50f Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 11 16:51:35 2022 +0200 Config loaders commit c197a1b91b6307432e560756da97887bbfb36de5 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 8 17:20:36 2022 +0200 Config files commit 2ef850426a14ecf3dc39ab4b122fb479bb1e8f11 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 7 13:16:01 2022 +0200 Functional jwt validattion and creation commit a52de743daeb3dce18db7e0848eea37d4c35b707 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 22:25:01 2022 +0200 Auth token jwt commit 2f446a484ad6e4330a3a40cc708a543ca47ce148 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 14:19:49 2022 +0200 Middleware commit 1a1bc6ef09b9bce995d9d4b3f4bf7b0d1ead988a Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:14:02 2022 +0200 Added more comments commit 8c36dc74a98aa66565851ab01aff91e641287f06 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:08:26 2022 +0200 Port start argument Also included as ENV in Dockerfile commit 6bfbbdf5c3f955ab680ee4b47863bd7f017ffd5a Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Apr 5 23:31:36 2022 +0200 Whopsie commit 7600f2812e01d266f3488ed32a49d1591740a3e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 20:05:13 2022 +0200 Routing commit 0dbb1c756fcd411e60b73752554d75c8bf04f0b5 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 18:20:12 2022 +0200 Added warnings & Dockerfile commit a787a0acd41ab182ca0607dc3c1796a28ce947bd Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 17:51:48 2022 +0200 Go branch init The assets are served, but no API
2022-07-04 15:47:59 +00:00
router.Use(cors.New(cors.Config{
AllowOrigins: []string{"*"},
// AllowAllOrigins: true,
AllowMethods: []string{"GET", "POST"},
AllowHeaders: []string{"Origin", "Content-Type", "Authorization", "Access-Control-Allow-Origin"},
ExposeHeaders: []string{"Content-Length"},
AllowCredentials: true,
AllowOriginFunc: func(origin string) bool { return true },
MaxAge: 12 * time.Hour,
}))
// Static endpoint for different directories
router.Static(root+"/assets", "./web/assets")
router.Static(root+"/js", "./web/js")
// Static endpoint for homepage
router.GET(root+"/", func(c *gin.Context) {
c.HTML(http.StatusOK, "frontpage.html", nil)
})
// Static endpoint for admin functions
router.GET(root+"/admin", func(c *gin.Context) {
c.HTML(http.StatusOK, "admin.html", nil)
})
// Static endpoint for Tautulli admin functions
router.GET(root+"/admin/tautulli", func(c *gin.Context) {
c.HTML(http.StatusOK, "tautulli.html", nil)
})
// Static endpoint for admin settings functions
router.GET(root+"/admin/settings", func(c *gin.Context) {
c.HTML(http.StatusOK, "settings.html", nil)
})
// Static endpoint for admin customization functions
router.GET(root+"/admin/customization", func(c *gin.Context) {
c.HTML(http.StatusOK, "customization.html", nil)
})
// Static endpoint for admin caching functions
router.GET(root+"/admin/caching", func(c *gin.Context) {
c.HTML(http.StatusOK, "caching.html", nil)
})
// Static endpoint for admin log functions
router.GET(root+"/admin/logs", func(c *gin.Context) {
c.HTML(http.StatusOK, "logs.html", nil)
})
2023-10-29 17:03:55 +00:00
// Static endpoint for admin users functions
router.GET(root+"/admin/users", func(c *gin.Context) {
c.HTML(http.StatusOK, "users.html", nil)
})
// Static endpoint for robots.txt
router.GET(root+"/robots.txt", func(c *gin.Context) {
TXTfile, err := os.ReadFile("./web/txt/robots.txt")
if err != nil {
fmt.Println("Reading robots.txt threw error trying to open the file. Error: " + err.Error())
}
c.Data(http.StatusOK, "text/plain", TXTfile)
})
return router
Squashed commit of the following: commit 23a91e9daad1c482435581c69c756257ac703149 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jul 4 17:47:18 2022 +0200 Removed tmp text commit 1c09e583b2fa5e30a36c809e85fc43b328e3ad7f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jul 3 15:33:36 2022 +0200 Read log in admin interface commit 4ae253185a33bb13a94b1a200bf3aa92a62fb17d Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:27:39 2022 +0200 Added comments commit 89cabc36e86ae541fa9b001928211ba48e9ba48b Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:08:47 2022 +0200 Update index.js commit 12279e7ed47eeb45454ab525aa745eeaac0da180 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jul 2 00:02:36 2022 +0200 Update index.html commit a1c76b3e4d06cd25f7795390155521f2c341465f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 23:56:39 2022 +0200 Errors and frontend Cookies are more stable Errors are more concise commit ee170aeb3acf3f586c93e7b142a08bbb32a17134 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:33:27 2022 +0200 Better error handling commit 6317a1fa15ccfaf91fb2d8737e346621d9884008 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:18:45 2022 +0200 Added returns on errors commit 7126ddf2fbb824de0906fd6d7bfc2ca8acac0fdf Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 22:09:07 2022 +0200 Added ASCII Art commit 1fd45ede34abe6ae9555d9d6f23f87a2e67dba3b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:39:24 2022 +0200 Form CSS tweak commit 9861c662cd5f2b66721b3d2f2030d92d84bdf8bc Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:24:03 2022 +0200 Update route_admin_auth.go commit 119de6b2b1124266aae6cd5fec90fff2d2ddd24f Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:19:36 2022 +0200 Update route_admin_auth.go commit 87a43dfc4945fe5ce45b8d9d06c7dcd6a5c9ee0c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 21:17:21 2022 +0200 Bugs and CSS Time zone validation Caching log is prettier Return bug on certain API endpoints fixed commit 3e81df71516572944b8e46bad129da82235b1b85 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Jul 1 18:36:21 2022 +0200 Create codeql-analysis.yml commit 32d05f3fff0231139df0e590b98097d6c6e3cdfb Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:23:05 2022 +0200 Update index.js commit c3fcdee18406e1a9d96b26c85169e1db365bb36a Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:15:38 2022 +0200 Capital W commit a243d310597b9f8148621690b9662f93b8467e83 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 18:08:53 2022 +0200 Update index.js commit 068739fc76b96c4379bf93aa39d11db1c2dfcada Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:58:48 2022 +0200 Update README.md commit d61074bde69f5dac1a1a2dd6b2164564131f53d1 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:56:55 2022 +0200 Docker-compose mistake commit 3036905d92d23cb0664559471fa9e0a81565fa64 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:55:30 2022 +0200 README touchups commit 6f07775121cec5cddf17f25efe349b300d43b8e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jul 1 17:48:10 2022 +0200 Rewrote README commit 58a26b11c77e6d21be0f433cd22c4da46f5d0450 Author: Aune <oystein.sverre@gmail.com> Date: Fri Jul 1 10:00:58 2022 +0200 Changed release workflow commit ffeea7ca689f405b6e629411f5bc9fc8c19e6b34 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 20:09:01 2022 +0200 Updated workflow to 1.18 commit aa321e87729673b4ce047f87b68f7223ea02d159 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 19:58:44 2022 +0200 Update README.md commit 5c4e59474882689f6dadf61f140a4ec18f744a1e Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Jun 30 18:16:30 2022 +0200 CSS fixes commit 97f3fc57a389e5dd637b560e48fee86c4163dcd5 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Jun 29 22:00:32 2022 +0200 Option to disable winter theme And loading screen commit cf804312c7b9b72b416ef2a53947efab79ab604b Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Jun 28 22:05:43 2022 +0200 Update README.md commit 362a15ee1daa2464ad4f27b7e3107a63d736e591 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 28 18:41:19 2022 +0200 Fixed buddy bug commit 58f4d0060230c2349634689438088dcdf48d7715 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Jun 27 19:26:37 2022 +0200 Finalized show buddy commit 0f89a1df974af9947d9e297f3c662d4082c0403d Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 26 12:47:37 2022 +0200 Improved logging commit b57cb24928c2e213c38ce566478af11937e6e4e3 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Jun 25 13:42:14 2022 +0200 Finalized shareable links Links can be deleted Links are retrieved to the front page Links can be copied to clipboard commit 000022b882877bc306e13203578a3d1e184afc9a Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 18:47:34 2022 +0200 Get share links now functional commit df697f68b2bcedc7c623d9d9ec291a9625b62160 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:29:52 2022 +0200 Share link formatting bug commit 3b357ca72767fcbb9742a935f29770ab488ac36f Author: aunefyren <oystein.sverre@gmail.com> Date: Sun Jun 12 00:26:15 2022 +0200 Share link creation Started implementation Missing get and delete functionality Added delete cache option to Tautulli settings commit 54e079951ff131d9177fd0f4a79238c03043d875 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Jun 10 19:13:01 2022 +0200 Fixed bugs Shows with seasons in different years were split on top lists Amount of media plays was not unique to media-release, just amount of plays overall Fixed display for music minutes Logging can now be disabled Tautulli libraries were not included in API calls commit 26508af56a182b9611affb4401e5db494ae27c8b Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:38:08 2022 +0200 Fixed bug where top-lists under 10 crashed the API commit 0f28e39c8d4fe444c8d30caaaee9ca138d469270 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Jun 7 20:17:41 2022 +0200 Fixed bug for year users duration-sum commit 1e3cb11637cfe001936d4b950b28564d2eec2a4b Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 29 19:51:15 2022 +0200 Statistics retrieval finished Revamped config get/set functions Redid some UI explanations Renamed template JSON commit 93390d469bab45560574e678a88b38dcef60f100 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon May 23 22:23:31 2022 +0200 Bug problem commit 3eb49b8da1c77d33923913e817cb41201cab3963 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 23:48:11 2022 +0200 Users commit aa6b3ec5121bb73cbe5828d9f42e1fd14514ddbd Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 13:11:35 2022 +0200 More stats Leaderboard and show buddy missing Working on bug that resets config (?!) commit 29742a2b6305a3835c63fc2c7760018b3e2267f0 Author: aunefyren <oystein.sverre@gmail.com> Date: Sun May 22 00:41:19 2022 +0200 Basis for stats retrieval personal movies, shows and music is functional commit a0df0759a76689638d47657abde755cc34dd4a1b Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:24 2022 +0200 Removed Docker folder commit 3e192997c08a5406a3d98e850218a674559f9ff0 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri May 20 17:06:05 2022 +0200 Renaming and Pop-up fix Pop ups should now not be blocked. Hopefully... commit 57b2d03fb57762c6c2aec7433a4f2affd6faa090 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 15:37:26 2022 +0200 CSS changes New rounded corners Transparent background colors Yellow borders Blurred background image Better footer placement More depth to snow particles commit b562e75bee6ff612019fa08d221fbf1ee69edd11 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 29 12:37:18 2022 +0200 API endpoints changes Get wrapperr-version now also retrieves config-state Login via Plex Auth disabled if Wrapperr is unconfigured Cookies changed to strict samesite value Logging changes commit e01bfc41cf46b3d7bc3b6627c93b67c0f70aa718 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Fri Apr 29 10:47:12 2022 +0200 Update README.md More shields commit 2d2893cb9b212016c3455fd4f8dd3a5b229550ba Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 22:09:24 2022 +0200 Comments and time zone fixes commit 271c16b00e0eb4d58a97ed3b82f0e96993a7d853 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 16:26:44 2022 +0200 Caching and caching loop commit 44376b4d57765258602ec585e59b0825938d3c77 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 27 10:33:18 2022 +0200 Pulling Tautulli History Moved Tautulli functions to their own file commit 5355dafc68c5c2ed5a7c7e413388981438314500 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 22:00:49 2022 +0200 Start of Tautulli data collection Added time-zone setting in code Created cache structs commit 8bcce997c3b1a0556752ff99b5925cce7e18c4b6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 26 17:25:06 2022 +0200 Comments and caching mode commit 6e951efbcd6acb0b442a691ceb9919e95d3e9e98 Author: aunefyren <oystein.sverre@gmail.com> Date: Sat Apr 23 19:03:00 2022 +0200 User details fetch (From Plex & Tautulli) commit cb5b9384c0b716ef33770a0f96f6e4c0601cff50 Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Sat Apr 23 12:07:57 2022 +0200 Shields.io stats commit 343e0ac727576652ccd81e565a7a385879b1bfb4 Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 18 22:14:49 2022 +0200 Begun stats function Moved Taut test to separate function from API endpoint commit b7e34224d7524358a4b59bd667d75b3b6527361c Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:26:54 2022 +0200 Update util.go commit 4a2598f77cce3c5e9d5fc66e9e870bf3cd4bfb51 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 15 02:22:34 2022 +0200 Error handling commit 09b80cf16c054d2767cd1cf50ae17f7f72268a53 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 15:01:59 2022 +0200 Updated readme to explain current standing commit 273b08f43ca317b6cd4ede01efb5040e63cc9839 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:46:34 2022 +0200 Removed test-log commands commit f2e85beb9d4aa9157b32933c50495c5f029787e4 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:26:17 2022 +0200 Removed legacy PHP files commit aaafea6da38173224d1b15063d4f32468ec12879 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 14:24:41 2022 +0200 URL builder & test Tautulli connection commit a02a172a7fc85a5a595fdb4003b00c8aa7d5f475 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 02:37:48 2022 +0200 Moved Plex Auth Get Pin to front end By moving this API call to the front end (JS), the IP address is identical when logging in. This removes the red warning. commit 744fae84a088cc77ba86d3c3687aff8d9caa77d7 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 14 01:33:40 2022 +0200 Plex Auth Plex Auth login, validation and JWT token creation commit 820bbca58a5679ef6a1e98ec586442cd841ac958 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 20:45:00 2022 +0200 Update config API now updates config file commit cb581d69007b32e8e924ac22ba66c923dd9eef23 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 13 15:49:04 2022 +0200 More API functions - Admin login - Config/Admin file creation - Config API retrieval commit f832df727de5c5fe583f03e2d8906714ceaf8017 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 12 09:30:58 2022 +0200 Functional API endpoints Some basic functionality - Retrieve wrapperr version - Retrieve admin state - Create admin commit 76193b7230e90d578bc561c8f479a87885c0b50f Author: aunefyren <oystein.sverre@gmail.com> Date: Mon Apr 11 16:51:35 2022 +0200 Config loaders commit c197a1b91b6307432e560756da97887bbfb36de5 Author: aunefyren <oystein.sverre@gmail.com> Date: Fri Apr 8 17:20:36 2022 +0200 Config files commit 2ef850426a14ecf3dc39ab4b122fb479bb1e8f11 Author: aunefyren <oystein.sverre@gmail.com> Date: Thu Apr 7 13:16:01 2022 +0200 Functional jwt validattion and creation commit a52de743daeb3dce18db7e0848eea37d4c35b707 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 22:25:01 2022 +0200 Auth token jwt commit 2f446a484ad6e4330a3a40cc708a543ca47ce148 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 14:19:49 2022 +0200 Middleware commit 1a1bc6ef09b9bce995d9d4b3f4bf7b0d1ead988a Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:14:02 2022 +0200 Added more comments commit 8c36dc74a98aa66565851ab01aff91e641287f06 Author: aunefyren <oystein.sverre@gmail.com> Date: Wed Apr 6 09:08:26 2022 +0200 Port start argument Also included as ENV in Dockerfile commit 6bfbbdf5c3f955ab680ee4b47863bd7f017ffd5a Author: Aune <31650531+aunefyren@users.noreply.github.com> Date: Tue Apr 5 23:31:36 2022 +0200 Whopsie commit 7600f2812e01d266f3488ed32a49d1591740a3e6 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 20:05:13 2022 +0200 Routing commit 0dbb1c756fcd411e60b73752554d75c8bf04f0b5 Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 18:20:12 2022 +0200 Added warnings & Dockerfile commit a787a0acd41ab182ca0607dc3c1796a28ce947bd Author: aunefyren <oystein.sverre@gmail.com> Date: Tue Apr 5 17:51:48 2022 +0200 Go branch init The assets are served, but no API
2022-07-04 15:47:59 +00:00
}