Shadowghost
eb52af4e6a
Fix playlists library and migration ( #9770 )
2 years ago
Shadowghost
a8cdf4434b
Fix access to playlists not created by a user ( #9746 )
2 years ago
Shadowghost
9211a73e40
Apply suggestions from code review
...
Co-authored-by: Cody Robibero <cody@robibe.ro>
2 years ago
Shadowghost
eba24d188d
Update Emby.Server.Implementations/Playlists/PlaylistManager.cs
...
Co-authored-by: Joe Rogers <1337joe@users.noreply.github.com>
2 years ago
Shadowghost
82080bd1ef
Apply review suggestions
2 years ago
Shadowghost
8d158df678
Add migration to properly set playlist owner
2 years ago
Shadowghost
76ae599bd3
Fix playlist creation and removal
2 years ago
Bond_009
b366dc2e6e
Use ArgumentException.ThrowIfNullOrEmpty
2 years ago
Bond_009
52194f56b5
Replace != null with is not null
2 years ago
Bond_009
c7d50d640e
Replace == null with is null
2 years ago
Bond_009
f50a250cd9
Optimize Guid comparisons
...
* Use Guid.Equals(Guid) instead of the == override
* Ban the usage of Guid.Equals(Object) to prevent accidental boxing
* Compare to default(Guid) instead of Guid.Empty
3 years ago
Cody Robibero
7bfc6b5679
Remove more warnings
3 years ago
Bond_009
474b035d99
Fix some warnings
3 years ago
Cody Robibero
cba07b1ca6
Remove more and more warnings
3 years ago
Cody Robibero
65f8d8c0cd
[CA1801] Parameter is never used. Remove the parameter or use it in the method body.
3 years ago
Bond_009
7e8428e588
Enable nullable reference types for Emby.Server.Implementations
4 years ago
BaronGreenback
bb6fddde9a
Group Methods
4 years ago
crobibero
3cc0dd7e12
Reduce RequestHelpers.Split usage and remove RequestHelpers.GetGuids usage.
4 years ago
Bond_009
2b832de289
Fix build
4 years ago
Bond_009
119f64f5e7
Make some methods async
4 years ago
Bond_009
01e781035f
Fix warnings
4 years ago
telans
98db8f72e0
fix SA1503 for one line if statements
4 years ago
telans
247f9c61e6
fix SA1513/SA1516
4 years ago
crobibero
24f54837e1
Switch to M3uContent
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
crobibero
44957c5a9a
Use typed logger where possible
4 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
4 years ago
Vasily
40502a33e0
Merge pull request #3203 from Bond-009/warn18
...
Enable TreatWarningsAsErrors for Jellyfin.Server.Implementations in Release mode
4 years ago
Bond_009
4748105dce
Enable TreatWarningsAsErrors for Jellyfin.Server.Implementations in Release mode
5 years ago
Patrick Barron
c464f700db
Remove redundant qualifiers
5 years ago
Patrick Barron
9ad839c776
Initial migration code
5 years ago
Bond_009
30ce346f34
Enable nullabe reference types for MediaBrowser.Model
5 years ago
Mark Monteiro
9a7875b6f9
Do not check for duplicates if they are allowed in playlist configuration
5 years ago
Mark Monteiro
d276e0f8f4
Use Distinct() to filter out duplicates when adding items to playlist
5 years ago
Mark Monteiro
487aa376b4
Merge remote-tracking branch 'upstream/master' into 1914-prevent-duplicates-in-playlists
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
Mark Monteiro
3cb98fba55
Use ToList() instead of ToArray() on sequences of unknown size
5 years ago
Mark Monteiro
6438771212
Exit method early if there are no unique playlist items to add
5 years ago
Mark Monteiro
4d32b59a0b
Performance improvements
...
Use arrays instead of lists; use Array.CopyTo to concat playlist items; only count number of duplicates once
5 years ago
Mark Monteiro
77533fd433
Revert unnecessary style change
5 years ago
Mark Monteiro
dde0277050
Check for duplicates when adding items to a playlist
5 years ago
dkanada
1b2453b4e9
fix playlist deletion
5 years ago
Bond_009
d9a03c9bb1
Fix more warnings
5 years ago
Bond-009
6032f31aa6
Use CultureInvariant string conversion for Guids
5 years ago
Erwin de Haan
b9a111432a
Unwrapped all /(Write|Read)All(Text|Bytes)/ functions.
6 years ago
Erwin de Haan
581a7fe078
Unwrapped `MoveDirectory`, `DirectoryExists`, `FileExists` & removed `MoveFile`
6 years ago
Erwin de Haan
d7c6d16250
Unwrapped CreateDirectory and DeleteDirectory
6 years ago
Erwin de Haan
3a831994f6
Unwrapped GetDirectoryName and DirectorySeperatorChar
6 years ago
William Taylor
65cd3ed597
Replaced injections of ILogger with ILoggerFactory
...
This makes resolving dependencies from the container much easier as
you cannot resolve with primitives parameters in a way that is any
more readable.
The aim of this commit is to change as little as possible with the end
result, loggers that were newed up for the parent object were given the same
name. Objects that used the base or app loggers, were given a new logger with
an appropriate name.
Also removed some unused dependencies.
6 years ago
Erwin de Haan
65bd052f3e
ReSharper conform to 'var' settings
6 years ago