Commit graph

19907 commits

Author SHA1 Message Date
Bond_009 eeff9f52c6 Fix Omdb caching 2021-01-12 16:27:38 +01:00
Bond-009 bffebce909
Merge pull request #5004 from jellyfin/camera-upload
remove unused notification type
2021-01-12 16:13:21 +01:00
Bond_009 1fdd2d6e05 Handle IO errors in LoadManifest 2021-01-12 16:03:13 +01:00
Bond_009 1752423e52 Open FileStream with FileMode.Create instead of FileMode.OpenOrCreate
> The OpenWrite method opens a file if one already exists for the file path,
    or creates a new file if one does not exist. For an existing file,
    it does not append the new text to the existing text. Instead,
    it overwrites the existing characters with the new characters.
    If you overwrite a longer string
    (such as "This is a test of the OpenWrite method") with a shorter string
    (such as "Second run"), the file will contain a mix of the strings
    ("Second runtest of the OpenWrite method").

Ref: https://docs.microsoft.com/en-us/dotnet/api/system.io.file.openwrite?view=net-5.0#remarks
2021-01-12 15:51:32 +01:00
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 |
```
2021-01-12 15:37:18 +01:00
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 |
```
2021-01-12 15:28:02 +01:00
BaronGreenback 2979c8dd37 Fixed test on Mac 2021-01-12 13:23:10 +00:00
BaronGreenback 35a30c9d09 Impliments KnownNetworks and KnownProxies 2021-01-12 13:07:34 +00:00
dkanada cac33ef105 remove unused notification type 2021-01-12 12:28:21 +09:00
Bond-009 aaf889f683
Merge pull request #5002 from jellyfin/dependabot/nuget/coverlet.collector-3.0.0
Bump coverlet.collector from 1.3.0 to 3.0.0
2021-01-11 14:58:23 +01:00
dependabot[bot] b00f3334f2
Bump coverlet.collector from 1.3.0 to 3.0.0
Bumps [coverlet.collector](https://github.com/coverlet-coverage/coverlet) from 1.3.0 to 3.0.0.
- [Release notes](https://github.com/coverlet-coverage/coverlet/releases)
- [Commits](https://github.com/coverlet-coverage/coverlet/commits/v3.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-11 12:01:03 +00:00
Claus Vium 5c00b4175a
Merge pull request #4997 from crobibero/subtitle-upload-auth
Require elevated auth to upload subtitles
2021-01-10 20:45:15 +01:00
crobibero 5f998bdd1f Require elevated auth to upload subtitles 2021-01-10 10:48:37 -07:00
Claus Vium 9970b87439
Merge pull request #4994 from Bond-009/artistnfo
Add tests for artist nfo
2021-01-10 10:33:31 +01:00
Bond_009 4c3fa21e97
Add tests for artist nfo 2021-01-09 21:49:36 +01:00
Claus Vium 75a25de991
Merge pull request #4992 from Bond-009/seriesnfo
Add tests for series nfo
2021-01-09 20:43:15 +01:00
Bond_009 585821954d
Add tests for series nfo 2021-01-09 20:15:16 +01:00
Bond-009 8d4312d739
Merge pull request #4989 from Bond-009/nfotests 2021-01-09 19:35:24 +01:00
Bond-009 0bb0dd646f
Merge pull request #4980 from Ullmie02/chinese
Add additional chinese languages
2021-01-09 18:55:57 +01:00
Bond-009 2e33e14bb2
Merge pull request #4899 from jellyfin/nullableguid
Cover all branches in JsonNullableGuidConverter
2021-01-09 17:37:23 +01:00
Bond-009 2c74262f7c
Merge pull request #4945 from obradovichv/fix-string-culture-specificity 2021-01-09 16:21:19 +01:00
Bond_009 be511ca162
Fix release build ... again 2021-01-09 15:14:26 +01:00
Bond_009 3a9ce6d366
Fix release build 2021-01-09 15:08:48 +01:00
Bond_009 d07eef4f25
Add tests for NFO parsers 2021-01-09 15:00:59 +01:00
Bond-009 a8230c07ea
Merge pull request #4961 from crobibero/person-blurhash-null-ref
Fix potential null reference
2021-01-09 00:41:16 +01:00
Bond-009 45c6d79dc9
Merge pull request #4877 from jellyfin/ass 2021-01-08 21:43:45 +01:00
Bond-009 efa2dc6829
Merge pull request #4878 from jellyfin/srt
Add tests for srt parser
2021-01-08 21:43:36 +01:00
Bond-009 a554423163
Merge pull request #4976 from BaronGreenback/dlnaPortFix
Fixed DLNA Server on RC2
2021-01-08 21:06:14 +01:00
Bond-009 4549c96f6d
Merge pull request #4906 from Spacetech/library_scan_ignore_inaccessible
Ignore inaccessible files & folders during library scans
2021-01-08 21:01:32 +01:00
Christian cb6ae4a188 Translated using Weblate (German)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/de/
2021-01-08 07:48:22 -05:00
David Ullmer 87c2802984 Add additional chinese languages 2021-01-08 11:25:23 +01:00
BaronGreenback 192efff791
Update DlnaEntryPoint.cs 2021-01-07 17:17:22 +00:00
minystory 7acee4070e Translated using Weblate (Korean)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ko/
2021-01-07 10:48:05 -05:00
Oatavandi 0ac993e1b3 Translated using Weblate (Malayalam)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ml/
2021-01-07 09:37:18 -05:00
Bond-009 07650d91da
Merge pull request #4962 from thornbill/fix-playstate-name
Fix capitalization of Playstate message
2021-01-07 10:04:02 +01:00
Bond-009 7758c61ea8
Merge pull request #4968 from ianjazz246/fix-music-album-display
Fix library with music directly under artist folder
2021-01-07 10:02:23 +01:00
BaronGreenback a664aac881 optimization 2021-01-06 20:46:22 +00:00
BaronGreenback 90d72d6628
Update NetworkManager.cs
Changed split character
2021-01-06 20:39:25 +00:00
BaronGreenback 8044f1f72f
Update NetworkParseTests.cs 2021-01-06 20:30:57 +00:00
Bond-009 6f0a6fdd5d
Merge pull request #4943 from crobibero/omdb-fix 2021-01-06 20:28:29 +01:00
Ian 0f4bbbc63c Fix 3169 and 2879 by making MusicArtistResolver run ahead of MusicAlbumResolver 2021-01-06 10:58:07 -08:00
Oatavandi 66ab4e77cd Added translation using Weblate (Malayalam) 2021-01-06 11:57:06 -05:00
crobibero 75ed532fca Add serialize test 2021-01-06 07:07:38 -07:00
GlibTongue 162e8d3045 Translated using Weblate (Urdu (Pakistan))
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ur_PK/
2021-01-05 23:06:44 -05:00
David 989c6dcffa
Update azure-pipelines-package.yml 2021-01-05 23:01:46 +01:00
Bill Thornton cfca27e99a Fix capitalization of Playstate message 2021-01-05 10:06:55 -05:00
crobibero 13f347a813 Fix potential null reference 2021-01-05 07:00:48 -07:00
Joe Ceresini 530c4dc11b Use variables for version, and fix conflict 2021-01-05 00:32:46 -05:00
suelio bertulino lima a4a261e940 Translated using Weblate (Portuguese (Brazil))
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/pt_BR/
2021-01-04 12:06:45 -05:00
Aron Szakacs 12144d2d9e Translated using Weblate (German (Swiss))
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/gsw/
2021-01-04 12:06:45 -05:00