Evan Harris
ac45a9b7dc
Added checkstyles for brace placement
5 years ago
Evan Harris
510314a9d8
Added SingleSpaceSeparator checkstyle
5 years ago
Evan Harris
f476fd7c33
Added checkstyle for trailing whitespace
5 years ago
tesshucom
dba8610ff7
Apply stopwords dedicated to music search
...
- Iterate index version.
5 years ago
tesshucom
bb464f15a8
Apply boost values to search queries
5 years ago
Andrew DeMaria
05222d502b
Change casing and extract constant
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
5 years ago
Randomnicode
d626463060
Fix DLNA port, and expose them in Docker
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
5 years ago
Andrew DeMaria
fa1a700ebd
Translated xml configuration to java configuration
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
5 years ago
Shen-Ta Hsieh
84df4e3b94
Add support for ListenBrainz Audio Scrobbler Service
...
- Add textbox in user settings page for ListenBrainz token
- Add changes to db
- Add db colume to store MusicBrainz Recording ID
- Add db colume to store ListenBrainz token
- Add test for reading id
- Add tag on testing file
- Add localization entry
Signed-off-by: Shen-Ta Hsieh <ibmibmibm.tw@gmail.com>
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
5 years ago
Shen-Ta Hsieh
e3b3bc9d2b
Move Last.fm logic into separate helper class
...
- Split AudioScrobblerSevice into two classes
- Change api to https in last.fm Audio Scrobbler
Signed-off-by: Shen-Ta Hsieh <ibmibmibm.tw@gmail.com>
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
5 years ago
Evan Harris
a44cad0c5b
Removed duplicate Integer parsing code
5 years ago
Evan Harris
4a1493e474
Removed duplicated code
5 years ago
Evan Harris
ecc026b3e8
Changed to use short-cut logic and other cleanups
5 years ago
Andrew DeMaria
2caa2550ef
Change exception handling to log at debug
5 years ago
Andrew DeMaria
ef22d6d8ed
Remove optional jetty runtime
...
- Simplifies pom making future upgrades easier
- Fixes tests picking up jetty runtime
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
5 years ago
Andrew DeMaria
437d8ce947
Move index meta information
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
5 years ago
Evan Harris
a79b56fe5a
Removed unused variables, imports, empty statements ( #1361 )
...
Also some unnecessary whitespace.
5 years ago
Randomnicode
8728566860
Switch to using ScheduledExecutor for MediaScanner
5 years ago
jvoisin
a9a7b08230
Use the try-with-resource construct where possible
5 years ago
Evan Harris
2da9c7310a
Changed final constant to add static
5 years ago
jvoisin
fd1b154a3c
Simplify a bit a function
...
Credit goes to eharris@
5 years ago
jvoisin
1bc5729cfb
Remove the parseLocale function in SettingsService
5 years ago
jvoisin
d2ad85447b
Remove the unused md5Hex method
5 years ago
jvoisin
d07d0ad687
Tighten en exception
5 years ago
jvoisin
e1a8a3b752
Use a switch-case instead of if-spaghettis
5 years ago
jvoisin
6b54086590
Remove an unused method
5 years ago
jvoisin
332718386b
Simplify the parseInts method
5 years ago
jvoisin
29b083ddac
Simplify the split method
...
Use a regexp with two groups, instead of
doing some black magic manually.
5 years ago
jvoisin
e1583691d8
Replace StringUtil.toHtml with StringEscapeUtils.escapeHtml
...
Apache commons is providing Html-escaping, no need to reinvent the wheel:
> It supports all known HTML 4.0 entities, including funky accents. Note that the
> commonly used apostrophe escape character (') is not a legal entity and so
> is not supported).
So I manually checked that nothing is relying on escaped single-quotes,
and didn't manage to find anything that does.
5 years ago
jvoisin
9dc9cbd821
Remove the unused toISO8601 method
5 years ago
jvoisin
9f6b02c5d0
Refactor a bit how we're handling avatars
...
- Remove an unnecessary cast
- Fix two stored XSS, since the name of the avatar is user-controlled
- Tighten the type of some exceptions
5 years ago
Randomnicode
acb4e033aa
Minor fix to static time unit call
5 years ago
Evan Harris
a793deab0b
Got rid of duplicated code to format durations
...
Added new functions and test cases.
5 years ago
Evan Harris
0660c4f3e6
Renamed StringUtil.formatDuration to formatDurationMSS
5 years ago
jvoisin
d3a9a3226f
Replace deprecated Date by Calendar
...
Apparently, Date.setYear and Date.getYear are deprecated in favour of Calendar, since Java6!
Source: https://docs.oracle.com/javase/6/docs/api/java/util/Date.html
5 years ago
Evan Harris
91f91ed654
Removed the auto-refresh feature
...
This feature just generated a lot of unnecessary traffic to the server and
hurt usability because the page would refresh unexpectedly while a user was
actively looking at content. Fixes #1003 , #1179 , #729 .
Did not remove the column for that setting in the user database, since that
would lead to complications if needing to downgrade for some reason.
5 years ago
jvoisin
d17c00115a
Minor refactor of CsrfSecurityRequestMatcher
...
- use plain string comparison instead of regexp
- Simplify data structures
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
5 years ago
jvoisin
78480ab766
Remove a homemade implementation of Pair
...
Since apache-commons is already implementing a Pair
type, there is no need to reinvent the wheel.
5 years ago
jvoisin
c25e26d61a
Remove a dead file
5 years ago
jvoisin
06e36ff154
Mark a field as private
...
Since we're synchronising on playQueue, we should make
it final.
5 years ago
François-Xavier Thomas
8b72964086
Display file id and path in debug scanning logs
5 years ago
jvoisin
b6414ebb6c
Simplify a condition
5 years ago
jvoisin
9f027f333e
Upgrade PlaylistService to non-deprecated methods
...
As documented here: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/util/Assert.html#notNull-java.lang.Object-java.lang.String-
5 years ago
Andrew DeMaria
3fe6e8b267
Add logger name checkstyle
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
5 years ago
Evan Harris
f644f5a1d0
Improved handling of missing/failed transcoder
...
Fixes #659 .
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
5 years ago
Evan Harris
6783ced897
Removed inability to change roles for admin user
5 years ago
jvoisin
6f590f7740
Check the return value of `delete` calls
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
5 years ago
Kessiler Rodrigues
4b3890f6ec
Replace custom circular buffer with Apache commons(CircularFifoQueue)
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
5 years ago
jvoisin
42b4aaafc7
Use EnumMap in IndexManager
...
EnumMap are _much_ more efficient than HashMaps,
so we should use them if we can.
See here for more details: https://docs.oracle.com/javase/8/docs/api/java/util/EnumMap.html
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
5 years ago
jvoisin
da34bf0d3f
Improve Windows system detection
...
Use apache commons instead of terrifyingly fragile black magic.
5 years ago