Bond_009
7e8428e588
Enable nullable reference types for Emby.Server.Implementations
4 years ago
BaronGreenback
2e98de9062
Code Clean up: Convert to null-coalescing operator ?? ( #5845 )
...
Co-authored-by: Cody Robibero <cody@robibe.ro>
Co-authored-by: Patrick Barron <18354464+barronpm@users.noreply.github.com>
4 years ago
BaronGreenback
f2c10471bf
Code Clean up: Use Pattern Matching ( #5838 )
...
Co-authored-by: Cody Robibero <cody@robibe.ro>
Co-authored-by: Patrick Barron <18354464+barronpm@users.noreply.github.com>
4 years ago
BaronGreenback
bc1cc2d04a
Remove unused using directives
4 years ago
cvium
42bcf171d9
Use sync Serialize when writing scheduled tasks to disk
4 years ago
Bond_009
a8ed753f6c
FxCop -> Net Analyzers (part 2)
4 years ago
Bond_009
65bab55ca0
Minor improvements
4 years ago
dkanada
54a3ab15a3
Merge pull request #5005 from jellyfin/bytes
...
JsonSerializer deserialize from bytes where possible
4 years ago
crobibero
6abee2dd22
fix delete log task
4 years ago
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
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
obradovichv
0282a1ed09
Fix string culture specificity
...
Fix bug in SsaParser.cs primary color {\1c} formatting that would leave
behind the {\1c} closing token and instead append </font> token
unconditionally to the dialogue text. Add tests.
Change AlphanumComparatorTests.cs complementary test data generation
from an array shuffle to an array reversal. Although it was previously
using a seeded Random, the shuffle itself could result in no
rearrangement of elements if the seed or test data changed over time.
The reversal guarantees reordering of elements and has the added benefit
of simplifying the test code since no special handling is needed for
arrays of 2 elements.
Change DailyTrigger.cs logging of TriggerDate format to
"yyyy-MM-dd HH:mm:ss.fff zzz" for consistency with configured log
timestamp format and change DueTime format to culture-invariant "c"
format.
4 years ago
Cody Robibero
5c57569692
Merge branch 'master' into PluginDowngrade
4 years ago
David
3dec1fd6b2
Use UTF8 encoding and async correctly
4 years ago
David
21fd124bca
Code revie
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
f38970cbd3
Remove xml docs
4 years ago
David
196388d607
Remove custom Json serializer from Emby.Server.Implementations
4 years ago
Greenback
7986465cf7
Initial upload
4 years ago
crobibero
bf66f57069
Set DeleteTranscodeFileTask to trigger every 24h
4 years ago
Greenback
e51ddd326c
Fixes spelling.
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
d4e568c8bf
Replace Task.WaitAll with Task.Wait
4 years ago
Bond_009
ff49a3bb61
Missed some stuff
4 years ago
Anthony Lavado
6205fb4b6a
Merge pull request #4341 from Bond-009/minor6
...
Minor improvements
4 years ago
crobibero
ceecc80bb3
Allow configuration of ActivityLogRetention
4 years ago
Bond_009
49569ca0a0
Use nameof where possible
4 years ago
crobibero
15a7f88e08
Automatically clean activity log database
4 years ago
Jan-Pieter Baert
6f9beef732
Fix SA1012 and SA1013 warnings
4 years ago
Anthony Lavado
959d906c85
Just enable instead
4 years ago
Anthony Lavado
375f849b3e
Simply trigger
...
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
4 years ago
Anthony Lavado
e77040a4fb
Fix Transcode Cleanup Schedule
...
Sets the default time to midnight, and confirms to the same task
scheduling commands that other tasks use.
4 years ago
Bond_009
e653eef44f
Fix some warnings
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
ab2147751f
Make MediaBrowser.MediaEncoding warnings free
4 years ago
Patrick Barron
ca1f15af19
Move GenericEventArgs to Jellyfin.Data.Events
4 years ago
Patrick Barron
0aa349fe40
Remove unused dependencies.
4 years ago
telans
8de6452967
fix some documentation periods
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
acd4389653
fix SA1005
4 years ago
crobibero
44957c5a9a
Use typed logger where possible
5 years ago
dkanada
fe16c3fad4
Merge branch 'master' into install-plugin
5 years ago
Vasily
40502a33e0
Merge pull request #3203 from Bond-009/warn18
...
Enable TreatWarningsAsErrors for Jellyfin.Server.Implementations in Release mode
5 years ago
Bond_009
4748105dce
Enable TreatWarningsAsErrors for Jellyfin.Server.Implementations in Release mode
5 years ago
Bond_009
7439e095e2
Merge branch 'master' into nullable3
5 years ago
dkanada
7972daaba4
fix a few issues with the plugin manifest
5 years ago
Bond_009
fc049caba2
Merge branch 'master' into nullable3
5 years ago
Mark Monteiro
1e1295bebf
Merge remote-tracking branch 'upstream/master' into register-services-correctly
5 years ago
Mark Monteiro
8e3b09a996
Do not use IAsyncEnumerable unnecessarily
5 years ago
Bond_009
30ce346f34
Enable nullabe reference types for MediaBrowser.Model
5 years ago
Mark Monteiro
adf0e8d3fd
Register and construct ITaskManager and IIsoManager correctly
5 years ago
Bond-009
ddd5d3aaec
Merge branch 'master' into usings
5 years ago
ferferga
a9759f6a80
Rename translation keys
5 years ago
ferferga
aa98160d70
Add whitespaces
5 years ago
ferferga
797b2fbf1d
Restore comments
5 years ago
ferferga
28f07df657
Fix NullReferenceException at startup
5 years ago
ferferga
105fc3dc29
Apply suggestions
5 years ago
ferferga
30c1170a55
Remove comments
5 years ago
ferferga
0778eb20aa
Translate Scheduled Tasks (names and descriptions)
5 years ago
Bond_009
e9d1eabd53
Remove unused usings
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
dkanada
ab2349ff3c
update task names and descriptions
5 years ago
Bond-009
5f6bca8aeb
Merge remote-tracking branch 'upstream/master' into baseurl
5 years ago
dkanada
a7ef1aa7ec
Merge pull request #2050 from Bond-009/nullref
...
Fix possible nullref when updating packages
5 years ago
Bond_009
3221e837f9
* Add support for multi segment base urls
...
* Make baseurl case-insensitive
5 years ago
Bond-009
a4c2886ac0
Fix master build
...
I was wrong, it did break...
5 years ago
Joshua M. Boniface
48120d01dc
Merge pull request #1991 from Bond-009/transtemp
...
Don't append transcodes to transcoding temp path
5 years ago
Bond_009
6a6bfa6da9
Fix possible nullref when updating packages
5 years ago
Bond-009
b477b3874e
Fix some warnings
5 years ago
Bond-009
d4b438791f
Don't append transcodes to transcoding temp path
5 years ago
dkanada
b1f9b03b17
rename some missed variables and fix warnings
5 years ago
dkanada
f3ca37e523
minor changes to transcode cleanup scheduled task
5 years ago
Bond_009
d529f81cd9
Improve IInstallationManager interface
5 years ago
Bond_009
d9a03c9bb1
Fix more warnings
5 years ago
dkanada
21ff63c371
move the transcode path
5 years ago
dkanada
685e9e4f58
Merge pull request #1584 from Bond-009/checksum
...
Check checksum for plugin downloads
5 years ago
Anthony Lavado
35da4ffa3e
Remove unneeded comment
5 years ago
Anthony Lavado
4762e2fc6c
Add a task to clean up transcode cache
5 years ago
Bond_009
5eaf5465a5
Check checksum for plugin downloads
...
* Compare the MD5 checksum when downloading plugins
* Reduced log spam due to http requests
* Removed 'GetTempFileResponse' function from HttpClientManager
* Fixed caching for HttpClientManager
5 years ago
dkanada
1ad67e223f
Merge pull request #1462 from Bond-009/installationmanager
...
Improvements to InstallationManager
5 years ago
Bond-009
6032f31aa6
Use CultureInvariant string conversion for Guids
5 years ago
Bond_009
65a0ca2f32
Improvements to InstallationManager
5 years ago
Bond-009
0804bed66d
Log time in a standardized way
6 years ago
Bond_009
0f9006c81f
Use stopwatch for more accurate measurements and reduce log spam
...
DateTime.Now is suitible for small timespans
Replaced the needlessly complex and verbose logging for the httpserver
6 years ago
Claus Vium
21f0a7e020
Make all class implementing dynamically loaded interfaces public
6 years ago
dkanada
c118f111b6
add suggestions from code review
6 years ago
dkanada
52e91243e5
merge progress calculation into a single line
6 years ago
dkanada
aadf7676d1
remove useless comments
6 years ago
dkanada
08ca1337a9
unhide several scheduled tasks and add missing properties
6 years ago
dkanada
07072d9f7b
move all scheduled tasks and triggers into folders
6 years ago
dkanada
7e3c45c917
fix build errors and update plugin manifest location
6 years ago
dkanada
548270772c
add PluginUpdateTask back into source
6 years ago
Bond-009
d0f2b3a747
Merge branch 'master' into startuptasks
6 years ago
Erwin de Haan
838541b825
Removed loose whitespace and one .ToArray() call.
6 years ago
Erwin de Haan
b9a111432a
Unwrapped all /(Write|Read)All(Text|Bytes)/ functions.
6 years ago