Cody Robibero
906f701fa8
Convert CollectionType, SpecialFolderType to enum ( #9764 )
...
* Convert CollectionType, SpecialFolderType to enum
* Hide internal enum CollectionType values
* Apply suggestions from code review
Co-authored-by: Shadowghost <Shadowghost@users.noreply.github.com>
* Fix recent change
* Update Jellyfin.Data/Attributes/OpenApiIgnoreEnumAttribute.cs
Co-authored-by: Patrick Barron <barronpm@gmail.com>
---------
Co-authored-by: Shadowghost <Shadowghost@users.noreply.github.com>
Co-authored-by: Patrick Barron <barronpm@gmail.com>
2023-11-09 14:00:29 -07:00
Cody Robibero
c7a94d48ae
Convert ItemSortBy to enum ( #9765 )
...
* Convert ItemSortBy to enum
* Rename Unknown to Default
2023-11-09 14:00:13 -07:00
Bond_009
4b01aaa0f7
Allocate less Lists
2023-03-01 00:44:57 +01:00
Bond_009
52194f56b5
Replace != null with is not null
2022-12-05 15:01:13 +01:00
Bond_009
a9a5fcde81
Use ArgumentNullException.ThrowIfNull helper method
...
Did a simple search/replace on the whole repo (except the RSSDP project)
This reduces LOC and should improve performance (methods containing a throw statement don't get inlined)
```
if \((\w+) == null\)
\s+\{
\s+throw new ArgumentNullException\((.*)\);
\s+\}
```
```
ArgumentNullException.ThrowIfNull($1);
```
2022-10-06 20:21:23 +02:00
Cody Robibero
a60cb280a3
Properly populate QueryResult
2022-01-20 08:53:06 -07:00
Bond_009
05836c8cd3
Fix warning SA1414 and CA1849
2022-01-10 10:57:32 +01:00
Bond_009
cbfa355e31
Update StyleCop
2021-12-24 18:28:27 +01:00
cvium
b880dc8a4a
Use our own Contains extension
2021-12-20 13:31:07 +01:00
Cody Robibero
32629cd7da
Use BaseItemKind where possible
2021-12-12 06:11:27 -07:00
Marius Luca
a774d1fa10
- flush the XmlWriter before calling the StringBuilder ToString() method
2021-11-14 20:46:17 +02:00
cvium
efa76c0b63
Remove unused field
2021-11-09 23:17:27 +01:00
cvium
3f09fb8d70
length
2021-11-09 22:45:34 +01:00
cvium
a90735bc5a
Last small fixes
2021-11-09 19:44:21 +01:00
cvium
37a04d5dbf
Reduce indentation
2021-11-09 19:40:36 +01:00
cvium
e1f7f1405e
Use GetOrderBy in GetChildrenSorted
2021-11-09 19:33:15 +01:00
cvium
6985a4f255
Fix SortCriteria and refactor SetSorting
2021-11-09 19:31:54 +01:00
cvium
53c16c2342
Build an array instead of using LINQ
2021-11-09 19:22:16 +01:00
cvium
c1c77c8762
comments
2021-11-09 19:19:48 +01:00
cvium
996500b2f8
review stuff
2021-11-09 15:57:39 +01:00
Claus Vium
66912deb84
Apply suggestions from code review
2021-11-09 14:47:42 +01:00
Claus Vium
ac06022e0f
Update Emby.Dlna/ContentDirectory/ControlHandler.cs
2021-11-09 14:40:51 +01:00
cvium
a236f52c31
Simplify and reduce LOC in ControlHandler
2021-11-08 23:13:12 +01:00
LinFor
5c69d110cc
Samsung DLNA fixes
2021-11-08 11:24:33 +03:00
Cody Robibero
cba07b1ca6
Remove more and more warnings
2021-08-28 16:32:50 -06:00
Bond-009
e5a29824e5
Merge branch 'master' into minor15
2021-08-13 00:33:18 +02:00
Bond_009
501de7b6dc
Enable nullable in more files
2021-07-26 23:02:32 +02:00
Bond_009
1f99c9b90c
Minor fixes
2021-07-06 00:01:33 +02:00
Bond_009
06caee28b7
Enable nullable reference types for Emby.Dlna
2021-05-07 14:43:50 +02:00
BaronGreenback
bc1cc2d04a
Remove unused using directives
2021-04-17 11:37:55 +01:00
Bond_009
aa76957338
Remove useless code
2021-04-01 19:16:00 +02:00
Bond_009
40b9e7592f
Fix build
2021-02-20 23:34:15 +01:00
Bond_009
141efafd3d
Enable TreatWarningsAsErrors for MediaBrowser.Model
2021-02-20 23:29:33 +01:00
Bond_009
e4fd61411f
Minor improvements
2020-12-02 15:38:52 +01:00
Greenback
e51ddd326c
Fixes spelling.
2020-11-18 13:23:45 +00:00
Joshua M. Boniface
355c0c802f
Merge pull request #4138 from BaronGreenback/Comment3
...
DLNA ContentManager - static and commented.
2020-11-16 17:09:22 -05:00
Bond_009
b21919c7f4
Minor perf improvements
2020-11-06 16:15:30 +01:00
Bond_009
5a9c218324
Fix build
2020-10-17 16:27:31 +02:00
Bond_009
49569ca0a0
Use nameof where possible
2020-10-17 16:19:57 +02:00
Jim Cartlidge
c1b3f2c136
ContentDirectory
2020-09-13 14:31:12 +01:00
crobibero
2a8653b309
Merge remote-tracking branch 'upstream/master' into http-client-migrate
2020-09-04 08:16:49 -06:00
Bond_009
e653eef44f
Fix some warnings
2020-08-31 22:20:19 +02:00
crobibero
8215f15c45
migrate to IHttpClientFactory in Emby.Dlna
2020-08-31 11:26:42 -06:00
Bond_009
170e434f92
Fix all warnings in Emby.Dlna
2020-08-20 21:04:57 +02:00
David
ca2b36bdb0
Reduce warnings in Emby.Dlna
2020-08-20 17:08:33 +02:00
Patrick Barron
ab396225ea
Migrate Display Preferences to EF Core
2020-07-17 16:11:53 -04:00
telans
247f9c61e6
fix SA1513/SA1516
2020-06-16 16:11:30 +12:00
telans
acd4389653
fix SA1005
2020-06-15 10:41:00 +12:00
Patrick Barron
c464f700db
Remove redundant qualifiers
2020-05-20 13:07:53 -04:00
Patrick Barron
9ad839c776
Initial migration code
2020-05-12 22:10:35 -04:00