Claus Vium
db530e61f5
move IsPlayed to outerquery
...
IsPlayed is a column in UserDatas and does not belong in the inner query. None of the other UserDatas columns are in the innerquery.
4 years ago
Bond_009
a8ed753f6c
FxCop -> Net Analyzers (part 2)
4 years ago
Bond_009
141efafd3d
Enable TreatWarningsAsErrors for MediaBrowser.Model
4 years ago
Bond_009
65bab55ca0
Minor improvements
4 years ago
crobibero
60b7e49a7f
Suggestions from code review
4 years ago
crobibero
b7443f6042
Optimize FavoritePersons query
4 years ago
Matt Montgomery
185476c08a
Add support for query negation
4 years ago
Matt Montgomery
0758d84a61
Test query value
4 years ago
Joshua M. Boniface
7457c4a95d
Merge pull request #4499 from crobibero/more-param
...
Reduce RequestHelpers.Split usage and remove RequestHelpers.GetGuids
4 years ago
Bond_009
4b1c9dc9ea
Pass cancellation where possible
4 years ago
crobibero
3cc0dd7e12
Reduce RequestHelpers.Split usage and remove RequestHelpers.GetGuids usage.
4 years ago
Bond_009
bc7359f87d
Use string.Split(char) where possible instead of string.Split(char[])
4 years ago
cvium
b99519898d
Remove duplicate /Similar endpoints and add poor matching for artists and albums
4 years ago
cvium
584b4fa41f
Fix Persons, Genres and Studios endpoints
4 years ago
Anthony Lavado
6205fb4b6a
Merge pull request #4341 from Bond-009/minor6
...
Minor improvements
4 years ago
Bond_009
49569ca0a0
Use nameof where possible
4 years ago
Jan-Pieter Baert
ec91d3893d
Fix SA 1116 warnings
4 years ago
Jan-Pieter Baert
6f9beef732
Fix SA1012 and SA1013 warnings
4 years ago
Matt Montgomery
53d5f64e03
Fix SA1513, SA1514, SA1507, and SA1508
4 years ago
Bond_009
2dbf73b989
Minor improvements
4 years ago
Bond_009
15be11fca8
Fix build
4 years ago
Bond_009
48e1cf9fd7
Minor performance improvements to item saving
4 years ago
crobibero
5f64ab02a0
bump System.Text.Json
4 years ago
crobibero
340f83c3f5
Ignore null json values
4 years ago
Bond_009
ab2147751f
Make MediaBrowser.MediaEncoding warnings free
4 years ago
Bond_009
2b400c99ef
Fix warnings
4 years ago
Bond_009
4980db1594
Fix spelling
4 years ago
Bond_009
2b355c36ff
Minor improvements
...
OFC I reduced some allocations
4 years ago
Claus Vium
996d0c07d0
Update Emby.Server.Implementations/Data/SqliteItemRepository.cs
4 years ago
Claus Vium
85e43d657f
Update Emby.Server.Implementations/Data/SqliteItemRepository.cs
...
Co-authored-by: Bond-009 <bond.009@outlook.com>
4 years ago
cvium
aa32aba0f8
Remove some unnecessary string allocations.
4 years ago
Bond-009
b7421db5fe
Merge pull request #3578 from barronpm/displaypreferences-efcore
...
Migrate Display Preferences to EF Core
4 years ago
Bond_009
01e781035f
Fix warnings
4 years ago
Patrick Barron
3d69cea1c9
Merge branch 'master' into displaypreferences-efcore
4 years ago
Bond_009
4d681e3cad
Optimize StringBuilder.Append calls
4 years ago
Patrick Barron
ab396225ea
Migrate Display Preferences to EF Core
4 years ago
telans
98db8f72e0
fix SA1503 for one line if statements
4 years ago
telans
8de6452967
fix some documentation periods
4 years ago
Bond-009
9af6eda0b4
Merge pull request #3343 from telans/comment-stops
...
Add full stop at end of comments (SA1629)
4 years ago
telans
247f9c61e6
fix SA1513/SA1516
4 years ago
telans
9018f8d8be
Add full stop at end of comments (SA1629)
4 years ago
telans
3d9049ef08
fix SA1508
4 years ago
telans
acd4389653
fix SA1005
4 years ago
Patrick Barron
42b4f0aa2e
Merge branch 'master' into userdb-efcore
...
# Conflicts:
# Emby.Server.Implementations/Library/UserManager.cs
# Jellyfin.Data/Jellyfin.Data.csproj
4 years ago
dkanada
403cd3205f
Merge pull request #3254 from crobibero/ilogger
...
Use typed logger where possible
4 years ago
Patrick Barron
7a115024aa
Merge branch 'master' into userdb-efcore
...
# Conflicts:
# MediaBrowser.Controller/Library/ILibraryManager.cs
# MediaBrowser.Providers/Users/UserMetadataService.cs
5 years ago
aled
299e49f39d
Fix a small number of compile warnings
5 years ago
aled
22a860a806
Fix a small number of compile warnings
5 years ago
crobibero
44957c5a9a
Use typed logger where possible
5 years ago
Patrick Barron
06f9cde22f
Merge branch 'master' into userdb-efcore
...
# Conflicts:
# Emby.Server.Implementations/EntryPoints/ServerEventNotifier.cs
# Emby.Server.Implementations/Library/UserManager.cs
# Emby.Server.Implementations/Sorting/IsFavoriteOrLikeComparer.cs
# Emby.Server.Implementations/Sorting/IsPlayedComparer.cs
# Emby.Server.Implementations/Sorting/IsUnplayedComparer.cs
# Emby.Server.Implementations/TV/TVSeriesManager.cs
# Jellyfin.Server.Implementations/Users/DefaultAuthenticationProvider.cs
5 years ago
Vasily
40502a33e0
Merge pull request #3203 from Bond-009/warn18
...
Enable TreatWarningsAsErrors for Jellyfin.Server.Implementations in Release mode
5 years ago
Bond_009
4748105dce
Enable TreatWarningsAsErrors for Jellyfin.Server.Implementations in Release mode
5 years ago
Vasily
58f099c0e2
Fix naming per code review
5 years ago
Vasily
1f83a21288
Rename Hash to BlurHash in all properties and methods for clarity
5 years ago
Patrick Barron
3eeb6576d8
Migrate User DB to EF Core
5 years ago
Vasily
a226a4ee03
Compute hash only when one is not computed in DB, small optimizations here and there
5 years ago
Jesús Higueras
b9fc0d2628
Add BlurHash support to backend
5 years ago
Patrick Barron
b7621d762c
2nd half of changes
5 years ago
Patrick Barron
c1360a1dc3
Merge branch 'master' into userdb-efcore
...
# Conflicts:
# Emby.Server.Implementations/Data/SqliteUserDataRepository.cs
# Emby.Server.Implementations/Library/UserManager.cs
# Jellyfin.Data/Entities/User.cs
# Jellyfin.Data/ISavingChanges.cs
# Jellyfin.Server.Implementations/Jellyfin.Server.Implementations.csproj
# Jellyfin.Server.Implementations/JellyfinDb.cs
# Jellyfin.Server/Migrations/MigrationRunner.cs
# MediaBrowser.Model/Notifications/NotificationOptions.cs
# MediaBrowser.sln
5 years ago
Patrick Barron
9ad839c776
Initial migration code
5 years ago
Mark Monteiro
daf79b8aeb
Do not double dispose write lock and connection in user data repository
5 years ago
Bond_009
118f30059c
Merge branch 'master' into nullable4
5 years ago
Mark Monteiro
f815059698
Merge remote-tracking branch 'upstream/master' into register-services-correctly
5 years ago
Bond_009
72219795d1
Remove dead function
5 years ago
Bond_009
10afa4509d
Log exception
5 years ago
Mark Monteiro
1e1295bebf
Merge remote-tracking branch 'upstream/master' into register-services-correctly
5 years ago
Vasily
06c5b73c15
Merge pull request #2755 from Bond-009/dbcleanup
...
Clean up SqliteItemRepository
5 years ago
Bond_009
c2b5fb78ce
Address comments
5 years ago
Bond_009
2fcbc2a5b8
Enable nullabe reference types for Emby.Drawing and Jellyfin.Drawing.Skia
5 years ago
Mark Monteiro
f91f2ef328
Merge remote-tracking branch 'upstream/master' into register-services-correctly
5 years ago
Mark Monteiro
735d6c8ad5
Convert properties in ApplicationHost to private readonly fields, where possible
5 years ago
Mark Monteiro
07cebbeae2
Register and construct IImageProcessor, SqliteItemRepository and IImageEncoder correctly
5 years ago
Bond-009
0b21494999
Update Emby.Server.Implementations/Data/SqliteItemRepository.cs
...
Co-Authored-By: Vasily <JustAMan@users.noreply.github.com>
5 years ago
Bond-009
cbb6797043
Update SqliteItemRepository.cs
5 years ago
Bond_009
8e7b15285e
Clean up SqliteItemRepository
5 years ago
Bond_009
3161e85f76
Address comments
5 years ago
Bond-009
f31efce52d
Merge branch 'master' into usings
5 years ago
Bond_009
787049f35f
Merge branch 'master' into minor
5 years ago
Bond-009
ddd5d3aaec
Merge branch 'master' into usings
5 years ago
Vasily
0d2a355c00
Make variables binding correspond with column names
5 years ago
Bond_009
7915c6ca73
Remove extra ;
5 years ago
Bond_009
e9d1eabd53
Remove unused usings
5 years ago
dkanada
0d9787dfb4
Merge pull request #2478 from JustAMan/fix-search-order
...
Fix ordering of search results
5 years ago
dkanada
7270997e76
add code suggestions
...
Co-Authored-By: Mark Monteiro <marknr.monteiro@protonmail.com>
5 years ago
Bond-009
94fe9b8f6d
Merge branch 'master' into warn17
5 years ago
Mark Monteiro
b67e9cde8c
Replace ILogger with ILogger<T> wherever possible
...
Log entries will contain additional class context when using this interface
5 years ago
Vasily
a9f3b5dacb
Fix ordering of search results
5 years ago
Bond_009
07cc4be6a7
Fix some warnings
...
* Add analyzers to MediaBrowser.XbmcMetadata
* Enable TreatWarningsAsErrors for MediaBrowser.XbmcMetadata
* Add analyzers to MediaBrowser.WebDashboard
* Enable TreatWarningsAsErrors for MediaBrowser.WebDashboard
* Disable SA1600 in favor of CS1591
5 years ago
Bond_009
a07ee65365
Minor improvements
5 years ago
Bond_009
adc9fc282c
Minor improvements
5 years ago
Bond_009
bb236b9591
Merge branch 'master' into warn12
5 years ago
dkanada
73fac50e57
rename two properties based on code suggestions
5 years ago
Bond_009
8a0ef41036
Minor improvements
5 years ago
Bond_009
a253fa616d
Fix build and address comments
5 years ago
dkanada
aca31457c0
merge branch master into media-attachments
5 years ago
Neil Burrows
d9c0721e3d
Reformatting code
5 years ago
Neil Burrows
55317b5c74
Fixing index error & split out code for readability
5 years ago
Neil Burrows
12bb4a92eb
Tidying up code
5 years ago
Neil Burrows
554c967dd6
Add Excluded Tags using SQLite parameters
5 years ago
Bond_009
2ef4ffd698
More warnings (removed)
5 years ago
dkanada
67922dff50
Merge pull request #2041 from Bond-009/warn11
...
Fix more warnings
5 years ago
Bond-009
affb58ef9e
Apply suggestions from code review
...
Co-Authored-By: dkanada <dkanada@users.noreply.github.com>
5 years ago
Bond-009
a2c35e6dba
Merge remote-tracking branch 'upstream/master' into random
5 years ago
Bond_009
42ffddc269
Fix more warnings
5 years ago
Bond-009
b477b3874e
Fix some warnings
5 years ago
dkanada
f51f59d675
Merge pull request #1965 from Bond-009/dbjson
...
Deserialize with the correct type (and warning fixes)
5 years ago
Andrew Mahone
d6aa02ff09
Update Emby.Server.Implementations/Data/SqliteItemRepository.cs
...
formatting
Co-Authored-By: Bond-009 <bond.009@outlook.com>
5 years ago
Andrew Mahone
f60e9b0b62
formatting
...
Co-Authored-By: Bond-009 <bond.009@outlook.com>
5 years ago
Andrew Mahone
6defe80b62
Check for cancellation between each batch of MediaAttachment inserts.
5 years ago
Andrew Mahone
74fb63a898
Use block rather than local using statement.
5 years ago
Andrew Mahone
8505ee9d6c
Extract the prefix for MediaAttachment insertions to a static member instead of generating it per-query.
5 years ago
Andrew Mahone
cc7741efd4
Merge branch 'media-attachments' of github.com:Unhelpful/jellyfin into media-attachments
5 years ago
Andrew Mahone
3602251cf5
Update Emby.Server.Implementations/Data/SqliteItemRepository.cs
...
Co-Authored-By: Bond-009 <bond.009@outlook.com>
5 years ago
Andrew Mahone
e5b65ed034
Update Emby.Server.Implementations/Data/SqliteItemRepository.cs
...
formatting
Co-Authored-By: Bond-009 <bond.009@outlook.com>
5 years ago
Andrew Mahone
25bc7b81c3
Update Emby.Server.Implementations/Data/SqliteItemRepository.cs
...
formatting
Co-Authored-By: Bond-009 <bond.009@outlook.com>
5 years ago
Andrew Mahone
24a460dc93
Update Emby.Server.Implementations/Data/SqliteItemRepository.cs
...
formatting
Co-Authored-By: Bond-009 <bond.009@outlook.com>
5 years ago
Andrew Mahone
b936c530aa
Merge branch 'media-attachments' of github.com:Unhelpful/jellyfin into media-attachments
5 years ago
Andrew Mahone
bd4da93d1e
Throw ArgumentException instead of ArgumentNullException on empty Guid.
5 years ago
Andrew Mahone
ad2101ce52
Rename "limit" to "insertAtOnce" in InsertMediaAttachments.
5 years ago
Andrew Mahone
c2d8f210b1
Check for cancellation in SaveMediaAttachments.
5 years ago
Andrew Mahone
0dde5e46df
Flatten using connection in GetMediaAttachments/SaveMediaAttachments
5 years ago
Andrew Mahone
4573fb5301
Use ToByteArray instead of ToGuidBlob.
5 years ago
Andrew Mahone
1600d5b53f
Merge remote-tracking branch 'origin/master' into media-attachments-clean
5 years ago
Andrew Mahone
90dfe729bb
Add space when building query string for attachments.
...
Co-Authored-By: Vasily <JustAMan@users.noreply.github.com>
5 years ago
Bond_009
846857b60e
Deserialize with the correct type (and warning fixes)
5 years ago
Bond_009
10ae815bb4
Address comments
5 years ago
Bond_009
016be02cd6
More warning fixes
5 years ago
Andrew Mahone
03ecf57548
Store MediaAttachments in DB.
5 years ago
Bond_009
bbc0875387
Don't shuffle some types by default
5 years ago
Bond_009
516933aab5
Move to netcore3.0
5 years ago
Vasily
79f9887625
Merge pull request #1854 from Bond-009/json
...
Use System.Text.Json api for databases
5 years ago
Bond_009
ac93a5a85c
Change slow query time logging to debug
5 years ago
Bond_009
e553eba31e
Use System.Text.Json api
5 years ago
Joshua M. Boniface
9aec21f6b5
Nicer link format for comment
...
Co-Authored-By: Bond-009 <bond.009@outlook.com>
5 years ago
Joshua Boniface
72edf5b555
Change PRAGMA mode from WAL to TRUNCATE
5 years ago
Bond-009
ee637e8fec
Fix warnings, improve performance ( #1665 )
...
* Fix warnings, improve performance
`QueryResult.Items` is now a `IReadOnlyList` so we don't need to
allocate a new `Array` when we have a `List` (and `Items` shouldn't need to
be mutable anyway)
* Update Providers .csproj to latest C#
* Remove extra newline from DtoService.cs
* Remove extra newline from UserLibraryService.cs
5 years ago
Bond_009
e4f893a0eb
More warning fixes
5 years ago
Joshua M. Boniface
dc1782d049
Merge pull request #1646 from Bond-009/lock
...
Return DB lock immediately
5 years ago
Bond_009
3fd489d1cb
Upgrade SQLitePCL to v2
5 years ago
Bond_009
f70a63d575
Return DB asap
5 years ago
Joshua M. Boniface
4bb0c2d053
Merge pull request #1642 from cvium/fix_slow_db
...
Speed up BaseItem deserialization
5 years ago
Claus Vium
f48eaccc51
Use reader.GetString instead of indexing
5 years ago
Claus Vium
e7c05dcfaf
Speed up BaseItem deserialization
5 years ago
Bond_009
8d3b5c851d
Improvements to UserManager
5 years ago
Bond_009
d62a3f0e57
Fix master
5 years ago
Bond_009
2fdf7f1098
Properly dispose DisplayPreferencesRepository
5 years ago
Bond-009
6032f31aa6
Use CultureInvariant string conversion for Guids
5 years ago
Erwin de Haan
0dbc294836
Move VACUUM command to fix merge error
...
This fixes a syntax error.
5 years ago
Bond-009
82f041d050
Merge branch 'master' into release-10.3.z
5 years ago
Erwin de Haan
acf52b9b55
Cleanup extra spaces.
5 years ago
Erwin de Haan
7587fe56d8
Moved VACUUM down to the end of the list.
5 years ago
Bond_009
29ae7b9aeb
Add docs
5 years ago
Bond_009
45c13141f9
Address comments
5 years ago
Bond_009
d961278b3d
Reduce amount of raw sql
5 years ago
Bond_009
db2765aae5
Last bit of cleanup
5 years ago
Bond_009
7898af4ceb
Reworked PRAGMA statements use
5 years ago
Bond_009
edfd2d0cd9
Fix startup
5 years ago
Bond_009
d00ad28efd
Address comments
5 years ago
Bond-009
e88ebd748d
Final fixes
5 years ago
Bond-009
b6954f3bfd
More
5 years ago
Bond-009
27c29bbb4c
Back to a single connection
5 years ago
Bond-009
30842656a7
Properly dispose
5 years ago
Bond-009
e5248cfaa2
Properly dispose
5 years ago
Bond-009
c30ba14c1f
Use a connection pool instead of creating new connections
5 years ago
Bond-009
cec22ad10d
Simplify db code
5 years ago
ferferga
b136f14084
Vacuum databases at startup
6 years ago
Joshua M. Boniface
89537abdc4
Merge pull request #1293 from Bond-009/query-time
...
Fix query time logging
6 years ago
Bond_009
a9337033c1
Fix query time logging
6 years ago
Claus Vium
764c6d5461
Fix comparison for empty password migration
6 years ago
Bond-009
b44a70ff36
Simplify/remove/clean code
...
* Remove useless runtime check (we only support one)
* Remove unused args
* Remove a global constant
And ofc fix some warnings ;)
6 years ago
redSpoutnik
480a6607e2
Merge branch 'master' into subtitle-display-title
6 years ago
redSpoutnik
427688a0a0
Change subtitles DisplayTitle behavior
6 years ago
Vasily
1fef8bf266
Merge pull request #1060 from Bond-009/assinfo
...
Remove redundant class AssemblyInfo
6 years ago
Bond-009
ae0ecc1b10
Merge pull request #870 from LogicalPhallacy/betterauth
...
Better default authentication
6 years ago
Bond-009
e91dd14b31
Remove redundent class AssemblyInfo
6 years ago
Joshua M. Boniface
aba22b92bc
Merge pull request #735 from Bond-009/loop
...
Readability changes
6 years ago
Lynxy
5368112d90
Correct the list of series types
6 years ago
Bond-009
9993dafe54
Don't mix LINQ and roreach loops for readability
6 years ago
Bond-009
0804bed66d
Log time in a standardized way
6 years ago
Phallacy
098de6b050
made newlines into linux newlines
6 years ago
Phallacy
a0d31a49a0
merging with master to clear merge conflict
6 years ago
Phallacy
6bbb968b57
minor changes and return to netstandard
6 years ago
Joshua M. Boniface
89d4ce309d
Merge pull request #848 from Bond-009/perf
...
Minor changes to reduce allocations
6 years ago
LogicalPhallacy
9f3aa2cead
Apply suggestions from code review
...
Adding minor stylistic suggestions from Bond-009
Co-Authored-By: LogicalPhallacy <44458166+LogicalPhallacy@users.noreply.github.com>
6 years ago
Bond-009
5835c4b21d
Remove comment
6 years ago
Phallacy
77602aff88
Minor fixes re:PR870, added null checks from PR876
6 years ago
Bond_009
da9418c1b2
Useless copy
6 years ago
Bond_009
9dba930a85
Warn faster for slow requests
6 years ago
Bond_009
7722cb3ffa
Some Lists -> IEnumerable
6 years ago
Bond_009
3e6819c718
Don't clone lists
6 years ago
Bond_009
41fb1e5106
Tuple -> ValueTuple
6 years ago
Bond_009
64d5ec12e2
Use HashSets for increased perf
6 years ago
Bond_009
a6a4cd5667
Removed some unused fields
6 years ago
Joshua M. Boniface
c713824bf9
Merge pull request #734 from Bond-009/culture
...
Fix more analyzer warnings
6 years ago
Claus Vium
8985fb8d58
Remove support for games as a media type
6 years ago
Bond_009
a709cbdc64
Fix more analyzer warnings
6 years ago
Claus Vium
64b6cfa3dc
Add Size to TypedBaseItem
6 years ago
Bond_009
d8d6c6f254
Address comments
6 years ago
Bond_009
2ffab720fb
Fix ctor
6 years ago
Bond_009
07f163a4c3
Minor improvements to db code
6 years ago