BaronGreenback
80877aa945
Cleaned up "value assigned is not used in any execution path"
4 years ago
Bond-009
631df8c560
Merge pull request #5520 from Bond-009/hdhomerun2
4 years ago
Bond_009
aa76957338
Remove useless code
4 years ago
LIAUD
32853ca244
Add 'group-title' channel parsing
4 years ago
Bond_009
a8ed753f6c
FxCop -> Net Analyzers (part 2)
4 years ago
Bond_009
f9640f4366
Rewrite HdHomerunManager.ParseReturnMessage
4 years ago
Bond_009
e8b18e5f8f
Add test for HdHomerunManager.ParseReturnMessage
4 years ago
Bond_009
f5789483fd
Add test for HdHomerunManager.WriteSetMessage
4 years ago
Bond-009
b755c25217
Merge pull request #5220 from Bond-009/hdhomerun
4 years ago
David
ece0d67f99
Use FileShare.Read for log files
4 years ago
David
eca3b37d6e
Use FileShare.Read to fix HdHomeRun
4 years ago
David
60ffa6f514
Use FileShare.None when creating files
4 years ago
Bond_009
1c74e2f40e
Fix build
4 years ago
Bond_009
b1fe28d0a6
Use GetEncodingOptions where possible
4 years ago
Bond_009
eba859e33e
Minor improvements
4 years ago
dkanada
13d65318eb
Merge pull request #5223 from Bond-009/minor10
...
Minor improvements
4 years ago
Bond_009
e9f22303a4
Properly forward cancellationTokens
4 years ago
Bond_009
65bab55ca0
Minor improvements
4 years ago
Bond_009
e1bc322b70
Add test for WriteGetMessage
4 years ago
Bond_009
3a9fcb6abd
Rewrite packet writing code for HdHomerun
4 years ago
dkanada
aea1c4f310
Merge pull request #5142 from M0ssTee/updateRegex
...
Replaced /d with [0-9], see issue #2923
4 years ago
dkanada
54a3ab15a3
Merge pull request #5005 from jellyfin/bytes
...
JsonSerializer deserialize from bytes where possible
4 years ago
M0ssTee
8f88d0d2cb
Update Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunManager.cs
...
Co-authored-by: Cody Robibero <cody@robibe.ro>
4 years ago
Troy
8c640a1492
Replaced /d with [0-9], see issue #2923
4 years ago
Bond_009
a9b497720d
Use JsonSerializer.SerializeToUtf8Bytes when doing a round trip
...
This test uses a very small object (CountryInfo), using a bigger object
would increase the difference in allocated memory.
```
BenchmarkDotNet=v0.12.1, OS=fedora 32
Intel Core i7-6700HQ CPU 2.60GHz (Skylake), 1 CPU, 8 logical and 4 physical cores
.NET Core SDK=5.0.100
[Host] : .NET Core 5.0.0 (CoreCLR 5.0.20.51904, CoreFX 5.0.20.51904), X64 RyuJIT
DefaultJob : .NET Core 5.0.0 (CoreCLR 5.0.20.51904, CoreFX 5.0.20.51904), X64 RyuJIT
| Method | Mean | Error | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---------------- |-----------:|---------:|---------:|-------:|------:|------:|----------:|
| RoundTripBytes | 932.0 ns | 5.09 ns | 4.25 ns | 0.1173 | - | - | 368 B |
| RoundTripString | 1,114.8 ns | 22.19 ns | 23.74 ns | 0.1469 | - | - | 464 B |
```
4 years ago
Bond_009
1ea2b200c0
JsonSerializer deserialize from bytes where possible
...
This is faster and uses way less memory
```
BenchmarkDotNet=v0.12.1, OS=fedora 32
Intel Core i7-6700HQ CPU 2.60GHz (Skylake), 1 CPU, 8 logical and 4 physical cores
.NET Core SDK=5.0.100
[Host] : .NET Core 5.0.0 (CoreCLR 5.0.20.51904, CoreFX 5.0.20.51904), X64 RyuJIT
DefaultJob : .NET Core 5.0.0 (CoreCLR 5.0.20.51904, CoreFX 5.0.20.51904), X64 RyuJIT
| Method | Mean | Error | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|------- |---------:|--------:|--------:|--------:|------:|------:|----------:|
| Bytes | 158.4 us | 2.56 us | 2.14 us | 16.8457 | - | - | 52.08 KB |
| String | 172.8 us | 0.78 us | 0.70 us | 41.5039 | - | - | 127.82 KB |
| Custom | 155.5 us | 2.95 us | 2.76 us | 10.0098 | - | - | 31.27 KB |
```
4 years ago
Bond-009
054adf6379
Merge pull request #4853 from Ullmie02/servicestack-json
4 years ago
David
3dec1fd6b2
Use UTF8 encoding and async correctly
4 years ago
David
21fd124bca
Code revie
4 years ago
David
f73bb92ce3
Remove manual N/A removal and write directly to stream
4 years ago
David
043d045448
Put json serializer options in private field
4 years ago
David
e835dfb27d
Use sync string instead of file
4 years ago
David
2a574914ea
Use streams instead of strings
4 years ago
David
196388d607
Remove custom Json serializer from Emby.Server.Implementations
4 years ago
Ryan Petris
c0c0eaec05
new List(int) does not pre-allocate indicies like Arrays, it merely sets the initial capacity.
4 years ago
Claus Vium
f322866127
Merge pull request #4737 from crobibero/missing-ensure-success
4 years ago
crobibero
a9aafbaf5a
Don't throw exception unless needed
4 years ago
Bond_009
c0fde3496c
Add tests for HdHomerunHost.TryGetTunerHostInfo
4 years ago
Bond_009
514d95e5aa
Add tests for HdHomerunHost.GetLineup
4 years ago
Claus Vium
e6650651b3
Merge pull request #4738 from jellyfin/tests8
...
Add tests for HdHomerunHost.GetModelInfo
4 years ago
Bond_009
7027561e19
Add tests for HdHomerunHost.GetModelInfo
4 years ago
Claus Vium
b6ecaccf92
Merge pull request #4730 from crobibero/base-item-dto-guid-nullable
...
Don't serialize empty GUID to null
4 years ago
crobibero
e621244405
Add missing EnsureSuccessStatusCode
4 years ago
crobibero
26e5aacb90
Fix JsonConverter recursion
4 years ago
crobibero
8517b28eba
Make BaseItemDto Guids nullable
4 years ago
crobibero
66a1880a58
Add number to bool json converter
4 years ago
Bond_009
e4fd61411f
Minor improvements
4 years ago
Claus Vium
0a35f35311
Merge pull request #4591 from jellyfin/schedulesdirect
...
Clean up SchedulesDirect
4 years ago
Joshua M. Boniface
9169a28df1
Merge pull request #4588 from jellyfin/hex
...
Remove Hex class as the BCL has one now
4 years ago
Bond_009
81ca6cb47c
Clean up SchedulesDirect
4 years ago
Bond_009
38932fc7d1
Schedules Direct requires the hex to be lowercase
4 years ago
Bond_009
8c8a71692e
Remove Hex class as the BCL has one now
4 years ago
crobibero
0acea5b077
Don't throw null reference if ContentType is null.
4 years ago
Joshua M. Boniface
2c9e355e42
Merge branch 'master' into NetworkPR2
4 years ago
Joshua M. Boniface
d5eb7e786f
Merge pull request #4182 from ryanpetris/fix-hdhomerun
...
Fix HD Home Run streaming
4 years ago
BaronGreenback
8f25eaeb9d
Update Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunUdpStream.cs
...
Co-authored-by: Cody Robibero <cody@robibe.ro>
4 years ago
Greenback
616caca2b7
Added more comments.
4 years ago
BaronGreenback
7a6063ed41
Merge branch 'master' into NetworkPR2
4 years ago
Fernando Fernández
e21e00cad5
Merge remote-tracking branch 'upstream/master' into no-scaling
4 years ago
Greenback
a3e47f3e4e
Updated to latest Unstable.
4 years ago
Greenback
e51ddd326c
Fixes spelling.
4 years ago
Fernando Fernández
38c3b6fcd3
Fix build and thread detection logic
4 years ago
Bond_009
4b1c9dc9ea
Pass cancellation where possible
4 years ago
Fernando Fernández
94cae4f145
Specify threads to ffmpeg properly
4 years ago
BaronGreenback
d66f88672c
Merge branch 'master' into NetworkPR2
4 years ago
Ryan Petris
8204b25a56
Merge branch 'master' into fix-hdhomerun
4 years ago
Ryan Petris
81d5eb4db5
Return a Task object and discard it instead of using async void.
4 years ago
crobibero
e66d79fc0c
Merge remote-tracking branch 'upstream/master' into http-exception
4 years ago
crobibero
95a2de757f
remove custom HttpException
4 years ago
Bond_009
c4bb32f259
Access last element by index where possible
4 years ago
Bond_009
bc7359f87d
Use string.Split(char) where possible instead of string.Split(char[])
4 years ago
crobibero
73f9a6d7d0
Convert array property to IReadOnlyList
4 years ago
Neil Burrows
e9d35cb2ca
Switching to the more efficient Hex.Encode function
4 years ago
Neil Burrows
866c41519f
Perform hashing of Password for Schedules Direct on server
4 years ago
Bond-009
082705c0d8
Merge pull request #4410 from crobibero/m3u-user-agent
...
Set UserAgent when getting M3u playlist
4 years ago
BaronGreenback
ec245dce90
Merge branch 'master' into NetworkPR2
4 years ago
crobibero
b4d52d8009
Apply patch
4 years ago
crobibero
5d88e61076
Merge remote-tracking branch 'upstream/master' into livetv-ts-fix
4 years ago
Anthony Lavado
6205fb4b6a
Merge pull request #4341 from Bond-009/minor6
...
Minor improvements
4 years ago
crobibero
6763d456ff
Set UserAgent when getting M3u playlist
4 years ago
Greenback
83af636c61
Updated with new NetManager
4 years ago
crobibero
0c674b496f
Add stream disposal comment.
4 years ago
crobibero
3568c5f39b
Fix early filestream close
4 years ago
BaronGreenback
0b5ddc90ff
Merge branch 'master' into NetworkPR2
4 years ago
Bond_009
49569ca0a0
Use nameof where possible
4 years ago
Jan-Pieter Baert
6f9beef732
Fix SA1012 and SA1013 warnings
4 years ago
Jim Cartlidge
53af1e3455
Updatig netcollection & re-inserting BOM
4 years ago
Jim Cartlidge
fcd1b2f0e4
Merged with latest master
4 years ago
Bond-009
7775066475
Merge pull request #4236 from ConfusedPolarBear/warnings1
...
Fix some warnings
4 years ago
Matt Montgomery
53d5f64e03
Fix SA1513, SA1514, SA1507, and SA1508
4 years ago
Ryan Petris
3fa3a9d57a
Preemptively throw a LiveTvConflictException when the tracked live streams for a given device/tuner will exceed the number of supported streams.
4 years ago
Ryan Petris
361f51ac94
Use TcpClient.Connect().
4 years ago
Ryan Petris
0496e18179
Fix HD Home Run streaming.
...
* Use LocalEndPoint instead of RemoteEndPoint when determining local address.
* HdHomerunUdpStream.StartStreaming is meant to run until stream is closed, however HdHomerunUdpStream.Open needs to return as soon as stream is open to send stream url back to client. Therefore, StartStreaming should not be awaited on.
* TcpClient(IPEndPoint) treats endpoint as the local endpoint; use TcpClient(string, int) instead as it treats endpoint as the remote endpoint.
4 years ago
Jim Cartlidge
38b8110a3e
Removing blank lines.
4 years ago
Jim Cartlidge
b44455ad0d
Update based on PR1 changes.
4 years ago
Jim Cartlidge
9ef79d190b
Large number of files
4 years ago
Bond_009
384ab39f5b
Fix some warnings
4 years ago
crobibero
23df4991b6
Use proper buffer size
4 years ago
crobibero
2a8653b309
Merge remote-tracking branch 'upstream/master' into http-client-migrate
4 years ago
crobibero
ae8ff1ca54
last time I swear
4 years ago
crobibero
4d4dc0b555
Remove ResponseHeadersRead in SchedulesDirect
4 years ago
crobibero
d8a0edc511
Revert "Remove ResponseHeadersRead where applicable"
...
This reverts commit 85844a84b6
.
4 years ago
crobibero
85844a84b6
Remove ResponseHeadersRead where applicable
4 years ago
crobibero
b111b9e2c9
Fix styling
4 years ago
crobibero
e1d0b430d9
Remove HttpRequestOptions
4 years ago
crobibero
4038d15c83
Properly migrate all HttpCompletionOption
4 years ago
Bond_009
e653eef44f
Fix some warnings
4 years ago
crobibero
8d592777c4
change to using declaration
4 years ago
crobibero
6ae4da709e
migrate to IHttpClientFactory in M3UTunerHost
4 years ago
crobibero
5b93b3b15e
migrate to IHttpClientFactory in M3uParser
4 years ago
crobibero
af9ebef577
migrate to IHttpClientFactory in SharedHttpStream
4 years ago
crobibero
96fdee38cb
migrate to IHttpClientFactory in HdHomerunHost
4 years ago
crobibero
97cc3d54bb
migrate to IHttpClientFactory in XmlTvListingsProvider
4 years ago
crobibero
652e688cc1
migrate to IHttpClientFactory in SchedulesDirect
4 years ago
crobibero
50a1e35765
migrate to IHttpClientFactory in EmbyTV
4 years ago
crobibero
804b0fc034
migrate to IHttpClientFactory in DirectRecorder
4 years ago
Patrick Barron
9fa4fff15d
Merge branch 'master' into event-rewrite-1
...
# Conflicts:
# Emby.Dlna/Emby.Dlna.csproj
# Emby.Dlna/Eventing/DlnaEventManager.cs
# Emby.Dlna/Service/BaseService.cs
# Emby.Server.Implementations/ScheduledTasks/ScheduledTaskWorker.cs
# MediaBrowser.Controller/Subtitles/SubtitleDownloadEventArgs.cs
4 years ago
Bond_009
119f64f5e7
Make some methods async
4 years ago
Bond_009
ab2147751f
Make MediaBrowser.MediaEncoding warnings free
4 years ago
Patrick Barron
98ed90c4a2
Merge branch 'master' into event-rewrite-1
4 years ago
Bond_009
68edccd9f4
More warn
4 years ago
Bond_009
e77a45adcf
Minor change
4 years ago
Bond_009
2b400c99ef
Fix warnings
4 years ago
Patrick Barron
ca1f15af19
Move GenericEventArgs to Jellyfin.Data.Events
4 years ago
Patrick Barron
70e56314d7
Minor fixes to LiveTvMediaSourceProvider
4 years ago
Patrick Barron
8373d6297c
Fix MemoryCache usage
4 years ago
Patrick Barron
5c65abcd94
Clean up TunerHost classes
4 years ago
Bond-009
b7421db5fe
Merge pull request #3578 from barronpm/displaypreferences-efcore
...
Migrate Display Preferences to EF Core
4 years ago
Joshua M. Boniface
d7287a05ad
Merge pull request #3684 from Bond-009/warn22
...
Fix warnings
4 years ago
Bond_009
01e781035f
Fix warnings
4 years ago
Bond-009
3ff110984a
Merge branch 'master' into readonlyspan
4 years ago
Patrick Barron
3d69cea1c9
Merge branch 'master' into displaypreferences-efcore
4 years ago
Patrick Barron
7adac7561a
Use System.Text.Json in LiveTvManager
4 years ago
Bond_009
febb6bced6
Review usage of string.Substring (part 1)
...
Reduced allocations by replacing string.Substring with ReadOnlySpan<char>.Slice
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
afe09612e8
fix SA1119
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
telans
726e116d5b
fix SA1510
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
5 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
22a860a806
Fix a small number of compile warnings
5 years ago
crobibero
57d1dbfe7b
undo erroneous changes
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