Cody Robibero
892973a9e3
Merge branch 'master' into media-type
2023-11-09 22:03:55 -07:00
Bond_009
a9ef103c95
Add IDisposableAnalyzers to more projects
2023-11-05 02:01:14 +01:00
Stepan Goremykin
38d962242a
Merge branch 'master' into fix-resharper-warnings
...
# Conflicts:
# Emby.Server.Implementations/Updates/InstallationManager.cs
# tests/Jellyfin.Server.Integration.Tests/OpenApiSpecTests.cs
2023-10-14 00:45:52 +02:00
Bond_009
d7748cfa04
Multiple Stream changes
...
* Remove useless MemoryStream in DlnaHttpClient
* Use HttpContent.ReadFromJsonAsync extension
* Call ConfigureAwait for IAsyncDisposable
* Use HttpContent.CopyToAsync where possible
2023-10-11 18:32:57 +02:00
Cody Robibero
2920611ffc
Convert string MediaType to enum MediaType
2023-10-10 15:57:15 -06:00
Stepan Goremykin
96c3bde346
Remove redundant nullable directive
2023-10-08 01:26:57 +02:00
Stepan Goremykin
fdef9356b9
Use null propagation
2023-10-08 01:25:37 +02:00
Stepan Goremykin
526f9a825c
Make files readonly
2023-10-08 00:40:58 +02:00
Bond_009
5677566a41
Enable nullable for more files
2023-07-29 21:35:38 +02:00
cvium
4b25d65c02
fix: set memorystream position after copying
2023-07-19 12:12:58 +02:00
Bond-009
b95fa294c9
Merge pull request #9799 from Bond-009/genregex
2023-07-06 19:56:00 +02:00
Bond_009
b5f0760db8
Use RegexGenerator where possible
2023-06-28 17:07:57 +02:00
Shadowghost
32499f0e98
Merge branch 'master' into network-rewrite
2023-06-15 17:53:52 +02:00
Bond-009
898bb95564
Fix InvalidOpEx while trying to read HttpResponseContent 2x ( #9861 )
2023-06-10 07:01:47 -06:00
Shadowghost
d8d5c86d49
Merge branch 'master' into network-rewrite
2023-05-25 17:07:43 +02:00
SeaEagle1
126047bfd6
Use compile-time generated regex and remove loglevel check
2023-05-13 00:28:07 +02:00
SeaEagle1
9352a24374
Rescue PlayTo function in case of malformed Xml response
...
(port from 10.8 fix)
2023-05-12 20:46:01 +02:00
Shadowghost
6cc1203c1b
Merge branch 'master' into network-rewrite
2023-05-09 15:25:41 +02:00
Stepan Goremykin
2c03f7e85d
Use TryGetValue
2023-04-06 19:17:28 +02:00
Shadowghost
520c07e8ca
Merge branch 'master' into network-rewrite
2023-03-16 11:07:22 +01:00
Bond_009
dab75d35d2
Enable nullable for more files
2023-03-07 21:51:48 +01:00
Shadowghost
20fd05b050
Consistently write IP in upercase
2023-02-17 19:27:36 +01:00
Shadowghost
697efec86e
Cleanup and refactor streambuilder
2022-12-07 18:00:01 +01:00
Bond_009
b366dc2e6e
Use ArgumentException.ThrowIfNullOrEmpty
2022-12-07 16:43:59 +01:00
Bond_009
52194f56b5
Replace != null with is not null
2022-12-05 15:01:13 +01:00
Bond_009
c7d50d640e
Replace == null with is null
2022-12-05 15:00:20 +01:00
Bond_009
556cc8062d
Investigate some TODO comments
2022-11-27 14:13:31 +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
Bond_009
7d48f97db9
Fix regression in DlnaHttpClient
...
```
[18:53:50] [ERR] [25] Emby.Dlna.Main.DlnaEntryPoint: Error updating device info for 192.168.1.21 - Sonos Connect:Amp Berging
System.Net.Http.HttpRequestException: An error occurred while sending the request.
---> System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Http.StringContent'.
at System.Net.Http.HttpContent.CheckDisposed()
at System.Net.Http.HttpContent.CopyToAsync(Stream stream, TransportContext context, CancellationToken cancellationToken)
at System.Net.Http.HttpConnection.SendRequestContentAsync(HttpRequestMessage request, HttpContentWriteStream stream, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Emby.Dlna.PlayTo.DlnaHttpClient.SendRequestAsync(HttpRequestMessage request, CancellationToken cancellationToken) in /home/loma/dev/jellyfin/Emby.Dlna/PlayTo/DlnaHttpClient.cs:line 47
at Emby.Dlna.PlayTo.Device.GetTransportInfo(TransportCommands avCommands, CancellationToken cancellationToken) in /home/loma/dev/jellyfin/Emby.Dlna/PlayTo/Device.cs:line 705
at Emby.Dlna.PlayTo.Device.TimerCallback(Object sender) in /home/loma/dev/jellyfin/Emby.Dlna/PlayTo/Device.cs:line 521
```
2022-08-22 19:01:19 +02:00
Bond-009
33611614ed
Merge pull request #7433 from Bond-009/ssdphttpclient
2022-08-22 17:52:19 +02:00
Cody Robibero
38102499cb
Merge pull request #7947 from nyanmisaka/video-range-condition
...
(cherry picked from commit f1d56aa5ce
)
Signed-off-by: Joshua Boniface <joshua@boniface.me>
2022-06-29 01:26:14 -04:00
Bond_009
5b4e14940e
Fix format string
2022-06-14 16:43:48 +02:00
Claus Vium
53209830e7
Merge pull request #7346 from Bond-009/guid
...
Optimize Guid comparisons
2022-03-11 08:15:12 +01:00
Bond_009
cafeedcadf
Rework SsdpHttpClient
2022-03-08 23:00:43 +01:00
Bond-009
03f1eff21a
Implement TransportState according to spec ( #7426 )
2022-03-08 16:12:03 +01:00
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
2022-02-21 14:15:09 +01:00
Bond_009
1c14c86b20
Fix some warnings
2022-02-14 14:46:04 +01:00
Bond_009
e7be01d7a5
Flush to disk async where possible
2022-01-22 23:36:42 +01:00
Bond_009
05836c8cd3
Fix warning SA1414 and CA1849
2022-01-10 10:57:32 +01:00
Bond_009
ea8f40e84a
More cleanup
2021-12-27 14:20:05 +00:00
cvium
b50c3852ef
Remove unused dependencies
2021-11-16 12:24:17 +01:00
Cody Robibero
9234e5bf80
Remove all instances of en-US culture
2021-09-26 09:11:25 -06:00
Bond_009
ec45808275
SsdpHttpClient: Ensure successful status code before reading response
2021-09-21 22:32:14 +02:00
Patrick Barron
45f478f63e
Merge branch 'master' into authenticationdb-efcore
...
# Conflicts:
# Jellyfin.Server.Implementations/Security/AuthorizationContext.cs
# MediaBrowser.Controller/Library/IUserManager.cs
# MediaBrowser.Controller/Security/IAuthenticationRepository.cs
# MediaBrowser.Controller/Session/ISessionManager.cs
2021-08-13 21:08:24 -04:00
Bond_009
501de7b6dc
Enable nullable in more files
2021-07-26 23:02:32 +02:00
Patrick Barron
be88efce3c
Merge branch 'master' into authenticationdb-efcore
...
# Conflicts:
# Emby.Server.Implementations/Devices/DeviceManager.cs
# Emby.Server.Implementations/HttpServer/Security/SessionContext.cs
# Emby.Server.Implementations/Security/AuthenticationRepository.cs
# Emby.Server.Implementations/Session/SessionManager.cs
# Jellyfin.Server.Implementations/Security/AuthorizationContext.cs
# MediaBrowser.Controller/Library/IUserManager.cs
# MediaBrowser.Controller/Net/ISessionContext.cs
2021-06-18 18:56:10 -04:00
Claus Vium
75704effae
Merge pull request #5659 from ssenart/feature/5644-dlna_next_track
2021-05-24 20:35:07 +02:00
Claus Vium
2f9034c94b
Update Emby.Dlna/PlayTo/Device.cs
2021-05-24 19:37:23 +02:00
Claus Vium
e134a3677c
Apply suggestions from code review
...
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-05-24 19:29:29 +02:00
Patrick Barron
a225f34796
Merge branch 'master' into authenticationdb-efcore
...
# Conflicts:
# Jellyfin.Api/Helpers/RequestHelpers.cs
2021-05-18 18:09:46 -04:00