advplyr
b54421412d
Merge pull request #2738 from Sapd/auth-fix
...
Auth: Fix crash on missing logout URL
2024-03-13 17:18:35 -05:00
advplyr
dbf4bd5c3d
Merge pull request #2691 from lkiesow/hash-in-filename
...
Fix file names with URL control characters
2024-03-12 17:40:37 -05:00
Denis Arnst
2a722ab163
Auth: Fix crash on missing logout URL
...
When using OpenID
Also added debug information on openid errors
2024-03-12 18:07:13 +01:00
Lauri Vuorela
c83399c7b5
use the toggle to not show earlier works than the ones already read
2024-03-12 17:04:26 +01:00
mikiher
29e9216bb1
Make series sequence cleanup slighlty less aggressive
2024-03-12 13:17:52 +02:00
Kaldigo
94d1732b0d
Added isbn to CustomProviderAdapter
2024-03-12 08:18:52 +00:00
advplyr
77559d29bb
Merge pull request #2724 from mikiher/fix-library-filter-data-access
...
Fix library filter data direct access
2024-03-11 17:08:41 -05:00
advplyr
c14f9accaf
Update functions for #2724 and add jsdocs
2024-03-11 17:07:03 -05:00
advplyr
76a1f48c62
Remove UID/GID from Server constructor
2024-03-11 11:11:13 -05:00
mikiher
ad45dadc15
Remove redundant space
2024-03-09 12:07:08 +02:00
mikiher
0e8148001e
Fix direct access to Database.libraryFilterData
2024-03-09 11:59:50 +02:00
advplyr
e50b06183e
Merge branch 'master' into authorSort
2024-03-07 12:26:07 -06:00
advplyr
b4eed3bad2
Merge pull request #2694 from mikiher/client-image-caching
...
Client side cover image caching
2024-03-01 17:48:08 -06:00
advplyr
49af7eb7b0
Merge pull request #2692 from lkiesow/log-src
...
Fix log source in log file
2024-02-29 17:01:59 -06:00
advplyr
c93c863d82
Merge pull request #2677 from Teekeks/enhance-ebook-filter
...
feat: Expanded filter to include "has no ebook" and "has no supplementary ebooks" options
2024-02-29 14:00:50 -06:00
Lars Kiesow
79d32274aa
Fix log source in log file
...
The logger should include a source containing the location where the
logger was called. This works well for logging to `stdout`. Unfortunately,
the file logs contain the locations where the file logging is called
inside of the logger. This is not helpful:
```
{"timestamp":"2023-11-19 16:35:43","source":"Logger.js:114","message":"[oldDbFiles] Processed db data file with 1 entities","levelName":"INFO","level":2}
{"timestamp":"2023-11-19 16:35:43","source":"Logger.js:114","message":"[oldDbFiles] Finished loading db data with 2 entities","levelName":"INFO","level":2}
{"timestamp":"2023-11-19 16:35:43","source":"Logger.js:114","message":"[oldDbFiles] 2 settings loaded","levelName":"INFO","level":2}
```
This patch fixes the issue, ensureing that the actual source location
will be logged:
```
{"timestamp":"2024-02-29 18:12:59.832","source":"DailyLog.js:132","message":"[DailyLog] 2024-02-29: Loaded 20 Logs","levelName":"DEBUG","level":1}
{"timestamp":"2024-02-29 18:12:59.638","source":"Server.js:172","message":"=== Starting Server ===","levelName":"INFO","level":2}
{"timestamp":"2024-02-29 18:12:59.638","source":"Server.js:103","message":"[Server] Init v2.8.0","levelName":"INFO","level":2}
```
2024-02-29 18:16:29 +01:00
Lars Kiesow
987842ed04
Fix file names with URL control characters
...
This patch ensures that files names like `series #3 xy.jpg` are actually
handled correctly instead of the part after `#` being interpreted as
fragment and being discarded.
I noticed that in a few rare cases the App wouldn't properly display
cover images. It turns out that due the file names containing a `#`, the
file path got corrupted, causing Audiobookshelf to return a 403.
2024-02-29 17:56:55 +01:00
advplyr
d2b006b909
Update:Windows binary manager to install ffmpeg/ffprobe 5.1 #1098
2024-02-28 16:16:44 -06:00
advplyr
38f12f4795
Fix:Podcast schedule max new episodes to download setting to 0 and fix input blurs #2680
2024-02-27 17:17:33 -06:00
Teekeks
655bebfec4
feat: Expanded filter to include "has no ebook" and "has no supplementary ebooks" options
2024-02-27 18:30:05 +01:00
advplyr
def2988e12
Update:Passport openid-client request timeout set to 10s (default was 3.5s) #2669
2024-02-26 17:20:11 -06:00
mikiher
b47793c365
Add cache control header for timestamped cover image requests
2024-02-26 14:00:25 +02:00
advplyr
24c35dede5
Merge pull request #2659 from mikiher/quick-match-dup-authors
...
Fix dup author addition logic
2024-02-25 08:12:05 -06:00
mikiher
e6735e042e
Fix dup author addition logic
2024-02-25 09:01:26 +02:00
jfrazx
5e8f247e84
chore: merge master
2024-02-22 10:50:49 -08:00
mikiher
0f4b11494e
Merge branch 'advplyr:master' into fix-match-update
2024-02-22 12:20:49 +02:00
advplyr
85fecbd1b9
Version bump v2.8.0
2024-02-18 16:43:16 -06:00
advplyr
973a18d346
Update:Added button to user edit modal for unlinking user from openid #2587
2024-02-18 15:38:45 -06:00
advplyr
a43b93d796
Fix:Clear library filter data cache when library item is updated #2597
2024-02-18 14:58:46 -06:00
advplyr
acf75abdf1
Update:Match author use closest name match by levenshtein distance #2624
2024-02-18 13:06:51 -06:00
advplyr
d9e7f5d133
Update BinaryManager JSDocs, move validVersions to required binary objects
2024-02-17 17:40:33 -06:00
advplyr
a119b05d85
Merge branch 'master' into ffmpeg-latest
2024-02-17 17:05:51 -06:00
advplyr
e47ea98cdd
Fix:Disconnect from socket on logout, remove unnecessary logout function
2024-02-17 16:58:49 -06:00
advplyr
bf66e13377
Update jsdocs
2024-02-17 16:06:25 -06:00
advplyr
d7aba5629e
Remove old login rate limiter
2024-02-17 15:29:06 -06:00
advplyr
a5c200ac79
Merge branch 'master' into sso
2024-02-17 14:15:41 -06:00
advplyr
180c328ed1
Update jsdocs for search podcasts
2024-02-17 13:24:49 -06:00
advplyr
2ec52a7a45
Merge branch 'master' into liaocl
2024-02-17 12:56:05 -06:00
advplyr
aacf37e32b
Fix:Year in Review crashing when listening session has a null genre #2623
2024-02-16 16:16:55 -06:00
advplyr
52323b7eb5
Update:Podcast episode download show ffmpeg progress and print full debug log dump on error
2024-02-16 16:05:02 -06:00
advplyr
af7cb2432b
Update:Log uncaught exceptions to crash_logs.txt #706 & cleanup logger
2024-02-15 16:46:19 -06:00
advplyr
4e3e7b10ce
Update:Custom metadata provider adapter sends mediaType as a query param
2024-02-12 17:12:49 -06:00
advplyr
0cf2f8885e
Add custom metadata provider controller, update model, move to item metadata utils
2024-02-11 16:48:16 -06:00
advplyr
ddf4b2646c
Merge branch 'master' into dewyer/add-custom-metadata-provider
2024-02-11 09:10:29 -06:00
advplyr
2093468c92
Fix:Local playback sessions not persisting the last updatedAt value
2024-02-08 19:12:35 -06:00
mikiher
19af7454f2
Force Update LibraryItem model updatedAt refresh ( fixes #2593 )
2024-02-07 20:57:50 +02:00
KeyboardHammer
e2bb0cfb7c
add sorting to author page
2024-02-03 21:48:35 -06:00
mikiher
2ebdb44826
Merge cover and media update in Match.vue into a single /media API call
2024-02-01 12:03:12 +02:00
advplyr
432e25565e
Merge branch 'master' of https://github.com/advplyr/audiobookshelf
2024-01-31 17:23:20 -06:00
advplyr
ebe511404a
Remove updateMedia endpoint cover cache purge
2024-01-31 17:23:16 -06:00
Spenser Bushey
295ca3d9a2
Return png from AudiobookCovers.com
...
Changes AudiobookCovers.com provider to return the full size png file from the server. The original file url has the incorrect content-type header set, which caused issues downloading new cover images.
2024-01-30 09:15:50 -08:00
advplyr
0b334cf957
Add:Authentication setting to show a custom message on login #2552
2024-01-26 17:08:23 -06:00
mikiher
d43a1109c8
Modify BinaryManager to download version 6.1 and remove old dowloaded versions
2024-01-25 17:51:06 +02:00
Denis Arnst
c3ba7daa16
Auth: Remove is_rest cookie
2024-01-25 16:05:41 +01:00
Denis Arnst
82048cd4f3
SSO: Also save openid_id_token longer
2024-01-25 15:13:56 +01:00
Denis Arnst
71b0a5cc81
SSO Settings: Fix Redirect URL Regex
...
Forgot to include subpaths
2024-01-25 11:49:10 +01:00
Denis Arnst
edb5ff1e33
SSO: Remove pick function
2024-01-25 11:44:20 +01:00
Denis Arnst
d4ed6348ee
Auth: Store auth_method longer
...
Its not unrealistic that someone keeps being logged into the app for more than a year
if not stored longer logout process might not work anymore
2024-01-25 11:20:44 +01:00
Denis Arnst
f12ac685e8
/auth/openid: Restructure
...
- Distingush more explictly between mobile and web flow and simplify logic
- Allow state parameter to be passed in mobile flow
- Additional checks for correct parameters
- Remove unused id_token code
- Enforce S256 and don't allow plain PKCE
2024-01-25 11:13:34 +01:00
Denis Arnst
87ebf4722b
OpenID/SSO: Implement Logout functionality
2024-01-24 22:47:50 +01:00
advplyr
3906dca04e
Update:RSS feeds only use chapter titles for episode titles if all audio tracks match chapter times #2543
2024-01-23 17:51:34 -06:00
jfrazx
70827727aa
feat(429): retry 429 request errors
2024-01-22 22:19:05 -08:00
jfrazx
73c21242b4
feat: utilize p-throttle instad of limiter
2024-01-22 20:36:20 -08:00
advplyr
19e1803633
Remove unused import
2024-01-22 17:56:41 -06:00
jfrazx
4c9b2ad08b
chore: merge master
2024-01-16 18:31:29 -08:00
advplyr
7b0fa48e2e
Update jsdocs for expanded library items
2024-01-16 16:31:16 -06:00
advplyr
f5545cd3f4
Add:Scanner extracts cover from comic files #1837 and ComicInfo.xml parser
2024-01-14 17:51:26 -06:00
jfrazx
79c34d0638
chore: merge master
2024-01-13 11:46:38 -08:00
FlyinPancake
6ef4944d89
Merge branch 'advplyr:master' into dewyer/add-custom-metadata-provider
2024-01-13 01:08:23 +01:00
FlyinPancake
3b531144cf
implemented suggestions, extended CMPs with series
2024-01-12 21:45:03 +01:00
advplyr
e8fa029df7
Fix:Specific podcast rss feed cannot be fetched due to accept header #2446
2024-01-10 08:12:26 -06:00
Benjamin Porter
4a76059608
Change Logger.dev
calls to Logger.debug
...
Logger.dev is kind of in a weird spot where it doesn't fit into the
standard log level. It is called directly by some code and it only
checks whether a property is set (which comes from an env var) before
deciding to print out.
This standardizes on `debug` by changing the dev calls to debug. Also
removes the now unused code.
2024-01-09 15:24:23 -07:00
advplyr
da25eff5c1
Fix:Parse series sequence from OPF in cases where series_index is not directly underneath series meta #2505
2024-01-08 18:21:15 -06:00
advplyr
69e23ef9f2
Add:Epub metadata parser and cover extractor #1479
2024-01-07 17:51:07 -06:00
advplyr
a426da534c
Fix:Export OPML not escaping characters #2487
2024-01-05 14:45:25 -06:00
mozhu
fea78898a5
移动播客搜索地区配置到媒体库配置
2024-01-05 14:45:35 +08:00
mozhu
56eff7a236
增加播客搜索地区配置
2024-01-04 11:52:45 +08:00
advplyr
9f909b0d85
Update:Library folder browser to also work for debian and windows
2024-01-03 16:23:17 -06:00
Barnabas Ratki
12c6a1baa0
Fix log messages
2024-01-03 20:42:35 +01:00
Barnabas Ratki
5ea423072b
Small fixes
2024-01-03 20:40:36 +01:00
Barnabas Ratki
8027c4a06f
Added support for custom metadata providers
...
WiP but already open to feedback
2024-01-03 20:25:34 +01:00
advplyr
b489bf9236
Restrict binary manager to Windows or development
2024-01-02 14:24:59 -06:00
advplyr
aa63aa6cf3
Merge branch 'master' into binary-manager
2024-01-02 14:16:27 -06:00
advplyr
e8ea7efc98
Merge branch 'master' of https://github.com/advplyr/audiobookshelf
2023-12-31 15:36:37 -06:00
advplyr
81a76593da
Fix:Merging chapters from multiple audio files with the same chapter titles #2461
2023-12-31 15:35:17 -06:00
advplyr
5336864f7d
Merge pull request #2465 from thevoltagesource/getFileMtimeMs_Unhandled_Exception
...
Add try/catch to fileUtils.getFileMtimeMs
2023-12-31 15:34:43 -06:00
advplyr
021adf3104
Update:Podcast episode table is lazy loaded #1549
2023-12-31 14:51:01 -06:00
advplyr
160c83df4a
Update:podcastEpisodes table index added for createdAt column #2073 #2075
2023-12-30 16:14:14 -06:00
advplyr
456bb87a00
Update:Find one library item endpoint sequelize query split into two queries to improve performance #2073 #2075
2023-12-30 12:12:48 -06:00
advplyr
707451309c
Merge branch 'master' of https://github.com/advplyr/audiobookshelf
2023-12-29 17:05:40 -06:00
advplyr
269676e8a5
Update:CORS for /cover API endpoint for use in canvas in the mobile apps
2023-12-29 17:05:35 -06:00
Jacob Southard
e4effebc19
Add try/catch to fileutils.getFileMtimeMs
2023-12-29 10:04:59 -06:00
advplyr
9a634e0de5
Add JS docs for server stop
2023-12-28 16:32:21 -06:00
mikiher
21d0d43edc
Add SocketAuthority.close()
2023-12-27 15:33:33 +02:00
mikiher
3051b963ef
Merge branch 'advplyr:master' into binary-manager
2023-12-27 06:44:22 +02:00
advplyr
0d0bdce337
Fix:Fetch RSS feed request accept header #2446
2023-12-25 13:15:55 -06:00
mikiher
209847d98a
Add a SIGINT handler for proper server shutdown
2023-12-25 09:25:04 +02:00
advplyr
14f42e15d1
Fix:Book scanner update book series sequence if changed
2023-12-24 11:53:57 -06:00
advplyr
7402e4811d
Merge pull request #2444 from jedrus2000/opf-multiple-series-support
...
Add: OPF file supports multiple series as sequence of : calibre:series and calibre:series_index; including tests
2023-12-24 11:42:06 -06:00
advplyr
6de0465b86
Update opf parser to ignore series with empty content and add tests
2023-12-24 11:41:27 -06:00
Andrzej Bargański
cd7c4baaaf
Add: OPF file supports multiple series as sequence of : calibre:series and calibre:series_index; including tests
2023-12-24 00:43:42 +01:00
advplyr
0d644fe0c9
Add:Year in review banner for user stats page #2373
2023-12-23 15:29:34 -06:00
advplyr
2738402aac
Add:Year in review card for server stats #2373
2023-12-22 17:01:07 -06:00
advplyr
24a587b944
Update:Remove playback sessions that are 3s or less on startup
2023-12-21 14:29:36 -06:00
advplyr
76119445a3
Update:Listening sessions table for multi-select, sorting and rows per page
...
- Updated get all sessions API endpoint to include sorting
- Added sessions API endpoint for batch deleting
2023-12-21 13:52:42 -06:00
advplyr
2b7122c744
Update:Year stats API endpoint & generate year in review image #2373
2023-12-20 17:18:21 -06:00
advplyr
7391b4d0ec
Add:User stats API for year stats
2023-12-19 17:19:33 -06:00
advplyr
10b1784f6d
Fix:Library search API endpoint /libraries/:id/search to check that query param q is a valid string
2023-12-17 12:23:55 -06:00
advplyr
f2f2ea161c
Update:API endpoint /podcasts/feed validates rssFeed URL and uses SSRF req filter
2023-12-17 12:00:11 -06:00
advplyr
dc67a52000
Update:API endpoint /search/podcast throw 400 error if term query param is not supplied
2023-12-17 11:18:21 -06:00
advplyr
05820aa820
Update:API endpoints /podcasts/feed and /podcasts/opml restricted to admin users
2023-12-17 11:17:35 -06:00
advplyr
728496010c
Update:/auth/openid/config API endpoint to require admin user and validate issuer URL
2023-12-17 10:41:39 -06:00
advplyr
fae383a045
Fix:RSS feeds for collections not updating #2414
2023-12-14 15:45:34 -06:00
mikiher
8f7a420cca
Fix directory writable check (fs.access not working on Windows)
2023-12-14 09:47:18 +02:00
advplyr
6abc0819d9
Merge pull request #2400 from mikiher/bookfinder-improvements
...
A few BookFinder improvements (including a fix for #2238 )
2023-12-10 10:36:21 -06:00
advplyr
b580a23e7e
BookFinder formatting update
2023-12-10 10:35:21 -06:00
advplyr
f659c3f11c
Fix:Podcast RSS feed request header to include application/rss+xml #2401
2023-12-09 13:51:28 -06:00
mikiher
0282a0521b
Sort audible match results by duration difference
2023-12-09 00:33:06 +02:00
mikiher
b6c789dee6
Merge branch 'advplyr:master' into bookfinder-improvements
2023-12-08 14:07:25 +02:00
advplyr
6f6395bad7
Only log update binary env path if it was updated
2023-12-07 17:32:06 -06:00
advplyr
8f4c65ec8c
Merge branch 'master' into sso-redirecturi
2023-12-07 17:04:59 -06:00
advplyr
341a0452da
Update auth settings endpoint to return updated flag and show whether updates were made in client toast
2023-12-07 17:01:33 -06:00
mikiher
6afb8de3dd
Remove ffbinaries local cache
2023-12-08 00:53:53 +02:00
mikiher
09282a9a62
Remove all callbacks and refactor spaghetti code in downloadUrls
2023-12-07 23:49:46 +02:00
mikiher
699a658df9
Remove debug printing from libs/ffbinaries
2023-12-07 08:50:45 +02:00
advplyr
b5e255a384
Update:Clean series sequence response from audible provider #2380
...
- Removes Book prefix
- Splits on spaces and takes first, removes trailing comma
2023-12-06 17:31:36 -06:00
mikiher
898b072e68
Merge branch 'advplyr:master' into binary-manager
2023-12-06 09:27:17 +02:00
advplyr
34156af403
Fix:Updating media progress not clearing cache #2392
2023-12-05 17:58:54 -06:00
advplyr
1ce1904c89
Add ffbinaries lib
2023-12-05 17:35:15 -06:00
mikiher
2e989fbe83
Add BinaryManager
2023-12-05 21:19:17 +02:00
Denis Arnst
cf00650c6d
SSO/OpenID: Also fix possible race condition
...
- We need to define redirect_uri in the callback again, because the global params of passport can change between calls to the first route (ie. if multiple users log in at same time)
- Removed is_rest parameter as requirement for mobile flow (to maximise compatibility with possible oauth libraries)
- Also renamed some variables for clarity
2023-12-05 09:43:06 +01:00
Denis Arnst
e6ab28365f
SSO/OpenID: Remove modifying redirect_uri in the callback
...
The redirect URI will be now correctly set to either /callback or /mobile-redirect in the /auth/openid route
2023-12-05 00:18:58 +01:00
Denis Arnst
80fd2a1a18
SSO/OpenID: Use a mobile-redirect route ( Fixes #2379 and #2381 )
...
- Implement /auth/openid/mobile-redirect this will redirect to an app-link like audiobookshelf://oauth
- An app must provide an `redirect_uri` parameter with the app-link in the authorization request to /auth/openid
- The user will have to whitelist possible URLs, or explicitly allow all
- Also modified MultiSelect to allow to hide the menu/popup
2023-12-04 22:36:34 +01:00
advplyr
84160b2f07
Fix:Server crash when user without a password attempts to login with a password #2378
2023-12-02 16:17:52 -06:00
advplyr
fbc2c2b481
Merge pull request #2333 from kieraneglin/ke/feature/upload-auto-fetch-data
...
Add ability to fetch book data on upload
2023-12-02 15:56:39 -06:00
Kieran Eglin
57a5005197
Addressed feedback changes
2023-12-01 21:42:54 -08:00
mikiher
281de48ed4
Fix "et al" cleanup
2023-11-30 21:49:24 +02:00
mikiher
3c6d6bf688
Merge branch 'advplyr:master' into bookfinder-improvements
2023-11-30 21:37:01 +02:00
mikiher
8ac0ce399f
Remove "et al[.]" in author cleanup
2023-11-30 21:17:13 +02:00
mikiher
80458e24bd
"[un]abridged" in title candidate generation
2023-11-30 21:15:25 +02:00
advplyr
6ab966ee2f
Merge pull request #2365 from Sapd/sso-errorhandling
...
SSO/OpenID: Provide error messages to logs
2023-11-28 16:39:01 -06:00
advplyr
166477ae27
Fix:Narrators page 404 on reload #2359
2023-11-28 16:39:52 -06:00
advplyr
a719065b8d
Auto formatting
2023-11-28 16:37:19 -06:00
Denis Arnst
36599a2984
SSO/OpenID: Rename probably misleading message
2023-11-28 21:16:39 +01:00
Denis Arnst
618028503b
SSO/OpenID: Also Log token header
2023-11-28 20:07:49 +01:00
Denis Arnst
ad53894ea1
SSO/OpenID: Provide detailed error messages
2023-11-28 17:29:22 +01:00
advplyr
b4c14fc78d
Parse NFO comma separated strings remove empty strings
2023-11-26 14:38:25 -06:00
advplyr
d9584174ff
Parse NFO trim final parsed description
2023-11-26 14:33:35 -06:00
advplyr
36e00e8d6a
Merge master
2023-11-26 13:54:06 -06:00
advplyr
5a8c60a8bc
Merge pull request #2343 from mikiher/caching
...
Simple API Caching for /libraries* requests
2023-11-26 12:33:54 -06:00
mikiher
3ff41f2b43
Cache HTTP headers and status
2023-11-25 23:49:56 +02:00
advplyr
2e06ae01a1
Merge pull request #2326 from lkiesow/hide-dev-logs
...
Allow enabling dev logs
2023-11-25 10:36:50 -06:00
mikiher
288a32cc1e
Merge branch 'caching' of https://github.com/mikiher/audiobookshelf into caching
2023-11-25 08:14:54 +02:00
mikiher
26fc3a1966
Remove currently unused time measurement utils
2023-11-25 08:14:45 +02:00
advplyr
1a046a9bcb
Merge branch 'master' into caching
2023-11-24 14:38:27 -06:00
advplyr
7a9c869ac5
Ignore sequelize hooks when updating user lastSeen on socket authentication
2023-11-24 14:27:32 -06:00
advplyr
572fb0993c
Rename ApiCacheManager to add .js file extension
2023-11-24 14:20:14 -06:00
advplyr
9beee3ed65
Fix:Change password api endpoint
2023-11-23 15:14:49 -06:00
mikiher
ab19e25586
Remove unnecessary timing measurements
2023-11-23 09:56:37 +02:00
mikiher
07d7d16418
Use a single router.get for API cache middleware
2023-11-23 09:55:55 +02:00
mikiher
5e1e748c71
Add ApiCacheManager unit test
2023-11-23 09:53:52 +02:00
advplyr
32ce771911
Allow cors while in development
2023-11-22 12:37:18 -06:00
mikiher
d944ecaa21
Merge branch 'caching' of https://github.com/mikiher/audiobookshelf into caching
2023-11-22 19:10:29 +02:00
mikiher
5aeb6ade72
Merge branch 'caching' of https://github.com/mikiher/audiobookshelf into caching
2023-11-22 19:00:11 +02:00
mikiher
107b4b83c1
Add cache middleware to most /libraries get requests
2023-11-22 18:40:42 +02:00
mikiher
a4d4f1bc2e
Merge branch 'advplyr:master' into nfo-metadata
2023-11-21 09:09:12 +02:00
advplyr
048e27f03f
Update:Openid auth endpoint sets the mobile flag on session to be used in the callback
...
Co-authored-by: Denis Arnst <git@sapd.eu>
2023-11-20 15:41:38 -06:00
Lars Kiesow
7b6aa3ba5a
Allow enabling dev logs
...
This patch allows users to enable dev logs on production systems by
setting the `HIDE_DEV_LOGS` environment variable.
Before, you could only use this on a non-production environment. On
production, the logs would be disabled. This patch changes the behavior
and uses the `NODE_ENV` only as default. On production they are disabled
if `HIDE_DEV_LOGS` is undefined but can be enabled by setting
`HIDE_DEV_LOGS=0` on dev, they are enabled if undefined, but can be
disabled by setting `HIDE_DEV_LOGS=1`.
2023-11-19 21:00:54 +01:00
advplyr
aa933df525
Update oidc redirect_uri to check x-forwarded-proto header for proxies
2023-11-19 14:00:39 -06:00
advplyr
a0f137936d
Merge pull request #2325 from lkiesow/milliseconds
...
Add milliseconds to logging
2023-11-19 13:41:10 -06:00
advplyr
dcbfc963c1
Update protocol for redirect_uri in openid strategy to work for reverse proxies
2023-11-19 13:38:09 -06:00
Lars Kiesow
91fa78d740
Add milliseconds to logging
...
This patch adds milliseconds to the time string used for logging. This
helps when debugging some timing issues and should have no real negative
side effect.
2023-11-19 20:36:04 +01:00
advplyr
89eb857c14
Fix initialize openid auth strategy
2023-11-19 12:57:17 -06:00
advplyr
4c2c320b9d
Remove global CORS for api endpoints and setup temp CORS check for ebook endpoint
2023-11-19 11:32:48 -06:00
advplyr
56c574c928
Update package-lock
2023-11-19 08:29:58 -06:00
advplyr
d2aea86957
Merge pull request #2300 from mikiher/bookfinder-testing-mocha
...
Bookfinder.js unit testing with mocha
2023-11-18 13:55:18 -06:00
mikiher
6a722102c5
Use ApiCacheManager & timing middleware
2023-11-17 08:49:40 +02:00
mikiher
f22f3361d5
Add timing utils
2023-11-17 08:48:09 +02:00
mikiher
4dec8c265d
Add ApiCacheManager
2023-11-17 08:47:40 +02:00
mikiher
d990e5b909
Add NFO metadata source
2023-11-12 13:30:23 +00:00
advplyr
fb48636510
Openid auth failures redirect to login page with error message.
...
Remove remaining google oauth server settings
2023-11-11 13:10:24 -06:00
advplyr
1ad6722e6d
Remove google-oauth passport strategy
2023-11-11 11:29:59 -06:00
advplyr
557ef2ef79
Update /auth/openid endpoints for correct PKCE handling
...
- Provide error handling for /auth/openid
- Add session.mobile inside /auth/openid
- Proper PKCE handling for /auth/openid/callback
- redirect_uri handling for the token url in /auth/openid/callback
Co-authored-by: Denis Arnst <git@sapd.eu>
2023-11-11 10:52:05 -06:00
advplyr
237fe84c54
Add new API endpoint for updating auth-settings and update passport auth strategies
2023-11-10 16:11:51 -06:00
advplyr
078cb0855f
Merge branch 'master' into auth_passportjs
2023-11-10 07:26:07 -06:00
mikiher
e8c14dbb58
Test BookFinder.js using mocha
2023-11-09 19:58:51 +00:00
advplyr
ee75d672e6
Matching user by openid sub, email or username based on server settings. Auto register user. Persist sub on User records
2023-11-08 16:14:57 -06:00
advplyr
e140897313
Add match existing user by and auto register settings and UI
2023-11-08 14:45:29 -06:00
mikiher
d1671f0ddc
Cleanup commented out tests
2023-11-08 16:37:12 +00:00
mikiher
2730486ba5
Add tests for AuthorCandidates and search() in BookFinder
2023-11-08 16:24:08 +00:00
mikiher
49e4515785
Add stripRedudantSpaces
2023-11-08 16:21:20 +00:00
mikiher
819c524f51
Pass audnexus to AuthorCandidates constructor directly
2023-11-08 16:19:24 +00:00
mikiher
ba60fc7581
Add tests for TitleCanidates
2023-11-06 05:33:06 +00:00
advplyr
f840aa80f8
Add button to populate openid URLs using the issuer URL
2023-11-05 14:11:37 -06:00
advplyr
c17540e191
Add app and serverVersion properties to response from /status
2023-11-05 13:06:26 -06:00
advplyr
309ef807ab
Update /auth/openid endpoint to work with PKCE from mobile
...
Co-authored-by: Denis Arnst <git@sapd.eu>
2023-11-05 13:05:16 -06:00
mikiher
89055f8655
Remove unnecessary includesAuthorDiff from sorting
2023-11-05 16:14:26 +00:00
mikiher
5a3d450482
Refactor diff declarations in title candidate sorting
2023-11-05 15:13:42 +00:00
mikiher
047e7a72f2
Make position an internal property of titleCandidates
2023-11-05 14:56:20 +00:00
mikiher
ee3d3808ef
Refactor removing author from title candidate
2023-11-05 14:31:36 +00:00
mikiher
8f5a6b7c95
Move utility functions to module scope
2023-11-05 14:17:26 +00:00
advplyr
840811b464
Replace passport openidconnect plugin with openid-client, add JWKS and logout URL server settings, use email and email_verified instead of username
2023-11-04 15:36:43 -05:00
mikiher
567e1c46db
Fix handling of single mefia file updates
2023-11-04 11:06:54 +00:00
advplyr
cfe0c2a986
Merge branch 'master' into auth_passportjs
2023-11-03 08:29:05 -05:00
advplyr
5220361151
Fix:Podcast episode cron not adding/removing library items correctly #2277
2023-11-03 07:07:58 -05:00
advplyr
828b96b2d9
Add server settings for changing openid button text and auto launching openid
2023-11-02 13:55:01 -05:00
advplyr
ab14b561f5
Merge master
2023-11-01 08:58:48 -05:00
clement.dufour
1ae2089253
Update:Add cover file extension in RSS feeds
2023-11-01 12:11:24 +01:00
clement.dufour
3c21e9d413
Update:Simpler content URL in RSS feeds
2023-11-01 12:10:44 +01:00
advplyr
9616d99640
Fix:Crash when matching with author names ending in ??? by escaping regex strings #2265
2023-10-30 16:35:41 -05:00
advplyr
27497451d9
Add:Ereader device setting to set users that have access #1982
2023-10-29 11:28:34 -05:00
advplyr
225dcdeafd
Fix:RSS feed parser for episode metadata tags that have attributes #1996
2023-10-28 16:11:15 -05:00
advplyr
88c794e710
Fix:Open RSS feed for series & collections respect prevent indexing option #2047
2023-10-28 13:45:06 -05:00
advplyr
f9c4dd2457
Update watcher function calls, add js docs
2023-10-26 16:41:54 -05:00
advplyr
3bccd52196
Merge branch 'master' into watcher-update-api
2023-10-26 16:33:48 -05:00
advplyr
8dc4490169
Fix:Watcher waits for files to finish transferring before scanning #1362 #2248
2023-10-25 16:53:53 -05:00
advplyr
ef1cdf6ad2
Fix:Only show authors with books for users #2250
2023-10-24 17:04:54 -05:00
mikiher
e054b9a54c
Add API to update a path on a watched library folder
2023-10-24 13:35:43 +00:00
advplyr
0ee6336b02
Merge pull request #2245 from mikiher/watcher-fixes
...
Fix incorrect subpath checks in server/watcher.js
2023-10-23 17:28:44 -05:00
advplyr
9a477a9270
Add jsdocs
2023-10-23 17:28:59 -05:00
mikiher
976ae502bb
Fix incorrect subpath checks
2023-10-23 21:48:34 +00:00
advplyr
60a80a2996
Update:Remove support for metadata.abs, added script to create metadata.json files if they dont exist
2023-10-22 15:53:05 -05:00
advplyr
49403771c9
Update:Quick match all for library to use task instead of toast, remove scan socket events
2023-10-21 13:53:00 -05:00
advplyr
58b9a42c84
Add:Scan button on libraries table
2023-10-21 12:56:35 -05:00
advplyr
d7264f8c22
Update watcher scanner to show task notification
2023-10-21 12:25:45 -05:00
advplyr
bef6549805
Update:Replace library scan toast with task manager #1279
2023-10-20 17:46:18 -05:00
advplyr
6f65350269
Update:JSDocs for task manager
2023-10-20 16:39:32 -05:00
advplyr
920ddf43d7
Remove unused old model functions
2023-10-19 17:20:12 -05:00
advplyr
516b0b4464
Fix:Book scanner set item as missing if no media files are found #2226
2023-10-18 17:02:15 -05:00
advplyr
b4ce5342c0
Add:Tools tab on library modal, api endpoint to remove all metadata files from library item folders
2023-10-17 17:46:43 -05:00
advplyr
0d5792405f
Fix:Podcast episodes store RSS feed guid so they can be matched if the RSS feed changes the episode URL #2207
2023-10-16 17:47:44 -05:00
advplyr
c264332994
Fix:Scanner detecting library item folder renames #1161
2023-10-15 12:55:22 -05:00
advplyr
07ad81969c
Update:Scanner recognizes asin in book folder names #1852
2023-10-14 15:04:16 -05:00
advplyr
dcdd4bb20b
Update:HLS router request validation, smooth out transcode reset logic
2023-10-14 12:50:48 -05:00
advplyr
c98fac30b6
Update:Validate image URI content-type before writing image file
2023-10-14 10:52:56 -05:00
advplyr
656c81a1fa
Update:Remove image path input from author modal, add API endpoints for uploading and removing author image
2023-10-13 17:37:37 -05:00
advplyr
290a377ef9
Update:Remove local cover path input & replace with url from web input, include SSRF request filter
2023-10-13 16:33:47 -05:00
advplyr
05731c9f72
Remove unused css parser lib
2023-10-13 14:10:54 -05:00
advplyr
3108bc5ccc
Fix:Server crash when removing last item from a playlist #2211
2023-10-13 13:33:15 -05:00
advplyr
e687a3403e
Fix:Cleaning up orphan streams on server init #2209
2023-10-11 17:05:56 -05:00
advplyr
753ae3d7dc
Fix:Server crash when downloading single file library items #2199
2023-10-10 17:51:52 -05:00
advplyr
c9a2fdcb29
Library scanner saves last scan info including metadata precedence. Remove force re-scan
2023-10-09 17:48:21 -05:00
advplyr
f84634e978
Fix OPF file scanner series sequence, book scanner check for mismatched audio file found lengths
2023-10-09 17:09:36 -05:00
advplyr
89821b91b0
Podcast scanner refactor/cleanup
2023-10-09 16:41:43 -05:00
advplyr
347b49f564
Update:Remove scanner settings, add library scanner settings tab, add order of precedence
2023-10-08 17:10:43 -05:00
mikiher
f8f555b4b6
Remove some unused code in AuthorCandidates.add
2023-10-07 21:30:37 +00:00
advplyr
786df450e5
Merge branch 'master' into Fuzzy-Matching-Continued
2023-10-07 11:52:04 -05:00
advplyr
b447cf5c1c
Fix:Handle non-ascii characters in global search by not lowercasing in query #2187
2023-10-05 17:00:40 -05:00
jfrazx
4e6b75d650
fix; HTTP/429 when requesting authors information, resolves #1570
2023-10-05 13:48:55 -07:00
mikiher
f44b7ed1d0
[enhancement] If no valid authors, use clean author field
2023-10-05 18:41:18 +00:00
mikiher
b0b7a0a618
[enhancement] Reduce spurious matches in validateAuthor
2023-10-05 18:27:52 +00:00
mikiher
bf9f3895db
[enhancement] Treat underscores as title part separators
2023-10-05 17:53:54 +00:00
mikiher
f3555a12ce
[enhancement] Handle initials in author normalization
2023-10-05 14:50:16 +00:00
mikiher
b2acdadcea
[enhancement] Added a couple title transformers
2023-10-05 14:29:40 +00:00
mikiher
9eff471afa
[enhancement] AuthorCandidates, author validation
2023-10-05 12:05:30 +00:00
mikiher
8979586404
[enhancement] Improve candidate sorting
2023-10-05 10:28:55 +00:00
advplyr
bfe514b7d4
Add:Email inputs for users
2023-10-04 17:05:12 -05:00
mikiher
752bfffb11
[enhamcement] Only add title candidate before and after all transforms
2023-10-04 14:53:12 +00:00
mikiher
10f5bc8cbe
[cleanup] Make original title/author check with more readable
2023-10-04 05:26:16 +00:00
mikiher
5d7c197c89
[fix] Add back toLowerCase to cleanAuthor/Title (required by other uses)
2023-10-03 19:43:37 +00:00
advplyr
5ccf0df308
Merge branch 'master' of https://github.com/advplyr/audiobookshelf
2023-10-02 17:09:19 -05:00
advplyr
a3a8937ba3
Fix:Crash when searching for cover without an author #2174
2023-10-02 17:09:12 -05:00
advplyr
2662e8f715
Merge branch 'master' into auth_passportjs
2023-10-02 16:21:47 -05:00
advplyr
7c9631c1b0
Update server/objects/Stream.js
2023-10-02 08:34:56 -05:00
Alistair1231
4352989242
update comment to include second issue that is adressed by change
2023-10-02 09:30:57 +02:00
Alistair Bahr
73bb73a04a
make force transcode apply to all "ffmpeg error 1"
2023-10-02 09:25:34 +02:00
advplyr
20a1d40d99
Fix:Set date properly on local playback sessions #2168
2023-10-01 12:44:52 -05:00
advplyr
e10b178565
Fix:Crash on failed scanner find covers #2164
2023-10-01 09:03:01 -05:00
mikiher
46b0b3a6ef
[cleanup] Refactor candidates logic to separate class
2023-10-01 08:42:47 +00:00
advplyr
c2c8cf919e
Fix:Bad backup causing other backup files to not be displayed #1961
2023-09-30 16:01:10 -05:00
advplyr
3d96749d38
Fix:Downloading podcasts with watcher causing duplicate episodes #2122
2023-09-30 15:12:37 -05:00
advplyr
1dc369180c
Fix:Home page recent series shelf respect hide single book series library setting #2134
2023-09-30 14:32:40 -05:00
advplyr
8d3a326216
Fix:Newest episodes home page shelf #2119
2023-09-30 14:19:10 -05:00
mikiher
1d3ad38187
[cleanup] refactor OpenLib sort into getOpenLibResult
2023-09-30 18:08:03 +00:00
advplyr
1b22205f74
Update:Add libraryItems table index to improve performance #2073
2023-09-30 12:39:16 -05:00
advplyr
f0929729a3
Fix:Adding new podcast with auto download episodes not setting the schedule #2160
2023-09-29 14:52:04 -05:00
advplyr
98ed2e01cc
Fix:Scanner overwriting metadata when metadata file is not stored with items #2155
2023-09-28 17:23:52 -05:00
advplyr
0d5a30b214
Update JWT auth extractors, add state in openid redirect, add back cors for api router
2023-09-25 17:05:58 -05:00
advplyr
10011d3886
Add:Remove option for authors & show authors with 0 books on authors page #2124
2023-09-24 17:06:32 -05:00
advplyr
0367d9ec2a
Fix:OPF files creating empty tags and genres #2142
2023-09-24 16:15:42 -05:00
advplyr
e282142d3f
Add authentication page in config, add /auth-settings GET endpoint, remove authOpenIDCallbackURL server setting
2023-09-24 15:36:35 -05:00
advplyr
f6de373388
Update /status endpoint to return available auth methods, fix socket auth, update openid to use username instead of email
2023-09-24 12:36:36 -05:00
advplyr
8683fc9fe4
Fix:Show series name when collapsing sub-series #2140
2023-09-23 14:38:30 -05:00
advplyr
fd0920c808
Fix:Updating RSS feeds with new episodes #2139
2023-09-23 14:27:13 -05:00
advplyr
9922294507
Fix setting tokenSecret on init
2023-09-23 13:42:28 -05:00
advplyr
f42ab45e1b
Update passwordless root user check to user user.type instead of user.id
2023-09-23 13:30:28 -05:00
advplyr
102c90c4e8
Merge pull request #2133 from mfcar/mf/backup
...
Add more information to the backup page
2023-09-22 16:56:12 -05:00
advplyr
f37ab53eff
Update get all backups api endpoint to return backupLocation, display location above backup settings
2023-09-22 16:49:01 -05:00
advplyr
97b0b98605
Merge pull request #2102 from selfhost-alt/sqlite-query-logging
...
Add ability to enable DEV logs of Sqlite queries
2023-09-22 16:17:32 -05:00
advplyr
1ab34fa77f
Update server/Database.js
2023-09-22 16:14:12 -05:00
advplyr
b64ecc7c6f
Update server/Database.js
2023-09-22 16:14:00 -05:00
advplyr
a11fc214e9
Merge pull request #2099 from mikiher/Fuzzy-Matching
...
Fuzzy Matching V1
2023-09-22 16:07:17 -05:00
advplyr
61c48602e8
Add jsdocs to BookFinder search functions
2023-09-22 16:03:41 -05:00
advplyr
5e976c08af
Update cover API endpoint to only load necessary data from DB #2073
2023-09-21 16:57:48 -05:00
mfcar
bfa87a2131
Add a way to see the backup location
2023-09-20 22:33:58 +01:00
lukeIam
2c25f64652
Add /auth_methods route
2023-09-20 19:16:08 +01:00
lukeIam
45cf00bd04
fix openid + jwt auth
2023-09-20 19:06:16 +01:00
lukeIam
f6113e85c7
cookie lifetime
2023-09-20 18:48:57 +01:00
lukeIam
2c90bba774
small refactorings
2023-09-20 18:37:55 +01:00
lukeIam
51b0750a3f
Merge remote-tracking branch 'origin/master' into auth_passportjs
2023-09-20 17:34:29 +01:00