Compare commits

...

1857 Commits

Author SHA1 Message Date
Cody Robibero
7852f0b426 Ignore management controller when generating openapi spec 2021-08-18 05:06:17 -06:00
Cody Robibero
1bbe262646 Fix build 2021-08-18 05:05:47 -06:00
Claus Vium
bc69aa251b Merge branch 'master' into EraYaN-add-management-interface 2021-08-18 08:56:14 +02:00
Joshua M. Boniface
e5cbafdb6b Merge pull request #5606 from lmnotran/feature/delay-service-start
Delay starting service until after network is online
2021-08-18 02:25:54 -04:00
Oatavandi
6438410111 Translated using Weblate (Malayalam)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ml/
2021-08-17 22:29:54 -04:00
hoanghuy309
6de2a519f2 Translated using Weblate (Vietnamese)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/vi/
2021-08-17 22:29:54 -04:00
aqweg
2a8cb5d795 Translated using Weblate (Afrikaans)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/af/
2021-08-17 22:29:54 -04:00
nextlooper42
0c54708e1c Translated using Weblate (Slovak)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sk/
2021-08-17 22:29:54 -04:00
WWWesten
2e5cb8d8b1 Translated using Weblate (Russian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ru/
2021-08-17 22:29:54 -04:00
WWWesten
a311116f51 Translated using Weblate (Kazakh)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/kk/
2021-08-17 22:29:54 -04:00
millallo
c842a2efa2 Translated using Weblate (Italian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/it/
2021-08-17 22:29:54 -04:00
Adam Bokor
61aa992628 Translated using Weblate (Hungarian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/hu/
2021-08-17 22:29:54 -04:00
Henry Moritz
88b2b9a82a Translated using Weblate (Spanish (Mexico))
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/es_MX/
2021-08-17 22:29:54 -04:00
FancyNerd92
9d445cf7fb Translated using Weblate (Greek)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/el/
2021-08-17 22:29:54 -04:00
Bond-009
2e7418142a Merge pull request #6437 from jellyfin/dependabot/nuget/Serilog.Settings.Configuration-3.2.0
Bump Serilog.Settings.Configuration from 3.1.0 to 3.2.0
2021-08-16 14:54:28 +02:00
Bond-009
d9f7b84156 Merge pull request #6438 from jellyfin/dependabot/nuget/FsCheck.Xunit-2.16.0
Bump FsCheck.Xunit from 2.15.3 to 2.16.0
2021-08-16 14:53:56 +02:00
Bond-009
b5157004c4 Merge pull request #6439 from jellyfin/dependabot/nuget/Microsoft.NET.Test.Sdk-16.11.0
Bump Microsoft.NET.Test.Sdk from 16.10.0 to 16.11.0
2021-08-16 14:53:39 +02:00
dependabot[bot]
ee37784a35 Bump Microsoft.NET.Test.Sdk from 16.10.0 to 16.11.0
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.10.0 to 16.11.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.10.0...v16.11.0)

---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-16 12:01:04 +00:00
dependabot[bot]
4077cb2648 Bump FsCheck.Xunit from 2.15.3 to 2.16.0
Bumps [FsCheck.Xunit](https://github.com/fsharp/FsCheck) from 2.15.3 to 2.16.0.
- [Release notes](https://github.com/fsharp/FsCheck/releases)
- [Changelog](https://github.com/fscheck/FsCheck/blob/master/FsCheck%20Release%20Notes.md)
- [Commits](https://github.com/fsharp/FsCheck/compare/2.15.3...2.16.0)

---
updated-dependencies:
- dependency-name: FsCheck.Xunit
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-16 12:00:55 +00:00
dependabot[bot]
05103a483e Bump Serilog.Settings.Configuration from 3.1.0 to 3.2.0
Bumps [Serilog.Settings.Configuration](https://github.com/serilog/serilog-settings-configuration) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/serilog/serilog-settings-configuration/releases)
- [Changelog](https://github.com/serilog/serilog-settings-configuration/blob/dev/CHANGES.md)
- [Commits](https://github.com/serilog/serilog-settings-configuration/compare/v3.1.0...v3.2.0)

---
updated-dependencies:
- dependency-name: Serilog.Settings.Configuration
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-16 12:00:51 +00:00
Claus Vium
52e27da921 Merge pull request #6239 from jvoisin/patch-1
Add a LGTM.com badge
2021-08-16 09:19:59 +02:00
Claus Vium
aac1435502 Merge pull request #6397 from MrChip53/m3u-improvements 2021-08-16 09:12:43 +02:00
Claus Vium
fb5db696eb Merge pull request #6403 from ankenyr/master 2021-08-16 09:03:34 +02:00
Claus Vium
fa77902955 Merge pull request #6430 from Bond-009/minor17
Minor improvements
2021-08-16 08:59:43 +02:00
Claus Vium
e3c2a8a3be Update Emby.Server.Implementations/LiveTv/TunerHosts/BaseTunerHost.cs 2021-08-16 08:52:16 +02:00
ankenyr
6ba7db3d55 Removing if statement and always testing reverse of x and y. 2021-08-15 15:48:01 -07:00
ankenyr
0f9e95b4c5 Breaking up the test theory so episodes and the results are on their own lines. 2021-08-15 15:31:58 -07:00
Rob
9220682fd1 Update tests/Jellyfin.Server.Implementations.Tests/Sorting/AiredEpisodeOrderComparerTests.cs
Co-authored-by: Bond-009 <bond.009@outlook.com>
2021-08-15 15:26:00 -07:00
Rob
10fbb4d48d Update tests/Jellyfin.Server.Implementations.Tests/Sorting/AiredEpisodeOrderComparerTests.cs
Thanks for this suggestion. I will try to keep this in mind going forward with future PRs

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-08-15 15:23:18 -07:00
Bond-009
db0d5b048a Merge pull request #6423 from richlander/mediabrowser-controller
Fix warnings in MediaBrowser.Controller
2021-08-16 00:06:40 +02:00
Bond_009
19824bff94 Minor improvements 2021-08-15 23:48:19 +02:00
Claus Vium
d3f291f159 Merge pull request #6392 from Bond-009/tests9
ApiServiceCollectionExtensions.AddProxyAddresses: Add more tests
2021-08-15 19:56:08 +02:00
Joshua M. Boniface
84d7db7a31 Merge pull request #6427 from winterqt/patch-1
Disable UseAppHost in portable deployment
2021-08-15 13:34:47 -04:00
Joshua M. Boniface
7fabb32482 Merge pull request #6429 from crobibero/dotnet-5.0.9
Update to dotnet 5.0.9
2021-08-15 13:34:04 -04:00
Rich Lander
e7a3552aae Update per feedback 2021-08-15 10:32:23 -07:00
Rich Lander
312e2685f8 Update MediaBrowser.Controller/Entities/IHasMediaSources.cs
Co-authored-by: Bond-009 <bond.009@outlook.com>
2021-08-15 10:30:12 -07:00
dkanada
3cc1df68ac Merge pull request #6428 from Bond-009/tests10
Fix PasswordHash tests
2021-08-16 01:43:30 +09:00
Cody Robibero
709f8e9faa Update to dotnet 5.0.9 2021-08-15 08:30:15 -06:00
Bond-009
fc9f45b42d Merge pull request #6381 from Bond-009/nullable5
Enable nullable for DlnaManager
2021-08-15 14:14:33 +02:00
Bond_009
e8e0836f95 Fix PasswordHash tests 2021-08-15 14:13:20 +02:00
Winter
890e99725e Disable UseAppHost in portable deployment 2021-08-14 19:29:31 -04:00
dtorner
c80930c6d4 Translated using Weblate (Spanish)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/es/
2021-08-14 06:21:47 -04:00
Daniel
585207e05b Translated using Weblate (Catalan)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ca/
2021-08-14 06:21:47 -04:00
FancyNerd92
7eb4da4eef Translated using Weblate (Greek)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/el/
2021-08-14 06:21:47 -04:00
cotlol
b6691d3fe9 Translated using Weblate (Swedish)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sv/
2021-08-14 06:21:47 -04:00
FancyNerd92
9b451f357f Translated using Weblate (English)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/en/
2021-08-14 06:21:47 -04:00
artiume
7ee404ec98 Added translation using Weblate (Pirate) 2021-08-14 06:21:47 -04:00
Rich Lander
e3df4dcaae Fix warnings in MediaBrowser.Controller 2021-08-13 20:34:36 -07:00
Bond-009
04571e93f8 Merge pull request #6339 from richlander/mediabrowser-controller-entities 2021-08-13 18:07:19 +02:00
Bond-009
d639b030ac Merge pull request #6335 from richlander/media-provides-analysis-fixes 2021-08-13 17:56:39 +02:00
Bond-009
e33901b9f5 Merge pull request #6267 from Bond-009/minor15
Minor fixes
2021-08-13 01:31:42 +02:00
Bond-009
e5a29824e5 Merge branch 'master' into minor15 2021-08-13 00:33:18 +02:00
Bond_009
4c1286fd24 Address comment 2021-08-12 21:38:54 +02:00
Bond-009
f83a5bb08e Merge pull request #6414 from richlander/mediabrowser-controller-mediaencoding 2021-08-12 17:30:30 +02:00
Rich Lander
ad6f27143f Update MediaBrowser.Controller/Entities/Folder.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-08-11 13:38:23 -07:00
Rich Lander
1ac2524844 Apply suggestions from code review
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-08-11 13:37:46 -07:00
ankenyr
78bbfca990 Separating out error cases from good cases. 2021-08-11 09:56:36 -07:00
Claus Vium
8458960e57 Merge pull request #6377 from richlander/optimize-docker
Optimize Dockerfiles
2021-08-11 18:29:07 +02:00
Joshua M. Boniface
ac8a768747 Merge pull request #6394 from h1dden-da3m0n/ci/noisy-container 2021-08-11 12:06:10 -04:00
Claus Vium
0216c452f1 Merge pull request #6025 from daullmer/localization-test 2021-08-11 13:14:39 +02:00
Claus Vium
3a47ad11e9 Apply suggestions from code review 2021-08-11 12:57:31 +02:00
Claus Vium
a29f702432 Merge pull request #6258 from gnuyent/feat/hardware-encode-status 2021-08-11 12:54:27 +02:00
Claus Vium
08152d2a98 Apply suggestions from code review 2021-08-11 12:50:35 +02:00
Claus Vium
408d5c78a9 Merge pull request #6262 from MrTimscampi/scanner-prefer-original-date 2021-08-11 12:39:05 +02:00
Julien Machiels
8d5b87025b Update tests/Jellyfin.MediaEncoding.Tests/Probing/ProbeResultNormalizerTests.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-08-11 09:42:40 +02:00
Claus Vium
c2de5f2c23 Merge pull request #6412 from richlander/mediabrowser-controller-session 2021-08-11 08:37:18 +02:00
Rich Lander
32d27d71a8 Fix warnings in MediaBrowser.Controller/MediaEncoding directory 2021-08-10 14:29:48 -07:00
David Ullmer
d7c9b14175 Apply suggestions from code review 2021-08-10 20:28:57 +02:00
Bond-009
589ad56a8c Merge pull request #6409 from jellyfin/dependabot/nuget/UTF.Unknown-2.4.0
Bump UTF.Unknown from 2.3.0 to 2.4.0
2021-08-10 20:00:48 +02:00
David Ullmer
45e0f7893b Merge remote-tracking branch 'upstream/master' into localization-test 2021-08-10 14:03:21 +02:00
David Ullmer
b5880c2680 Minor improvements 2021-08-10 14:03:15 +02:00
David Ullmer
6b61b50b53 Revert "Refactor LocalizationManager and remove dead method"
This reverts commit db2b53a4b5.
2021-08-10 13:39:51 +02:00
David Ullmer
77aee515a2 Use correct string comparison 2021-08-10 13:37:33 +02:00
Erdinc
854bb79ae8 Translated using Weblate (Turkish)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/tr/
2021-08-10 05:29:48 -04:00
Rich Lander
9951a51395 Fix warnings in MediaBrowser.Controller/Session 2021-08-09 19:47:26 -07:00
Rich Lander
cb990ae973 Update per feedback 2021-08-09 18:52:38 -07:00
Rich Lander
870887046c Update MediaBrowser.Providers/Plugins/Tmdb/TmdbClientManager.cs
Co-authored-by: Bond-009 <bond.009@outlook.com>
2021-08-09 18:50:41 -07:00
ankenyr
67f81e8c07 Changing test name to be more descrptive. 2021-08-09 11:27:19 -07:00
Rob
579ed5c1fc Update tests/Jellyfin.Server.Implementations.Tests/Sorting/AiredEpisodeOrderComparerTests.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-08-09 11:27:40 -07:00
dependabot[bot]
c4d8e6f056 Bump UTF.Unknown from 2.3.0 to 2.4.0
Bumps [UTF.Unknown](https://github.com/CharsetDetector/UTF-unknown) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/CharsetDetector/UTF-unknown/releases)
- [Commits](https://github.com/CharsetDetector/UTF-unknown/compare/v2.3...v2.4)

---
updated-dependencies:
- dependency-name: UTF.Unknown
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-09 12:00:53 +00:00
millallo
55389453be Translated using Weblate (Italian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/it/
2021-08-08 13:29:50 -04:00
Julien Machiels
6c2cbafee0 Update MediaBrowser.MediaEncoding/Probing/FFProbeHelpers.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-08-08 16:37:35 +02:00
Bond-009
ab88e30cfa Merge pull request #6404 from crobibero/redirect-base-url
Fix redirect logic if request path is exactly the base url
2021-08-08 14:53:19 +02:00
ankenyr
5eac267569 Reverting sln file. 2021-08-07 15:55:52 -07:00
ankenyr
8e6436d8dd Removing moved files. 2021-08-07 15:36:23 -07:00
ankenyr
8b4d9339cf Changing namespace to be within Jellyfin.Server.Implementations.Tests 2021-08-07 15:07:12 -07:00
MrTimscampi
924dfe1db0 Add test for year-only parsing for FFProbe 2021-08-07 22:24:10 +02:00
MrTimscampi
ba609aefea Attempt to parse YYYY format dates in GetDictionaryDateTime
DateTime.TryParse doesn't properly parse year-only dates, so parsing results from FFProbe sometimes returns null (for example, some music tagged with Beets has yyyy format dates for release dates).
As a result, Jellyfin would previously no get the date from the FFProbe results.
This adds DateTime.TryParseExact with a format of 'yyyy' as a fallback, to attempt to properly parse the value, even if it's only a year.
2021-08-07 22:11:32 +02:00
MrTimscampi
534e088105 Prefer original data when getting premiere date from ffprobe 2021-08-07 22:02:43 +02:00
Cody Robibero
bdbac12d4f Update Jellyfin.Server/Middleware/BaseUrlRedirectionMiddleware.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-08-07 09:06:31 -06:00
Cody Robibero
a7585dd2d6 Fix redirect logic if request path is exactly the base url 2021-08-07 07:36:45 -06:00
ankenyr
14a53fe402 Adding tests for AiredEpisodeOrderComparer. 2021-08-06 23:12:29 -07:00
Anthony Lavado
3ee0c68cb7 Merge pull request #6402 from jellyfin/README-links
Add sponsor links
2021-08-06 14:49:31 -04:00
Anthony Lavado
439ae4ec6f Add sponsor links
Adds a horizontal line after project description and the rest of the readme, and another at the end before including DO and JB sponsorship links with images.
2021-08-06 14:32:04 -04:00
Bond-009
971c2bc7de Merge pull request #6328 from Bond-009/epparser
Improve episode parser
2021-08-06 17:29:34 +02:00
MrChip53
eaa5575b23 Add comment 2021-08-06 10:07:50 -05:00
Chris Simoni
883d28d03d Update Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-08-06 08:10:28 -05:00
h1dden-da3m0n
ed2a637ce3 fix missing build dependencies
needed by the build sh-scripts
2021-08-06 01:48:06 +02:00
MrChip53
6c42d2345d Properly stream M3U file over http 2021-08-04 19:19:03 -05:00
h1dden-da3m0n
ea798de61f remove packages bundled in dotnet/sdk base image 2021-08-05 00:25:58 +02:00
h1dden-da3m0n
6a3ec7b479 change OS packaging images to be quiet
also uses the base dotnet/sdk image where possible
2021-08-04 23:34:12 +02:00
Bond_009
60053c7f3d Fix log messages 2021-08-04 18:49:54 +02:00
Bond_009
442dc10aac ApiServiceCollectionExtensions.AddProxyAddresses: Add more tests 2021-08-04 18:43:26 +02:00
Bond-009
2521a13d7d Merge pull request #6388 from Bond-009/minor16
Minor improvements
2021-08-04 18:40:13 +02:00
Bond_009
f1f72c3060 Minor improvements 2021-08-04 14:40:09 +02:00
Bond-009
1b8eb1aefe Merge pull request #6386 from richlander/mediabrowser-controller-livetv
Fix warnings in MediaBrowser.Controller/LiveTv
2021-08-04 13:13:34 +02:00
Rich Lander
06679eeebf Fix warnings for MediaBrowser.Controller/LiveTv 2021-08-03 21:13:49 -07:00
Bond_009
4e9fbabef2 Enable nullable for DlnaManager 2021-08-03 17:54:55 +02:00
Bond-009
008c6a843e Merge pull request #6342 from richlander/mediabrowser-controller-library 2021-08-03 17:06:25 +02:00
New Jorciks
fc5841242e Translated using Weblate (Latvian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lv/
2021-08-03 08:29:49 -04:00
Winnie
8997d7ffc4 Translated using Weblate (Spanish)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/es/
2021-08-03 08:29:49 -04:00
Max
a8c47159ea Translated using Weblate (Danish)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/da/
2021-08-03 08:29:49 -04:00
Rich Lander
3daf9e5afe Optimize Dockerfiles 2021-08-02 13:15:51 -07:00
Bond-009
0c9f824d0a Merge pull request #6375 from jellyfin/dependabot/nuget/Swashbuckle.AspNetCore.ReDoc-6.1.5
Bump Swashbuckle.AspNetCore.ReDoc from 6.1.4 to 6.1.5
2021-08-02 19:16:51 +02:00
dependabot[bot]
16ae8cd200 Bump Swashbuckle.AspNetCore.ReDoc from 6.1.4 to 6.1.5
Bumps [Swashbuckle.AspNetCore.ReDoc](https://github.com/domaindrivendev/Swashbuckle.AspNetCore) from 6.1.4 to 6.1.5.
- [Release notes](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/releases)
- [Commits](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/compare/v6.1.4...v6.1.5)

---
updated-dependencies:
- dependency-name: Swashbuckle.AspNetCore.ReDoc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-02 17:15:58 +00:00
Bond-009
21e108ee84 Merge pull request #6376 from jellyfin/dependabot/nuget/Swashbuckle.AspNetCore-6.1.5
Bump Swashbuckle.AspNetCore from 6.1.4 to 6.1.5
2021-08-02 19:15:14 +02:00
dependabot[bot]
3254b5f8cb Bump Swashbuckle.AspNetCore from 6.1.4 to 6.1.5
Bumps [Swashbuckle.AspNetCore](https://github.com/domaindrivendev/Swashbuckle.AspNetCore) from 6.1.4 to 6.1.5.
- [Release notes](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/releases)
- [Commits](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/compare/v6.1.4...v6.1.5)

---
updated-dependencies:
- dependency-name: Swashbuckle.AspNetCore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-02 12:00:57 +00:00
TheFeelTrain
9f378feb82 Translated using Weblate (Japanese)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ja/
2021-07-31 19:29:46 -04:00
Ali Amer
eadad73ee7 Translated using Weblate (Arabic)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ar/
2021-07-31 19:29:45 -04:00
Rich Lander
47da13613b Merge branch 'master' into media-provides-analysis-fixes 2021-07-30 10:44:43 -07:00
Sverre
0ee74b293d Translated using Weblate (Norwegian Bokmål)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/nb_NO/
2021-07-30 05:29:48 -04:00
Maxim Ivanov
448ce64a56 Translated using Weblate (Bulgarian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/bg/
2021-07-30 05:29:48 -04:00
Bond-009
00c90cfb21 Merge pull request #6354 from Bond-009/nullable4
Enable nullable in more files
2021-07-30 09:49:40 +02:00
Rich Lander
c07e83fdf8 Invert code and style analysis configuration (#6334)
Co-authored-by: Bond-009 <bond.009@outlook.com>
2021-07-30 09:49:28 +02:00
Bond-009
92c2d20609 Merge pull request #6355 from Bond-009/opt
EnsureLibraryFolder: Minor optimization
2021-07-27 21:46:30 +02:00
Rich Lander
e72868f72b Update AggregateFolder.cs 2021-07-26 18:13:37 -07:00
Rich Lander
a0678a9261 Update ILibraryManager.cs 2021-07-26 17:58:56 -07:00
Rich Lander
092e7c91b4 Update ILibraryManager.cs 2021-07-26 17:07:47 -07:00
Rich Lander
6a005f6a4f Update ILibraryManager.cs 2021-07-26 16:40:05 -07:00
Rich Lander
dfaf89a681 Update ILibraryManager.cs 2021-07-26 16:31:25 -07:00
Rich Lander
5110835031 Update ILibraryManager.cs 2021-07-26 16:19:50 -07:00
Rich Lander
0bb6999d59 Update ILibraryManager.cs 2021-07-26 16:02:17 -07:00
Bond_009
a13a569ca4 EnsureLibraryFolder: Minor optimization 2021-07-26 23:25:21 +02:00
Bond_009
501de7b6dc Enable nullable in more files 2021-07-26 23:02:32 +02:00
Rich Lander
3e0aab390a Merge branch 'master' into mediabrowser-controller-entities 2021-07-26 13:08:27 -07:00
Bond-009
85e705d09e Merge pull request #6352 from jellyfin/dependabot/nuget/coverlet.collector-3.1.0
Bump coverlet.collector from 3.0.3 to 3.1.0
2021-07-26 21:26:12 +02:00
dependabot[bot]
33359d45be Bump coverlet.collector from 3.0.3 to 3.1.0
Bumps [coverlet.collector](https://github.com/coverlet-coverage/coverlet) from 3.0.3 to 3.1.0.
- [Release notes](https://github.com/coverlet-coverage/coverlet/releases)
- [Commits](https://github.com/coverlet-coverage/coverlet/commits/v3.1.0)

---
updated-dependencies:
- dependency-name: coverlet.collector
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-26 12:00:45 +00:00
SaddFox
b024059f71 Translated using Weblate (Slovenian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sl/
2021-07-25 09:29:45 -04:00
Bond-009
439916f4ff Merge pull request #6336 from richlander/mediabrowser-controller-channels
Fix warning in MediaBrowser.Controllers/Channels
2021-07-25 14:57:45 +02:00
Bond-009
311774e75f Merge pull request #6338 from richlander/mediabrowser-controller-providers
Fix warnings for MediaBrowser.Controller/Providers directory
2021-07-25 14:57:14 +02:00
Bond-009
90aba79fb9 Merge pull request #6346 from richlander/mediabrowser-controller-drawing
Fix warnings in MediaBrowser.Controller/Drawing
2021-07-25 14:55:59 +02:00
Bond-009
5e2975661d Merge pull request #6344 from richlander/update-sdk 2021-07-25 14:41:26 +02:00
Claus Vium
50b41dd4e7 Merge pull request #6329 from Bond-009/restests 2021-07-25 14:21:00 +02:00
Rich Lander
9aebb86a68 Fix warnings in MediaBrowser.Controller/Drawing 2021-07-24 20:33:58 -07:00
Rich Lander
e91a2b1085 Update to later .NET SDK 2021-07-24 16:42:02 -07:00
Rich Lander
5920f68ca9 Fix warnings in MediaBrowser.Controller/Library 2021-07-24 10:58:50 -07:00
Bond-009
f3b51dd77b Update tests/Jellyfin.Model.Tests/Entities/MediaStreamTests.cs
Co-authored-by: Max Rumpf <max.rumpf1998@gmail.com>
2021-07-24 14:03:08 +02:00
Rich Lander
0ce7a15534 Fix more warnings 2021-07-23 16:36:27 -07:00
Rich Lander
a16e66615c Update MediaBrowser.Controller/Entities/AggregateFolder.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-07-23 14:19:48 -07:00
Rich Lander
32616d15f2 Update MediaBrowser.Controller/Entities/AggregateFolder.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-07-23 14:19:44 -07:00
Rich Lander
a7cc77e7fa Fix partial set of MediaBrowser.Controller/Entities warnings 2021-07-23 13:49:18 -07:00
Claus Vium
5a9bd712b3 Merge pull request #6296 from Bond-009/oscheck
Improve platform checks
2021-07-23 20:54:13 +02:00
Rich Lander
717ff4ec62 Fix warnings for MediaBrowser.Controller/Providers directory 2021-07-23 09:16:48 -07:00
Rich Lander
67efed39f2 Fix warning in m-b/channels 2021-07-22 20:37:05 -07:00
Rich Lander
927b003143 Fix remaining MediaBrowser.Providers warnings 2021-07-22 20:16:38 -07:00
Rich Lander
fb92eab69b Fix analysis issues 2021-07-22 17:33:19 -07:00
Bond_009
0512f74459 Add tests for GetResolutionText 2021-07-20 23:04:49 +02:00
Bond-009
0e2a6f8216 Merge pull request #6279 from Bond-009/tests8 2021-07-20 21:24:19 +02:00
Bond-009
c22582b5aa Merge pull request #6281 from crobibero/controller-warn-04 2021-07-20 21:24:08 +02:00
Bond-009
c817c63696 Merge pull request #6256 from MrTimscampi/better-resolution-text 2021-07-20 19:08:37 +02:00
Shin Yunho
0f0c62be68 Translated using Weblate (Korean)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ko/
2021-07-20 12:29:43 -04:00
Bond_009
ef3b651aad Improve episode parser 2021-07-20 00:25:30 +02:00
Bond-009
7d9a1269f1 Merge pull request #6325 from jellyfin/dependabot/github_actions/alex-page/github-project-automation-plus-0.8.1
Bump alex-page/github-project-automation-plus from 0.7.1 to 0.8.1
2021-07-19 20:07:01 +02:00
Joshua M. Boniface
71158dfb3f Merge pull request #6326 from crobibero/5.0.8
Update to dotnet 5.0.8
2021-07-19 13:25:41 -04:00
Bond-009
95832e4d2f Merge pull request #6320 from jellyfin/dependabot/nuget/Serilog.Sinks.Console-4.0.0
Bump Serilog.Sinks.Console from 3.1.1 to 4.0.0
2021-07-19 19:25:07 +02:00
Claus Vium
d55b152e86 Merge pull request #6297 from Bond-009/parser
Fix episode parser
2021-07-19 17:46:40 +02:00
Cody Robibero
de12ee5dba Update to dotnet 5.0.8 2021-07-19 08:08:02 -06:00
dependabot[bot]
dddf216ec8 Bump alex-page/github-project-automation-plus from 0.7.1 to 0.8.1
Bumps [alex-page/github-project-automation-plus](https://github.com/alex-page/github-project-automation-plus) from 0.7.1 to 0.8.1.
- [Release notes](https://github.com/alex-page/github-project-automation-plus/releases)
- [Commits](https://github.com/alex-page/github-project-automation-plus/compare/v0.7.1...v0.8.1)

---
updated-dependencies:
- dependency-name: alex-page/github-project-automation-plus
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 12:03:27 +00:00
dependabot[bot]
cd541f105c Bump Serilog.Sinks.Console from 3.1.1 to 4.0.0
Bumps [Serilog.Sinks.Console](https://github.com/serilog/serilog-sinks-console) from 3.1.1 to 4.0.0.
- [Release notes](https://github.com/serilog/serilog-sinks-console/releases)
- [Commits](https://github.com/serilog/serilog-sinks-console/compare/v3.1.1...v4.0.0)

---
updated-dependencies:
- dependency-name: Serilog.Sinks.Console
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 12:00:49 +00:00
Fawrrax
e36345b9f2 Translated using Weblate (Finnish)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fi/
2021-07-18 15:29:42 -04:00
Bond-009
ea7c7ea48c Merge pull request #5864 from DeeJayBro/return-on-error
Fix ArgumentOutOfRangeException when getting PostedPlaybackInfo
2021-07-17 20:54:07 +02:00
Jelly Don
0e8537a6a5 Translated using Weblate (Albanian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sq/
2021-07-17 11:29:43 -04:00
SaddFox
0c26fdac37 Translated using Weblate (Slovenian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sl/
2021-07-17 11:29:43 -04:00
Joost
1dde41902a Translated using Weblate (Dutch)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/nl/
2021-07-17 11:29:43 -04:00
memnos
de9c367bc3 Translated using Weblate (Italian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/it/
2021-07-17 11:29:43 -04:00
Vorboid
eb9244746c Translated using Weblate (English (United Kingdom))
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/en_GB/
2021-07-17 11:29:43 -04:00
Albert Chaos
5ba93da8b6 Translated using Weblate (Catalan)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ca/
2021-07-17 11:29:43 -04:00
Bond-009
430b28a8f9 Merge pull request #6298 from crobibero/instantmix 2021-07-17 00:42:54 +02:00
Cody Robibero
b44f191d54 Remove obsolete attribute, clean controller name 2021-07-16 08:58:04 -06:00
Claus Vium
313e5ce1af Merge pull request #6304 from Bond-009/cleanstring
Add h265 to CleanStrings
2021-07-16 13:18:21 +02:00
DeeJayBro
0ad62e7af9 Fix ArgumentOutOfRangeException when getting PostedPlaybackInfo 2021-07-16 11:48:08 +02:00
Bond_009
b9b4f3aa85 Add h265 to CleanStrings 2021-07-15 16:20:50 +02:00
Bond_009
b202bfebce Fix episode parser 2021-07-15 16:05:57 +02:00
Bill Thornton
da1dafe4cc Merge pull request #6303 from Artiume/patch-4
update bug report to ask for hwaccel
2021-07-15 10:05:50 -04:00
artiume
8af7e5fe3a update bug report to ask for hwaccel 2021-07-15 09:50:38 -04:00
Anthony Lavado
607df7899f Merge pull request #6300 from thornbill/update-stale 2021-07-14 15:25:46 -04:00
Bill Thornton
75551f04ca Disable automatic closing of PRs 2021-07-14 14:37:48 -04:00
Oatavandi
273afe8a52 Translated using Weblate (Malayalam)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ml/
2021-07-14 04:29:44 -04:00
danielxb-ar
7f06cdc83f Translated using Weblate (Spanish (Argentina))
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/es_AR/
2021-07-14 04:29:44 -04:00
nextlooper42
74d45636b5 Translated using Weblate (Slovak)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sk/
2021-07-14 04:29:44 -04:00
jtasseroul
1d4d508f30 Translated using Weblate (French)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fr/
2021-07-14 04:29:44 -04:00
Lukáš Kucharczyk
5debcf0763 Translated using Weblate (Czech)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/cs/
2021-07-14 04:29:44 -04:00
WWWesten
39bc4bf9e3 Translated using Weblate (Kazakh)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/kk/
2021-07-14 04:29:44 -04:00
wolong gl
87ba51f6e4 Translated using Weblate (Chinese (Simplified))
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/zh_Hans/
2021-07-14 04:29:44 -04:00
WWWesten
93a6f13a3d Translated using Weblate (Russian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ru/
2021-07-14 04:29:44 -04:00
Larvitar
e977665e5d Translated using Weblate (Polish)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/pl/
2021-07-14 04:29:44 -04:00
danielxb-ar
09904857b5 Translated using Weblate (Spanish (Latin America))
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/es_419/
2021-07-14 04:29:44 -04:00
Csaba
ab85baf6eb Translated using Weblate (Hungarian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/hu/
2021-07-14 04:29:44 -04:00
Oatavandi
502c656874 Translated using Weblate (Tamil)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ta/
2021-07-14 04:29:44 -04:00
Moritz
31c65058a4 Translated using Weblate (German)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/de/
2021-07-14 04:29:43 -04:00
hoanghuy309
927ec5a363 Translated using Weblate (Vietnamese)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/vi/
2021-07-14 04:29:43 -04:00
Bond-009
db579e6eee Merge pull request #6292 from jellyfin/dependabot/nuget/prometheus-net.AspNetCore-4.2.0 2021-07-13 01:28:07 +02:00
Bond-009
62536196df Merge pull request #6295 from jellyfin/dependabot/nuget/SkiaSharp.NativeAssets.Linux-2.80.3 2021-07-13 01:27:56 +02:00
Cody Robibero
24c861c23b Remove extra endpoint 2021-07-12 17:22:01 -06:00
dependabot[bot]
00b1f96ed0 Bump prometheus-net.AspNetCore from 4.1.1 to 4.2.0
Bumps [prometheus-net.AspNetCore](https://github.com/prometheus-net/prometheus-net) from 4.1.1 to 4.2.0.
- [Release notes](https://github.com/prometheus-net/prometheus-net/releases)
- [Changelog](https://github.com/prometheus-net/prometheus-net/blob/master/History)
- [Commits](https://github.com/prometheus-net/prometheus-net/compare/v4.1.1...v4.2.0)

---
updated-dependencies:
- dependency-name: prometheus-net.AspNetCore
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-12 21:54:28 +00:00
dependabot[bot]
903628af76 Bump SkiaSharp.NativeAssets.Linux from 2.80.2 to 2.80.3
Bumps SkiaSharp.NativeAssets.Linux from 2.80.2 to 2.80.3.

---
updated-dependencies:
- dependency-name: SkiaSharp.NativeAssets.Linux
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-12 21:54:28 +00:00
Bond-009
b20977dc25 Merge pull request #6289 from Bond-009/warn33
Fix some warnings
2021-07-12 23:53:52 +02:00
Bond-009
34fba1a787 Merge pull request #6294 from jellyfin/dependabot/nuget/SkiaSharp-2.80.3 2021-07-12 23:53:29 +02:00
Bond-009
03279d711f Merge pull request #6293 from jellyfin/dependabot/nuget/prometheus-net-4.2.0
Bump prometheus-net from 4.1.1 to 4.2.0
2021-07-12 23:53:17 +02:00
Bond_009
8528e9bddb Improve platform checks 2021-07-12 20:21:51 +02:00
dependabot[bot]
26f6c5520c Bump SkiaSharp from 2.80.2 to 2.80.3
Bumps SkiaSharp from 2.80.2 to 2.80.3.

---
updated-dependencies:
- dependency-name: SkiaSharp
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-12 12:00:57 +00:00
dependabot[bot]
e757c58e86 Bump prometheus-net from 4.1.1 to 4.2.0
Bumps [prometheus-net](https://github.com/prometheus-net/prometheus-net) from 4.1.1 to 4.2.0.
- [Release notes](https://github.com/prometheus-net/prometheus-net/releases)
- [Changelog](https://github.com/prometheus-net/prometheus-net/blob/master/History)
- [Commits](https://github.com/prometheus-net/prometheus-net/compare/v4.1.1...v4.2.0)

---
updated-dependencies:
- dependency-name: prometheus-net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-12 12:00:56 +00:00
Claus Vium
951a9f39c0 Merge pull request #6240 from Bond-009/quickconnecttests
Add tests for QuickConnectManager
2021-07-12 09:39:11 +02:00
Claus Vium
b6006742fa Merge pull request #6290 from Bond-009/update2
Remove old "has update available" code
2021-07-12 09:34:34 +02:00
Bond_009
915141f196 Fix some warnings 2021-07-11 22:51:36 +02:00
Bond_009
b91c4be74c Remove old "has update available" code
This is the job of a package manager (or maybe the tray app for windows)
2021-07-11 22:42:02 +02:00
Bond_009
8b1a211081 MediaInfoControllerTests: Check Content-Length 2021-07-11 22:06:01 +02:00
Brandon Nguyen
c6bac31042 Add int values to HardwareEncodingType enum 2021-07-11 11:59:52 -07:00
Bond-009
203c46de33 Merge pull request #6283 from natedawg/master 2021-07-11 13:07:57 +02:00
natedawg
6957bc9a12 Fix spelling of artist K/DA in splitting whitelist 2021-07-10 16:26:42 -07:00
Cody Robibero
65f8d8c0cd [CA1801] Parameter is never used. Remove the parameter or use it in the method body. 2021-07-10 10:09:02 -06:00
Cody Robibero
4281722d5a Fix [SA1629] Documentation text should end with a period 2021-07-10 10:05:41 -06:00
Bond-009
61141314e8 Merge pull request #6280 from MrTimscampi/audio-exceptions
Add more artist names to the splitting whitelist
2021-07-10 17:39:06 +02:00
MrTimscampi
020c0fc4cb Add more artist names to the splitting whitelist 2021-07-10 17:09:44 +02:00
Bond_009
abbcf5e4f7 Add tests for Playback/BitrateTest endpoint 2021-07-10 15:09:56 +02:00
Bond-009
c47390914c Merge pull request #6276 from crobibero/bitrate-test 2021-07-10 15:08:47 +02:00
Bond-009
94d5d630a8 Merge pull request #6115 from Maxr1998/refactor-proberesultnormalizer
Refactor ProbeResultNormalizer
2021-07-10 14:05:16 +02:00
Cody Robibero
43b0d0fa95 Fix error message, use range parameters 2021-07-10 05:34:15 -06:00
Tim040
ff010c16aa Translated using Weblate (Dutch)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/nl/
2021-07-09 23:45:39 -04:00
aqilisk
0f57959c55 Translated using Weblate (Malay)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ms/
2021-07-09 23:45:39 -04:00
Kachelkaiser
7bf9cc6887 Translated using Weblate (German)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/de/
2021-07-09 23:45:39 -04:00
Benito Sebe
faa3ec14e9 Translated using Weblate (Galician)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/gl/
2021-07-09 23:45:39 -04:00
Rajmond Burgaj
ff1a78a82f Translated using Weblate (Albanian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sq/
2021-07-09 23:45:39 -04:00
Fabrício Jácome
f282f6f924 Translated using Weblate (Portuguese)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/pt/
2021-07-09 23:45:39 -04:00
Hannes
7a2791e904 Translated using Weblate (Dutch)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/nl/
2021-07-09 23:45:39 -04:00
Cody Robibero
e7022cc3fc Use asp validation and increase max size 2021-07-09 09:07:22 -06:00
Bond-009
d8b9f4dc2d Merge pull request #6274 from thornbill/restore-max-resolution-params
Restore max width and height params
2021-07-09 13:44:27 +02:00
Maxr1998
11a5551218 Refactor ProbeResultNormalizer
Improve code structure and readability
2021-07-09 02:06:38 +02:00
Bill Thornton
3090971feb Restore max width and height params 2021-07-08 14:53:56 -04:00
Bond-009
40c73e96a9 Merge pull request #6268 from Bond-009/redirecttest
Add test for RobotsRedirectionMiddleware
2021-07-08 16:16:04 +02:00
Brandon Nguyen
d0c5e25ec0 Use nullable enum type instead of strings 2021-07-05 16:52:52 -07:00
Bond_009
e19dce3c53 Add test for RobotsRedirectionMiddleware 2021-07-06 01:07:10 +02:00
Bond_009
5bd8ba886a Add tests for QuickConnectManager 2021-07-06 00:02:54 +02:00
Bond_009
1f99c9b90c Minor fixes 2021-07-06 00:01:33 +02:00
Bond-009
a9aeb6570b Merge pull request #6233 from Bond-009/warn32
MediaBrowser.Providers: Remove some warnings
2021-07-05 23:59:08 +02:00
MrTimscampi
a25c3d1cda Remove usage of this in GetResolutionText 2021-07-04 10:22:17 +02:00
Brandon Nguyen
df17c67f11 Use hardware encoding string over boolean 2021-07-03 15:29:07 -07:00
Brandon Nguyen
7e3c94d094 Add hardware encoding status to playback data
Resolves #6087
2021-07-03 01:12:09 -07:00
MrTimscampi
bcae195cc3 Refactor GetResolutionText
This improves GetResolutionText a little by making it easier to read and better parsing resolutions (Also adding a few new ones like PAL resolutions and 8K)

Co-authored-by: Maxr1998 <max.rumpf1998@gmail.com>
2021-07-03 01:45:24 +02:00
Bond-009
1dcf03e33c Merge pull request #6236 from Bond-009/quickconnect
Fix QuickConnect
2021-06-30 01:05:24 +02:00
Bond-009
539dc2ba82 Merge pull request #6241 from jellyfin/dependabot/nuget/Serilog.Sinks.Async-1.5.0
Bump Serilog.Sinks.Async from 1.4.0 to 1.5.0
2021-06-28 21:18:24 +02:00
Bond-009
3100ecd145 Merge pull request #6242 from jellyfin/dependabot/nuget/Serilog.Sinks.File-5.0.0
Bump Serilog.Sinks.File from 4.1.0 to 5.0.0
2021-06-28 21:17:30 +02:00
dependabot[bot]
b434b16ddc Bump Serilog.Sinks.File from 4.1.0 to 5.0.0
Bumps [Serilog.Sinks.File](https://github.com/serilog/serilog-sinks-file) from 4.1.0 to 5.0.0.
- [Release notes](https://github.com/serilog/serilog-sinks-file/releases)
- [Changelog](https://github.com/serilog/serilog-sinks-file/blob/dev/CHANGES.md)
- [Commits](https://github.com/serilog/serilog-sinks-file/compare/v4.1.0...v5.0.0)

---
updated-dependencies:
- dependency-name: Serilog.Sinks.File
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-28 12:00:58 +00:00
dependabot[bot]
d933262c2b Bump Serilog.Sinks.Async from 1.4.0 to 1.5.0
Bumps [Serilog.Sinks.Async](https://github.com/serilog/serilog-sinks-async) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/serilog/serilog-sinks-async/releases)
- [Commits](https://github.com/serilog/serilog-sinks-async/compare/v1.4.0...v1.5.0)

---
updated-dependencies:
- dependency-name: Serilog.Sinks.Async
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-28 12:00:51 +00:00
Julien Voisin
66e452422c Add a LGTM.com badge 2021-06-28 06:15:07 +00:00
Bond_009
4e80eac5f3 Fix QuickConnect 2021-06-27 18:20:37 +02:00
Bond_009
cf061f7563 MediaBrowser.Providers: Remove some warnings 2021-06-27 02:00:27 +02:00
Claus Vium
9405604913 Merge pull request #6174 from Bond-009/diacritics
Remove our own RemoveDiacritcs string extension in favor of Diacritics.Net
2021-06-22 12:25:59 +02:00
Bond_009
981cf4cfa0 Remove our own RemoveDiacritcs string extension in favor of Diacritics.Net 2021-06-22 09:48:40 +02:00
Claus Vium
a41065a248 Merge pull request #6200 from nielsvanvelzen/fix-quickconnect
Refactor Quick Connect
2021-06-22 09:43:14 +02:00
Niels van Velzen
7d46ca9317 Refactor Quick Connect 2021-06-22 09:13:14 +02:00
Claus Vium
f50bdb0f32 Merge pull request #6204 from Bond-009/extensions 2021-06-22 07:38:08 +02:00
Bond_009
db716bde95 Jellyfin.Extensions: Enable analyzers for release mode 2021-06-22 00:01:27 +02:00
Joshua M. Boniface
026d8d28b7 Merge pull request #6210 from bellegarde-c/master
debian: Add maxcpucount option to override_dh_auto_build. Fix #5234
2021-06-21 17:08:39 -04:00
Cédric Bellegarde
46665168a7 debian: Add maxcpucount option to override_dh_auto_build. Fix #5234 2021-06-21 11:39:51 +02:00
Claus Vium
96b2887a15 Merge pull request #6208 from h1dden-da3m0n/ci/no-automation-in-forks 2021-06-21 08:49:37 +02:00
h1dden-da3m0n
44b54a2637 disable project automation in forks
these workflows always fail in forks due to missing tokens etc.
2021-06-20 19:42:52 +02:00
Bond_009
6f8ccab788 Move non-jellyfin extensions to separate project 2021-06-19 18:04:46 +02:00
Bond-009
0c3dcdf77b Merge pull request #6197 from MrTimscampi/sub-delivery-docs
Document SubtitleDeliveryMethod
2021-06-19 00:42:54 +02:00
MrTimscampi
22efb69e92 Document SubtitleDeliveryMethod 2021-06-18 18:26:14 +02:00
Joshua M. Boniface
c791c3a215 Merge pull request #6191 from crobibero/5.0.7
Update to dotnet 5.0.7
2021-06-18 11:29:55 -04:00
Bond-009
004c53a5a5 Merge pull request #6180 from crobibero/test-controller
Ignore Test Controllers
2021-06-18 11:44:45 +02:00
Claus Vium
cd36b8067f Merge pull request #5988 from Bond-009/fuzz
Add fuzzing infrastructure
2021-06-14 19:30:05 +02:00
crobibero
e021a0e9ce Update to dotnet 5.0.7 2021-06-14 06:44:55 -06:00
Bond-009
aaa9cc604f Merge pull request #6176 from nielsvanvelzen/userid-required
Require userId in getItems and getTrailers endpoints
2021-06-13 15:06:30 +02:00
crobibero
d32bbf181a Ignore all test controllers 2021-06-13 06:32:28 -06:00
Bond-009
04daf0ff49 Merge pull request #6175 from nielsvanvelzen/crobibero-is-stupid
Fix routeMediaSourceId route parameter in SubtitleController GetSubtitle
2021-06-12 17:02:33 +02:00
Niels van Velzen
226abde3f7 Change userId to required in operations that would otherwise throw exceptions 2021-06-12 16:19:34 +02:00
Niels van Velzen
0a0e10e854 Fix routeMediaSourceId route parameter in SubtitleController GetSubtitle 2021-06-12 15:38:13 +02:00
Claus Vium
93dbbfea03 Merge pull request #6173 from Bond-009/tests5
Add test for ReadOnlySpan.Count extension
2021-06-12 08:08:46 +02:00
Bond-009
83e492b72b Merge pull request #5384 from Larvitar/season-metadata-fix 2021-06-12 00:58:58 +02:00
Bond_009
5fb72951a0 Add test for ReadOnlySpan.Count extension 2021-06-12 00:56:09 +02:00
Claus Vium
8daa679a26 Update MediaBrowser.Providers/Manager/MetadataService.cs 2021-06-12 00:22:55 +02:00
Claus Vium
cb77f8ee28 Merge pull request #6172 from Bond-009/nullable6
Remove useless nullable directives
2021-06-12 00:22:30 +02:00
Bond-009
cfad97ff28 Merge pull request #6096 from cvium/saving_private_ram 2021-06-12 00:20:54 +02:00
cvium
66de842896 Use stackalloc in Format3DParser.Parse 2021-06-12 00:16:33 +02:00
Bond_009
383c2d7374 Remove useless nullable directives 2021-06-11 23:36:10 +02:00
Stan
adf406b182 Fix playback of complex BluRay ISOs (#6166) 2021-06-10 20:07:28 +02:00
Claus Vium
d366fd3fd7 Merge pull request #6165 from Bond-009/tests4
Fix duplicate keys causing an exception
2021-06-09 10:23:29 +02:00
Bond_009
06401ffa0d Fix duplicate keys causing an exception 2021-06-09 09:59:30 +02:00
Bond_009
f7392394fd Add fuzzing infra 2021-06-08 22:22:32 +02:00
Claus Vium
b986cb57b7 Merge pull request #6163 from Bond-009/tests3
Fix index out of range and add reg tests
2021-06-08 15:53:34 +02:00
Bond_009
2fc14375f8 Fix index out of range and add reg tests 2021-06-08 15:35:49 +02:00
Claus Vium
ed2f08d05f Merge pull request #6156 from Bond-009/minor14
Minor fixes
2021-06-07 23:09:50 +02:00
Claus Vium
93387ba235 Merge pull request #5990 from BaronGreenback/UrlDecoding 2021-06-07 23:07:59 +02:00
Claus Vium
19a1889906 Merge pull request #6162 from crobibero/no-base-redirect
Redirect to default if root is requested
2021-06-07 23:06:33 +02:00
BaronGreenback
147612f59b Update Jellyfin.Server/Middleware/UrlDecodeQueryFeature.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-06-07 16:22:37 +01:00
BaronGreenback
37326a8099 Update Jellyfin.Server/Middleware/UrlDecodeQueryFeature.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-06-07 16:22:28 +01:00
BaronGreenback
ada052fcb1 Update Jellyfin.Server/Middleware/UrlDecodeQueryFeature.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-06-07 16:22:17 +01:00
BaronGreenback
c1fa7cbbf8 Update Jellyfin.Server/Middleware/UrlDecodeQueryFeature.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-06-07 16:22:11 +01:00
BaronGreenback
371f8629b1 Update Jellyfin.Server/Middleware/UrlDecodeQueryFeature.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-06-07 16:21:47 +01:00
BaronGreenback
133ce65e28 Update tests/Jellyfin.Server.Integration.Tests/Controllers/EncoderController.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-06-07 16:21:30 +01:00
BaronGreenback
e71c10df46 Update tests/Jellyfin.Server.Integration.Tests/Controllers/EncoderController.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-06-07 16:21:22 +01:00
BaronGreenback
e1a0b5d2a1 Update Jellyfin.Server/Middleware/UrlDecodeQueryFeature.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-06-07 16:21:15 +01:00
BaronGreenback
cc2166550f Update Jellyfin.Server/Middleware/QueryStringDecodingMiddleware.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-06-07 16:20:44 +01:00
BaronGreenback
b59e81dcdf Update Jellyfin.Server/Middleware/QueryStringDecodingMiddleware.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-06-07 16:20:37 +01:00
Joshua M. Boniface
cee8b87330 Merge pull request #6137 from ferferga/actions
Refactor Github Actions
2021-06-07 10:17:11 -04:00
crobibero
dfc776e451 Redirect to default if root is requested 2021-06-07 07:47:49 -06:00
Bond-009
2b5762fc68 Merge pull request #6160 from jellyfin/dependabot/nuget/sharpcompress-0.28.3
Bump sharpcompress from 0.28.2 to 0.28.3
2021-06-07 15:30:19 +02:00
dependabot[bot]
2245c6c43e Bump sharpcompress from 0.28.2 to 0.28.3
Bumps [sharpcompress](https://github.com/adamhathcock/sharpcompress) from 0.28.2 to 0.28.3.
- [Release notes](https://github.com/adamhathcock/sharpcompress/releases)
- [Commits](https://github.com/adamhathcock/sharpcompress/compare/0.28.2...0.28.3)

---
updated-dependencies:
- dependency-name: sharpcompress
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-07 13:27:11 +00:00
Bond-009
5075c04d23 Merge pull request #6161 from jellyfin/dependabot/nuget/SQLitePCL.pretty.netstandard-3.1.0 2021-06-07 15:26:12 +02:00
dependabot[bot]
e81eb2f065 Bump SQLitePCL.pretty.netstandard from 3.0.1 to 3.1.0
Bumps [SQLitePCL.pretty.netstandard](https://github.com/jellyfin/SQLitePCL.pretty.netstandard) from 3.0.1 to 3.1.0.
- [Release notes](https://github.com/jellyfin/SQLitePCL.pretty.netstandard/releases)
- [Commits](https://github.com/jellyfin/SQLitePCL.pretty.netstandard/commits)

---
updated-dependencies:
- dependency-name: SQLitePCL.pretty.netstandard
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-07 12:00:45 +00:00
Claus Vium
f17d43c564 Merge pull request #6071 from BaronGreenback/DLNAFolderFixPart1
Make DLNA folders to work as expected.
2021-06-07 09:55:58 +02:00
Claus Vium
9963d0ce5e Merge pull request #5803 from crobibero/healthy-base-url 2021-06-07 09:54:44 +02:00
Claus Vium
1c6bf16d15 Merge pull request #6150 from Bond-009/proptest 2021-06-07 09:46:46 +02:00
Claus Vium
b8f5a14384 Merge pull request #6117 from LinFor/pr_originaltitle_in_lookupinfo
Add OriginalTitle to ItemLookupInfo
2021-06-07 09:37:49 +02:00
Bond-009
ce434ebc7a Add comment 2021-06-06 19:30:43 +02:00
Bond_009
c78457e6d3 Minor fixes 2021-06-06 18:11:51 +02:00
Cody Robibero
d461e3912a Remove warninigs from MediaBrowser.Controller (Part 3) (#6078)
Co-authored-by: Bond-009 <bond.009@outlook.com>
2021-06-06 17:16:41 +02:00
cvium
9111730a0a More review 2021-06-05 20:16:04 +02:00
Bond_009
915855e422 Add property based testing 2021-06-05 13:32:22 +02:00
Cody Robibero
9154f20b34 Don't dispose managed CancellationTokenSource (#6139) 2021-06-04 14:36:58 +02:00
Joshua M. Boniface
b060d9d0f1 Merge pull request #6131 from BaronGreenback/Fix_NetworkFlooding
Fix network flooding issue
2021-06-02 22:07:58 -04:00
Bond-009
1e1e9dbb58 Merge pull request #6135 from jellyfin/dependabot/nuget/Microsoft.NET.Test.Sdk-16.10.0
Bump Microsoft.NET.Test.Sdk from 16.9.4 to 16.10.0
2021-06-01 22:53:14 +02:00
Fernando Fernández
854a12b312 Refactor Github Actions 2021-05-31 22:44:59 +02:00
cvium
cfba7daa50 revert test change 2021-05-31 14:27:26 +02:00
dependabot[bot]
38ebd6147a Bump Microsoft.NET.Test.Sdk from 16.9.4 to 16.10.0
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.9.4 to 16.10.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.9.4...v16.10.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-31 12:01:11 +00:00
cvium
0835b26889 review 2021-05-31 13:55:54 +02:00
Joshua M. Boniface
80875e2573 Merge pull request #6133 from ferferga/pull_request_target 2021-05-30 18:59:27 -04:00
Fernando Fernández
d9bd162739 Don't trigger workflows in unnecessary events and always use jellyfin-bot 2021-05-31 00:40:02 +02:00
Fernando Fernández
a29ee991a4 Use pull_request_target instead of pull_request 2021-05-31 00:35:41 +02:00
Joshua M. Boniface
499dee0100 Add workflow for checking stable backports (#6056)
Co-authored-by: h1dden-da3m0n <33120068+h1dden-da3m0n@users.noreply.github.com>
2021-05-30 13:50:50 -04:00
BaronGreenback
40a43f9485 remove link between ssdp and upnp 2021-05-30 15:43:16 +01:00
Bond-009
9712fa85c4 Merge pull request #6121 from Bond-009/warn52
Fix some warnings
2021-05-30 10:11:05 +02:00
Mariusz Chryc
d44025c620 Clear episode and season provider IDs during ApplySearchResult 2021-05-29 10:56:38 +02:00
Claus Vium
3b5214e595 Update Emby.Naming/Video/VideoListResolver.cs
Co-authored-by: Bond-009 <bond.009@outlook.com>
2021-05-28 19:01:29 +02:00
Claus Vium
2d5ed7cb95 Apply suggestions from code review
Co-authored-by: Bond-009 <bond.009@outlook.com>
2021-05-28 19:01:08 +02:00
Bond_009
0bc0601442 Fix some warnings 2021-05-28 14:33:54 +02:00
crobibero
9595aa258e Simplify BaseUrlRedirectionMiddleware 2021-05-27 06:31:00 -06:00
crobibero
01e8ff8ddf Merge remote-tracking branch 'upstream/master' into healthy-base-url 2021-05-27 06:07:57 -06:00
Bond-009
71c98d2f81 Merge pull request #6116 from Maxr1998/contribs
Fix broken link in CONTRIBUTORS and add myself
2021-05-27 13:12:53 +02:00
PingWin
05c241da78 Add OriginalTitle to ItemLookupInfo 2021-05-27 10:36:56 +00:00
Maxr1998
2c161fc4f1 Fix broken link in CONTRIBUTORS and add myself 2021-05-27 12:12:44 +02:00
Claus Vium
b12f509de3 Merge pull request #5696 from Maxr1998/fix-music-video-metadata-probing 2021-05-27 10:20:22 +02:00
Claus Vium
6b9251fa10 Merge pull request #6102 from LinFor/pr_dont_prefer_omdb_rating
Don't prefer OMDB rating over all other providers
2021-05-27 08:28:16 +02:00
Claus Vium
6080093b51 Merge pull request #6094 from crobibero/album-artist-sort
Add sorting to /Artists/AlbumArtists
2021-05-27 07:23:34 +02:00
Claus Vium
61346dd2e2 Merge pull request #5828 from jackrvan/issue-5813
Add NextUpCutoffDate to NextUpQuery
2021-05-27 07:22:06 +02:00
Jack
accb974605 Add optional back 2021-05-26 22:49:53 -04:00
Jack
e3ff473bd4 Review notes to set value to Datetime min value instead of null 2021-05-25 20:46:29 -04:00
PingWin
7cba148a30 Don't prefer OMDB rating over all other providers 2021-05-25 14:38:02 +00:00
David Ullmer
e33e3ba610 Make localizationManager local instead of field 2021-05-25 12:33:55 +02:00
Claus Vium
8a58d552a6 Update tests/Jellyfin.Api.Tests/Jellyfin.Api.Tests.csproj 2021-05-25 00:35:16 +02: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
Claus Vium
ffe2770388 Merge pull request #6043 from peterspenler/feature/chromecast-aac-handling
Reorder requested audio channels checks
2021-05-24 19:24:40 +02:00
Claus Vium
de80ce93db Merge pull request #6031 from ferferga/sql-optimization
Run SQLite query planner optimization at shutdown/restart
2021-05-24 13:50:34 +02:00
Fernando Fernández
6db229af5d Address review comments 2021-05-24 10:48:01 +02:00
Fernando Fernández
3b822116ed Create scheduled task for database optimization 2021-05-24 10:45:21 +02:00
Fernando Fernández
69baa9c467 Run SQLite query planner optimization at shutdown/restart 2021-05-24 10:45:21 +02:00
Claus Vium
74ba079c5c Merge pull request #5886 from Artiume/patch-3
Request all the logs
2021-05-24 08:53:29 +02:00
Claus Vium
9f2e8063ec Merge pull request #5997 from JKI12/master
Fixes for Book Progress
2021-05-24 08:52:38 +02:00
Claus Vium
1594385497 Merge pull request #6038 from crobibero/delete-existing-sessions
Don't logout if deviceId is null
2021-05-24 08:43:44 +02:00
Claus Vium
45e27a3bc4 Merge pull request #6075 from MrTimscampi/codec-tag-hdr
Properly detect Dolby Vision files derived from AV1, AVC and HEVC
2021-05-24 08:27:22 +02:00
cvium
1580bf5469 Fix property instantiation order 2021-05-24 08:03:24 +02:00
cvium
42a2cc1747 Remove some unnecessary allocations 2021-05-24 00:30:41 +02:00
crobibero
e01ce826e0 Allow sorting for AlbumArtist 2021-05-23 08:38:05 -06:00
Bond-009
db9d3b8653 Merge pull request #6090 from cvium/bump_sqlitepclpretty
Bump SQLitePCL.pretty.netstandard to 3.0.1
2021-05-21 23:16:30 +02:00
cvium
3b59064f97 Bump SQLitePCL.pretty.netstandard to 3.0.1 2021-05-21 19:35:00 +02:00
Marius Lindvall
19e2e0b7b8 Translated using Weblate (Norwegian Nynorsk)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/nn/
2021-05-21 08:31:01 -04:00
TokieSan
d6ab9ab328 Translated using Weblate (Arabic)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ar/
2021-05-21 08:31:01 -04:00
Bond-009
0a30d8dd98 Merge pull request #6086 from Bond-009/deadcode
Remove dead code
2021-05-21 13:52:37 +02:00
Bond_009
9b8eb1ba53 Remove dead code 2021-05-21 13:43:49 +02:00
Bond-009
8046143158 Merge pull request #6084 from Bond-009/nullable5
Enable nullable reference types for MediaBrowser.MediaEncoding
2021-05-21 13:05:13 +02:00
Bond-009
d61530eb4b Merge pull request #6083 from Bond-009/nullable4
Enable nullable reference types for Emby.Server.Implementations
2021-05-21 13:05:03 +02:00
Bond-009
a937a854f2 Merge pull request #6013 from Bond-009/minor13 2021-05-21 01:29:36 +02:00
Bond-009
95b909546d Merge pull request #6033 from Ullmie02/tmdb-person-language 2021-05-20 22:50:42 +02:00
Bond_009
7e8428e588 Enable nullable reference types for Emby.Server.Implementations 2021-05-20 22:48:53 +02:00
Bond-009
a7b7ff000b Merge branch 'master' into tmdb-person-language 2021-05-20 22:46:40 +02:00
Bond-009
e8790bfa96 Merge pull request #6054 from cvium/allocationz_2_extreme_db_plsdonthurtme 2021-05-20 22:40:25 +02:00
Bond_009
26d7fc8280 Enable nullable reference types for MediaBrowser.MediaEncoding.Subtitles 2021-05-20 22:10:19 +02:00
Sanaf Raw
c6ca722e57 Translated using Weblate (Bengali)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/bn/
2021-05-19 16:30:58 -04:00
cvium
e0f793799a Fix build 2021-05-19 19:52:45 +02:00
cvium
7e6a45c402 Review changes 2021-05-19 19:33:24 +02:00
cvium
1027792b16 Review changes 2021-05-19 08:51:46 +02:00
Bond-009
8d2e5ef8c6 Merge pull request #6042 from crobibero/mbc-warn-2 2021-05-18 21:21:26 +02:00
David Ullmer
ee7a95e088 Move GetMetadataLanguage 2021-05-18 13:44:38 +02:00
Bond-009
19e9bef256 Merge pull request #6074 from Bond-009/nullablequery
Enable nullable for InternalItemsQuery
2021-05-18 13:23:01 +02:00
David Ullmer
6353966abd Fix cache key 2021-05-18 13:17:34 +02:00
MrTimscampi
8407c3d558 Properly detect Dolby Vision files derived from AV1, AVC and HEVC 2021-05-18 12:37:00 +02:00
Bond_009
2b321d8b89 Enable nullable for InternalItemsQuery 2021-05-18 12:23:26 +02:00
Bond-009
44087da17a Merge pull request #6072 from crobibero/dotnet-5.0.6 2021-05-18 07:52:44 +02:00
Jack
7a17de84d9 Add optional to nextUpDateCutoff help text 2021-05-17 21:35:58 -04:00
crobibero
be17028e22 Remove erroneous newline 2021-05-17 18:34:44 -06:00
Joshua M. Boniface
24ddcd5955 Merge pull request #6047 from crobibero/dotnet-5.0.6
Update to Dotnet 5.0.6
2021-05-17 19:56:14 -04:00
BaronGreenback
48bb338352 Enable child items to be returned if a musicAlbum 2021-05-17 23:34:50 +01:00
Bond-009
c64bdbb4ff Merge pull request #6051 from Bond-009/tests7
Add tests for Recordinghelper
2021-05-18 00:05:33 +02:00
siankatabg
0cb69e28b9 Translated using Weblate (Bulgarian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/bg/
2021-05-17 12:13:49 -04:00
David Ullmer
96e05e5b66 Add tests for NoralizeLanguage 2021-05-17 12:55:27 +02:00
Anthony Lavado
92b606d7c0 Merge pull request #6037 from ferferga/pat_token 2021-05-16 14:38:11 -04:00
cvium
81ac11828b Fix ArrayIndexOutOfBounds 2021-05-16 20:16:47 +02:00
cvium
be4aeb5c2c Rename SQL extension methods 2021-05-16 19:06:10 +02:00
Claus Vium
652909e8a5 Update Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-05-16 15:27:31 +02:00
cvium
415e8fc0f3 Forward 2021-05-16 14:54:36 +02:00
cvium
eaafbdd623 Remove some leftover junk from a project that isn't in the sln 2021-05-16 14:52:56 +02:00
cvium
1b49435a0e Reduce some allocations 2021-05-16 14:49:11 +02:00
Bond-009
9b82b37095 Merge pull request #6053 from jellyfin/cuda-fix
Fix the 'No decoder surfaces left' error on Cuda
2021-05-16 11:58:28 +00:00
nyanmisaka
ffc5aba023 Fix the 'No decoder surfaces left' error on Cuda 2021-05-16 18:40:28 +08:00
Bond-009
5acb4e9491 Merge pull request #5999 from Bond-009/legacyhdhomerun
Add support for legacy HDhomerun DUAl
2021-05-16 10:29:28 +00:00
Bond-009
f06f3450c1 Merge pull request #5307 from barronpm/using-declarations 2021-05-16 09:58:10 +00:00
Bond_009
a9f44c21eb Add tests for Recordinghelper 2021-05-16 01:24:49 +02:00
crobibero
b6dda30a33 Fix suggestions from review 2021-05-15 15:33:50 -06:00
Bond-009
ca92a9a80c Merge pull request #6050 from Bond-009/ruleset3
Fully disable stupid rules
2021-05-15 20:55:41 +00:00
BaronGreenback
53bfe0e77d Changes as requested 2021-05-15 20:24:41 +01:00
Bond_009
42be818a09 Fully disable stupid rules 2021-05-15 20:38:29 +02:00
crobibero
66b185898f Update to dotnet5.0.6 2021-05-14 17:28:36 -06:00
Fernando Fernández
73654481e2 chore: replace GH_TOKEN with JF_BOT_TOKEN 2021-05-13 18:43:28 +02:00
Patrick Barron
81992ef205 Fix build 2021-05-13 10:47:00 -04:00
peterspenler
3c981cf41f Reorder requested audio channels checks 2021-05-13 09:55:31 -04:00
crobibero
6bcbc2b88a Reduce warnings in MediaBrowser.Controller 2021-05-13 07:33:11 -06:00
Haziq Rohaizan
88a7875a27 Translated using Weblate (Malay)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ms/
2021-05-13 04:29:07 -04:00
archon eleven
abbdaa997e Translated using Weblate (Malay)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ms/
2021-05-13 04:29:07 -04:00
Benjamin Vraspillai
59c4170966 Translated using Weblate (Norwegian Nynorsk)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/nn/
2021-05-13 04:29:07 -04:00
crobibero
f53aa55bdb Don't logout if deviceId is null. 2021-05-12 13:32:54 -06:00
BaronGreenback
d0bfb56d2e changed to slice. 2021-05-12 16:19:08 +01:00
David Ullmer
c584d36fd4 Fix Tmdb person language 2021-05-12 14:57:58 +02:00
BaronGreenback
85ecea7722 corrected tests 2021-05-11 21:45:15 +01:00
Joshua M. Boniface
6f3bd59aac Merge pull request #5995 from tuky/patch-1
Respect configured JELLYFIN_USER in Debian's postinst
2021-05-11 09:20:06 -04:00
Bond-009
50f617357b Merge pull request #5929 from crobibero/sort 2021-05-11 12:41:25 +00:00
dkanada
138c564e8f Merge pull request #6023 from jellyfin/dependabot/nuget/prometheus-net.DotNetRuntime-4.1.0
Bump prometheus-net.DotNetRuntime from 4.0.0 to 4.1.0
2021-05-11 21:07:00 +09:00
dkanada
708e2de44d Merge pull request #6010 from crobibero/🐄
Mooooove the label commenter config
2021-05-11 21:06:33 +09:00
dkanada
720b364aa1 Merge pull request #5975 from thornbill/fix-web-docker-build
Fix web build in dockerfiles
2021-05-11 21:05:59 +09:00
Bond-009
c10f86960d Merge pull request #6026 from Ullmie02/tv-parental-rating-fix
Use TMDb parental rating building from movies for shows
2021-05-11 11:56:34 +00:00
Cody Robibero
e3f55a0c54 Reduce warnings in MediaBrowser.Controller (#6006)
Co-authored-by: Patrick Barron <18354464+barronpm@users.noreply.github.com>
2021-05-11 13:55:46 +02:00
Haziq Rohaizan
a84e8c3884 Translated using Weblate (Malay)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ms/
2021-05-10 17:16:08 -04:00
archon eleven
c9db6a78ee Translated using Weblate (Malay)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ms/
2021-05-10 17:16:08 -04:00
archon eleven
af5b09bd97 Translated using Weblate (Malay)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ms/
2021-05-10 17:01:33 -04:00
Haziq Rohaizan
5b08bdda37 Translated using Weblate (Malay)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ms/
2021-05-10 17:00:38 -04:00
David Ullmer
cb01dd8684 Use TMDb parental rating building from movies for shows 2021-05-10 20:56:20 +02:00
David Ullmer
db2b53a4b5 Refactor LocalizationManager and remove dead method 2021-05-10 18:05:35 +02:00
David Ullmer
88bfd1bcf4 Add tests for LocalizationManager 2021-05-10 17:58:21 +02:00
Ishan Badgainya
b9163ff2aa Translated using Weblate (Hindi)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/hi/
2021-05-10 11:30:58 -04:00
Erikas
289c06adca Translated using Weblate (Lithuanian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lt/
2021-05-10 11:30:58 -04:00
thecoldicelander
a315ab4fa4 Translated using Weblate (Icelandic)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/is/
2021-05-10 11:30:58 -04:00
Benjamin Vraspillai
b0a12c0bb0 Translated using Weblate (Norwegian Bokmål)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/nb_NO/
2021-05-10 11:30:58 -04:00
Benjamin Vraspillai
0115ca9bc2 Translated using Weblate (Norwegian Nynorsk)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/nn/
2021-05-10 11:30:58 -04:00
Daniel Wykerd
b281488d36 Translated using Weblate (Afrikaans)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/af/
2021-05-10 11:30:58 -04:00
emmanuel billeaud
323bc75c13 Translated using Weblate (French)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fr/
2021-05-10 11:30:58 -04:00
Benjamin Vraspillai
ba8ff2a7bc Translated using Weblate (Norwegian Nynorsk)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/nn/
2021-05-10 11:30:58 -04:00
Dan Johansen
0668ab6721 Translated using Weblate (Danish)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/da/
2021-05-10 11:30:58 -04:00
Levi
9c0d1f676d Translated using Weblate (Swedish)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sv/
2021-05-10 11:30:58 -04:00
Marcus Hsu
566ad0907b Translated using Weblate (Chinese (Traditional))
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/zh_Hant/
2021-05-10 11:30:58 -04:00
Lukáš Kucharczyk
d2e8df1a48 Translated using Weblate (Czech)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/cs/
2021-05-10 11:30:58 -04:00
WWWesten
7af45a8f01 Translated using Weblate (Kazakh)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/kk/
2021-05-10 11:30:58 -04:00
0TTA
07ea5e2472 Translated using Weblate (Arabic)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ar/
2021-05-10 11:30:58 -04:00
a19guillermobf
85c771e64b Translated using Weblate (Galician)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/gl/
2021-05-10 11:30:58 -04:00
Oskari Lavinto
9b2a87f981 Translated using Weblate (Finnish)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fi/
2021-05-10 11:30:58 -04:00
Federico Antoniazzi
7dc721923e Translated using Weblate (Italian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/it/
2021-05-10 11:30:58 -04:00
radiusgreenhill
2bf2746231 Translated using Weblate (Thai)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/th/
2021-05-10 11:30:58 -04:00
Koos van Riemsdijk
1237a7b82a Translated using Weblate (Dutch)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/nl/
2021-05-10 11:30:58 -04:00
WWWesten
dc15cc1370 Translated using Weblate (Bengali)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/bn/
2021-05-10 11:30:58 -04:00
Robolov
061016a2a9 Translated using Weblate (French)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fr/
2021-05-10 11:30:58 -04:00
Manjot Singh
0158f74d37 Translated using Weblate (Punjabi)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/pa/
2021-05-10 11:30:58 -04:00
flackseven
b5bde8d46e Translated using Weblate (Ukrainian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/uk/
2021-05-10 11:30:58 -04:00
WWWesten
eaa102fc74 Translated using Weblate (Bengali)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/bn/
2021-05-10 11:30:58 -04:00
WWWesten
90a8cd83f4 Translated using Weblate (Norwegian Bokmål)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/nb_NO/
2021-05-10 11:30:58 -04:00
Csaba
da5ca3f769 Translated using Weblate (Hungarian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/hu/
2021-05-10 11:30:58 -04:00
WWWesten
95f25467c8 Translated using Weblate (Persian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fa/
2021-05-10 11:30:58 -04:00
millallo
55f3dd4f2c Translated using Weblate (Italian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/it/
2021-05-10 11:30:58 -04:00
Oatavandi
f56898a563 Translated using Weblate (Tamil)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ta/
2021-05-10 11:30:58 -04:00
WWWesten
2c66d36f10 Translated using Weblate (Russian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ru/
2021-05-10 11:30:58 -04:00
Csaba
c5783da4f6 Translated using Weblate (Hungarian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/hu/
2021-05-10 11:30:58 -04:00
Baptiste
c78f584a99 Translated using Weblate (French)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fr/
2021-05-10 11:30:58 -04:00
bvd13
7ebe30f0ab Translated using Weblate (Dutch)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/nl/
2021-05-10 11:30:58 -04:00
Patrick Barron
e55f35b62e Merge branch 'master' into using-declarations 2021-05-10 09:05:12 -04:00
dependabot[bot]
62a93d494b Bump prometheus-net.DotNetRuntime from 4.0.0 to 4.1.0
Bumps [prometheus-net.DotNetRuntime](https://github.com/djluck/prometheus-net.DotNetRuntime) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/djluck/prometheus-net.DotNetRuntime/releases)
- [Commits](https://github.com/djluck/prometheus-net.DotNetRuntime/compare/4.0.0...4.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-10 12:19:21 +00:00
BaronGreenback
903bf2a086 changed to use index 2021-05-08 16:00:41 +01:00
BaronGreenback
cb74a86975 Moved test 2021-05-08 13:33:47 +01:00
BaronGreenback
bd71de131c Changed to use span 2021-05-08 12:52:25 +01:00
BaronGreenback
7185de970c Merge remote-tracking branch 'upstream/master' into UrlDecoding 2021-05-08 12:22:09 +01:00
Bond_009
56ac64e70a Minor improvements
* properly dispose CancellationTokenSource
* rewrite DynamicHlsController.GetSegmentLengths
* remove dead code
2021-05-08 00:33:24 +02:00
Bond-009
d4a50be22c Merge pull request #6009 from jellyfin/nielsvanvelzen-disable-automation-ci
Disable automation CI on issues
2021-05-07 22:14:57 +02:00
crobibero
ce0e890d8d Mooooove the label commenter config 2021-05-07 13:39:38 -06:00
BaronGreenback
dca0298710 changed 2021-05-07 20:11:32 +01:00
Niels van Velzen
d21d1978a3 Disable automation CI on issues 2021-05-07 21:09:05 +02:00
BaronGreenback
8b34f76b63 Update Jellyfin.Api/Controllers/TestController.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-05-07 18:51:31 +01:00
BaronGreenback
4c8cfaa61c Update Jellyfin.Api/Controllers/TestController.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-05-07 18:51:15 +01:00
BaronGreenback
5ad8b53f5d Update Jellyfin.Api/Controllers/TestController.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-05-07 18:51:04 +01:00
BaronGreenback
5f70b4ead1 Update tests/Jellyfin.Api.Tests/Controllers/EncodedQueryStringTest.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-05-07 18:50:38 +01:00
BaronGreenback
043e69d252 Update tests/Jellyfin.Api.Tests/Controllers/EncodedQueryStringTest.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-05-07 18:49:57 +01:00
BaronGreenback
af1fe1af6f Moved into test controller. 2021-05-07 14:37:26 +01:00
Bond-009
2f0ec9a70b Merge pull request #6005 from Bond-009/nullable3
Enable nullable reference types for Emby.Dlna
2021-05-07 15:14:30 +02:00
BaronGreenback
4f5c9e9504 tests and small fix. 2021-05-07 14:02:42 +01:00
Bond_009
06caee28b7 Enable nullable reference types for Emby.Dlna 2021-05-07 14:43:50 +02:00
Bond-009
a3c9edde34 Merge pull request #6000 from Bond-009/nullable2 2021-05-07 14:09:12 +02:00
Jake King
bc017737e6 Changed condition for readbility
- Refactored check if item is not audio book or book to be more readable
2021-05-07 10:35:03 +01:00
Bond_009
4367b97a54 Fix build 2021-05-07 00:52:06 +02:00
Bond_009
fb090df0b5 Enable nullable reference types for MediaBrowser.Controller 2021-05-07 00:39:20 +02:00
Bond_009
ead4e1e977 Add support for legacy HDhomerun DUAl 2021-05-06 23:54:42 +02:00
Bond-009
a4a3f598af Merge pull request #5982 from Bond-009/nullable 2021-05-06 23:33:41 +02:00
Bond_009
4b9a64c18c Abstract JsonDelimitedArrayConverter 2021-05-06 23:16:52 +02:00
wehrstedt
ad1d9d9a23 fixed no channel icons when using tvheadend (#5996)
Co-authored-by: Cody Robibero <cody@robibe.ro>
Co-authored-by: Maximilian Wehrstedt <wehrstedt.coding@outlook.de>
2021-05-06 23:07:32 +02:00
Jake King
3cd57cb287 Fixes for Book Progress
- Ignore Books when checking for minium progress
2021-05-06 19:50:00 +01:00
Tobias Krönke
8eee32c8c2 Respect configured JELLYFIN_USER in Debian's postinst
In my setup I configured a different user. But updates keep "stealing" file permissions for my `$PROGRAMDATA $CONFIGDATA $LOGDATA $CACHEDATA` directories.
2021-05-06 18:56:13 +02:00
Bond-009
4b31c007e3 Merge pull request #4986 from Bond-009/readalllines
Use new ReadAllLines extensions
2021-05-06 17:10:41 +02:00
Bond_009
ddb04dc12b Use new ReadAllLines extensions 2021-05-06 14:12:43 +02:00
BaronGreenback
c8061f92be slight format correction. 2021-05-05 23:15:24 +01:00
BaronGreenback
dabeabc553 corrected comments 2021-05-05 23:14:05 +01:00
BaronGreenback
a7bccd4fe0 removed unneeded logger. 2021-05-05 23:09:04 +01:00
BaronGreenback
81d675990f Enable automatic url decoding 2021-05-05 22:52:39 +01:00
Bond-009
95b1cf532b Merge pull request #5985 from Bond-009/minor11 2021-05-05 19:22:01 +02:00
Bond-009
a6ee4632ce Merge pull request #5987 from Bond-009/ioob
PathExtensions: Fix index out of bounds in TryReplaceSubPath
2021-05-05 17:20:14 +02:00
Bond_009
47e7c1356c PathExtensions: Fix index out of bounds in TryReplaceSubPath
Fixes #5977
2021-05-05 16:45:04 +02:00
Bond_009
bcb4010db6 More improvements 2021-05-05 15:30:32 +02:00
Bond_009
787bcd4a83 Remove dead code 2021-05-05 14:45:08 +02:00
Bond_009
4479713e04 MediaStream: Replace string.IndexOf with string.Contains where possible 2021-05-05 14:44:53 +02:00
Bond_009
e432796f6f Minor improvements 2021-05-05 14:39:50 +02:00
Bond-009
d729a76707 Merge pull request #5934 from Bond-009/utf8
SqliteItemRepository: Parse ChannelId directly from utf-8 data
2021-05-05 14:04:20 +02:00
Bond-009
b6df851363 Merge pull request #5984 from Bond-009/container
Add regression test for ContainerProfile.ContainsContainer
2021-05-05 13:51:34 +02:00
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>
2021-05-05 13:51:14 +02:00
Bond-009
04447ed014 Merge pull request #5979 from Ullmie02/nfo-fanart
Add support for fanart aspect in thumb tag
2021-05-05 13:39:56 +02:00
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>
2021-05-05 13:37:36 +02:00
Bond_009
39931fe3ad Add regression test for ContainerProfile.ContainsContainer 2021-05-05 13:33:34 +02:00
Bond-009
18d799b22a Merge pull request #5980 from Maxr1998/fix-direct-play
Fix direct play for DirectPlayProfiles without any codecs set
2021-05-05 13:28:51 +02:00
Bond_009
91c2a57b28 Enable nullable reference types for MediaBrowser.Common 2021-05-05 12:57:01 +02:00
Maxr1998
65a9a4771a Fix direct play for DirectPlayProfiles without any codecs set
70771fdcd6 broke direct play by treating empty container/codec strings as unsupported in `ContainerProfile.ContainsContainer()`` (which is also used for video and audio codec checks). Instead, they should be treated as supported, for both the positive and negative list option.
2021-05-05 12:25:54 +02:00
David Ullmer
e57b80b8e2 Add support for fanart aspect in thumb tag 2021-05-05 10:11:31 +02:00
Bond-009
48e81e65e8 Merge pull request #5938 from cvium/allocationz 2021-05-05 09:35:30 +02:00
Bill Thornton
260782349c Fix web build in dockerfiles 2021-05-05 00:58:12 -04:00
Bill Thornton
52db719f50 Merge pull request #5963 from jellyfin/dependabot/github_actions/alex-page/github-project-automation-plus-v0.7.1
Bump alex-page/github-project-automation-plus from v0.6.0 to v0.7.1
2021-05-05 00:21:36 -04:00
Bill Thornton
f7435a605d Merge pull request #5944 from shortspider/ContinueReading
Add ResumeBook Section
2021-05-05 00:20:42 -04:00
Bill Thornton
df40828e1f Merge pull request #5941 from Maxr1998/device-profile-docs
Improve documentation for DeviceProfile
2021-05-05 00:19:49 -04:00
Bill Thornton
7fdd8df8a5 Merge pull request #5779 from joshuaboniface/issue-comments
Add label commenter workflow
2021-05-05 00:11:47 -04:00
Bill Thornton
7d8fca92f9 Merge pull request #5762 from BaronGreenback/networkTestHardening
Fix network test on dns failure
2021-05-05 00:10:11 -04:00
Bill Thornton
cd543f7e50 Merge pull request #5738 from cvium/resolve-from-path
Resolve name from episode folder
2021-05-05 00:08:40 -04:00
Bill Thornton
77f0f89e45 Merge pull request #5623 from barronpm/ef-cleanup2
EF Core Cleanup 2
2021-05-04 23:59:15 -04:00
Bill Thornton
9d02ebb577 Merge pull request #4981 from Ullmie02/nfo-ratings
Add .nfo ratings tag
2021-05-04 23:55:33 -04:00
Joshua M. Boniface
d655145867 Merge pull request #5973 from crobibero/legacy-ci-apiclient
Kill the CI
2021-05-04 21:32:08 -04:00
crobibero
08213f2368 Fully remove reference. 2021-05-04 19:30:51 -06:00
Joshua M. Boniface
a598a8071b Merge pull request #5968 from crobibero/legacy-ci-apiclient 2021-05-04 21:19:07 -04:00
Cody Robibero
08d0765623 Restore launchSettings.json 2021-05-04 19:17:16 -06:00
Joshua M. Boniface
fe0fce26e4 Merge pull request #5969 from crobibero/required-revert
Remove Required attributes
2021-05-04 21:14:23 -04:00
crobibero
1a178e8490 Remove Required attributes 2021-05-04 19:11:01 -06:00
crobibero
31cf9f4b76 Remove legacy apiclient generation 2021-05-04 18:21:08 -06:00
Maxr1998
031a5c122d Improve documentation for DeviceProfile 2021-05-05 00:58:43 +02:00
Bond-009
9d3f614527 Merge pull request #5943 from Maxr1998/device-profile-defaults 2021-05-05 00:40:32 +02:00
Maxr1998
b2bb062ced Revert shortened 'is ... or' check 2021-05-04 23:38:17 +02:00
Maxr1998
244ad5b225 Apply review feedback 2021-05-04 22:57:27 +02:00
cvium
ad3e835bcf remove redundant code 2021-05-04 19:57:03 +02:00
Bond-009
2390583b35 Merge pull request #5961 from jellyfin/dependabot/nuget/Swashbuckle.AspNetCore.ReDoc-6.1.4
Bump Swashbuckle.AspNetCore.ReDoc from 6.1.3 to 6.1.4
2021-05-04 11:16:35 +02:00
dependabot[bot]
ee92dffa82 Bump Swashbuckle.AspNetCore.ReDoc from 6.1.3 to 6.1.4
Bumps [Swashbuckle.AspNetCore.ReDoc](https://github.com/domaindrivendev/Swashbuckle.AspNetCore) from 6.1.3 to 6.1.4.
- [Release notes](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/releases)
- [Commits](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/compare/v6.1.3...v6.1.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-04 09:01:23 +00:00
Bond-009
ca5b86b1af Merge pull request #5960 from jellyfin/dependabot/nuget/Swashbuckle.AspNetCore-6.1.4
Bump Swashbuckle.AspNetCore from 6.1.3 to 6.1.4
2021-05-04 10:54:22 +02:00
cvium
c0feb3694b rename to SplitEnumerator and fix test 2021-05-03 23:51:45 +02:00
Claus Vium
b9d18f0fa7 Merge branch 'master' into allocationz 2021-05-03 22:52:31 +02:00
Bond-009
8bcffdc52e Merge pull request #5962 from jellyfin/dependabot/nuget/SQLitePCL.pretty.netstandard-2.2.0 2021-05-03 17:31:09 +02:00
dependabot[bot]
2ee33bd602 Bump alex-page/github-project-automation-plus from v0.6.0 to v0.7.1
Bumps [alex-page/github-project-automation-plus](https://github.com/alex-page/github-project-automation-plus) from v0.6.0 to v0.7.1.
- [Release notes](https://github.com/alex-page/github-project-automation-plus/releases)
- [Commits](https://github.com/alex-page/github-project-automation-plus/compare/v0.6.0...50502d399cbb98cefe7ce1f99f93f78c6756562e)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-03 12:03:25 +00:00
dependabot[bot]
9b1243cf5e Bump SQLitePCL.pretty.netstandard from 2.1.0 to 2.2.0
Bumps [SQLitePCL.pretty.netstandard](https://github.com/jellyfin/SQLitePCL.pretty.netstandard) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/jellyfin/SQLitePCL.pretty.netstandard/releases)
- [Commits](https://github.com/jellyfin/SQLitePCL.pretty.netstandard/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-03 12:00:50 +00:00
dependabot[bot]
6f722bac0f Bump Swashbuckle.AspNetCore from 6.1.3 to 6.1.4
Bumps [Swashbuckle.AspNetCore](https://github.com/domaindrivendev/Swashbuckle.AspNetCore) from 6.1.3 to 6.1.4.
- [Release notes](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/releases)
- [Commits](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/compare/v6.1.3...v6.1.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-03 12:00:39 +00:00
Bond-009
e042651c54 Merge pull request #5956 from BaronGreenback/MultipleInstanciations
Minor optimization.
2021-05-03 09:50:47 +02:00
Joshua M. Boniface
e71cd8274a Merge pull request from GHSA-rgjw-4fwc-9v96
Remove /Images/Remote API endpoint
2021-05-02 16:53:36 -04:00
Bond-009
f6d967ded6 Merge pull request #5954 from Bond-009/tests5
Add tests for SqliteItemRepository.(De)SerializeProviderIds
2021-05-02 21:18:33 +02:00
BaronGreenback
bcba501dfb minor optimization. 2021-05-02 19:25:04 +01:00
Bond-009
7eb9f579a8 Merge pull request #5955 from Bond-009/tests6
Don't run integration tests in parallel
2021-05-02 17:48:45 +02:00
Bond_009
bdd7a37794 Don't run integration tests in parallel
* Easier to debug failing tests when the logs aren't scrambled
* Static properties could cause issues
2021-05-02 13:04:35 +02:00
Bond_009
874f92e93a Add tests for SqliteItemRepository.(De)SerializeProviderIds 2021-05-02 12:45:02 +02:00
Bond-009
ea5bc90189 Merge pull request #5952 from Bond-009/tests4 2021-05-02 11:35:21 +02:00
Joshua M. Boniface
3e4c860986 Remove /Items/RemoteSearch/Image API endpoint 2021-05-02 01:22:52 -04:00
Joshua M. Boniface
dc81d576ab Remove /Images/Remote API endpoint 2021-05-02 01:20:58 -04:00
Bond-009
266913c5d8 Merge pull request #5937 from Maxr1998/videoscontroller-api-fix
Remove extraneous 'stream' parameter
2021-05-02 00:43:41 +02:00
Bond_009
8a6b9e1fb6 Add tests for SqliteItemRepository.(De)SerializeImages 2021-05-02 00:26:30 +02:00
Bond-009
9a8c08b3e7 Merge pull request #5945 from Bond-009/fix
Fix scanning
2021-05-01 17:43:12 +02:00
Bond-009
214ab0b45f Merge pull request #5946 from Bond-009/tmdbutils
TmdbUtils: Use ordinal string compare
2021-05-01 17:43:05 +02:00
Bond_009
e128b6d997 TmdbUtils: Use ordinal string compare 2021-05-01 15:59:21 +02:00
Bond_009
c608d5104d Fix scanning 2021-05-01 15:56:16 +02:00
Maxr1998
70771fdcd6 Nullability handling for device profile classes 2021-05-01 13:06:10 +02:00
cvium
716cbb0695 remove span based setproviderid 2021-04-30 23:35:29 +02:00
Bond-009
360d80c873 Merge pull request #5890 from Bond-009/filesystem
Reduce string allocations/fs lookups in resolve code
2021-04-30 20:45:43 +02:00
cvium
ba2e346d12 prevent cancellationtoken leakage 2021-04-30 15:27:07 +02:00
cvium
a6726730fc revert the last bits of the getcount experiment 2021-04-30 15:11:16 +02:00
cvium
608cba817c Reduce some allocations with the magic of spans etc. 2021-04-30 15:09:36 +02:00
Maxr1998
e90fbe90f9 Remove extraneous 'stream' parameter
The argument isn't passed to the method but causes the API generator to include an unnecessary parameter.
Also fixes some typos in the documentation comments.
2021-04-30 15:07:27 +02:00
Bond-009
13d09cbc47 Merge pull request #5911 from jellyfin/dependabot/nuget/AutoFixture.AutoMoq-4.17.0
Bump AutoFixture.AutoMoq from 4.16.0 to 4.17.0
2021-04-30 12:47:42 +02:00
dependabot[bot]
182117d0a7 Bump AutoFixture.AutoMoq from 4.16.0 to 4.17.0
Bumps [AutoFixture.AutoMoq](https://github.com/AutoFixture/AutoFixture) from 4.16.0 to 4.17.0.
- [Release notes](https://github.com/AutoFixture/AutoFixture/releases)
- [Commits](https://github.com/AutoFixture/AutoFixture/compare/v4.16.0...v4.17.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-30 08:47:38 +00:00
Bond-009
a4837475d3 Merge pull request #5913 from jellyfin/dependabot/nuget/AutoFixture.Xunit2-4.17.0
Bump AutoFixture.Xunit2 from 4.16.0 to 4.17.0
2021-04-30 10:32:26 +02:00
Nathan Mascitelli
bdab8d1edb Add ResumeBook section 2021-04-29 22:35:57 -04:00
Bond-009
eeb5d4bd1e Merge pull request #5842 from BaronGreenback/optimization
Code Clean up: Group Methods
2021-04-29 21:14:57 +02:00
Bond-009
78e66325fd Merge pull request #5891 from Bond-009/filesystem2 2021-04-29 21:14:14 +02:00
Bond-009
7195d3e42f Merge pull request #5893 from Bond-009/db
SqliteItemRepository: remove redundant operations
2021-04-29 21:13:24 +02:00
Bond_009
34313ef216 SqliteItemRepository: Parse ChannelId directly from utf-8 data 2021-04-29 16:23:29 +02:00
Bond-009
dcc2df75ec Merge pull request #5903 from iwalton3/auto-leave-syncplay
Leave SyncPlay group on session disconnect.
2021-04-29 14:19:07 +02:00
Cody Robibero
69e91c33d8 Update Jellyfin.Api/Controllers/GenresController.cs 2021-04-29 04:10:26 -06:00
crobibero
d27ca993a5 Add ability to sort on Genre, MusicGenre, Artist 2021-04-28 18:33:30 -06:00
dependabot[bot]
c1563d9303 Bump AutoFixture.Xunit2 from 4.16.0 to 4.17.0
Bumps [AutoFixture.Xunit2](https://github.com/AutoFixture/AutoFixture) from 4.16.0 to 4.17.0.
- [Release notes](https://github.com/AutoFixture/AutoFixture/releases)
- [Commits](https://github.com/AutoFixture/AutoFixture/compare/v4.16.0...v4.17.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-27 13:35:13 +00:00
Bond-009
adfc03ac9d Merge pull request #5651 from jellyfin/dependabot/nuget/prometheus-net.DotNetRuntime-4.0.0
Bump prometheus-net.DotNetRuntime from 3.4.1 to 4.0.0
2021-04-27 15:34:38 +02:00
Bond-009
bca06cb1d7 Merge pull request #5912 from jellyfin/dependabot/nuget/AutoFixture-4.17.0
Bump AutoFixture from 4.16.0 to 4.17.0
2021-04-27 15:34:26 +02:00
Bond-009
b95ae84319 Merge pull request #5915 from jellyfin/dependabot/nuget/Swashbuckle.AspNetCore.ReDoc-6.1.3
Bump Swashbuckle.AspNetCore.ReDoc from 6.0.7 to 6.1.3
2021-04-26 23:57:49 +02:00
dependabot[bot]
a3cb8dbc9d Bump Swashbuckle.AspNetCore.ReDoc from 6.0.7 to 6.1.3
Bumps [Swashbuckle.AspNetCore.ReDoc](https://github.com/domaindrivendev/Swashbuckle.AspNetCore) from 6.0.7 to 6.1.3.
- [Release notes](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/releases)
- [Commits](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/compare/v6.0.7...v6.1.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-26 21:47:14 +00:00
Bond-009
1c4e7f6e10 Merge pull request #5917 from jellyfin/dependabot/github_actions/alex-page/github-project-automation-plus-v0.6.0
Bump alex-page/github-project-automation-plus from v0.5.1 to v0.6.0
2021-04-26 23:46:27 +02:00
Bond-009
ad3fc093b1 Merge pull request #5914 from jellyfin/dependabot/nuget/Swashbuckle.AspNetCore-6.1.3
Bump Swashbuckle.AspNetCore from 6.0.7 to 6.1.3
2021-04-26 23:46:09 +02:00
dependabot[bot]
47c54166e1 Bump prometheus-net.DotNetRuntime from 3.4.1 to 4.0.0
Bumps [prometheus-net.DotNetRuntime](https://github.com/djluck/prometheus-net.DotNetRuntime) from 3.4.1 to 4.0.0.
- [Release notes](https://github.com/djluck/prometheus-net.DotNetRuntime/releases)
- [Commits](https://github.com/djluck/prometheus-net.DotNetRuntime/compare/3.4.1...4.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-26 14:43:14 +00:00
Bond-009
b54f799121 Merge pull request #5916 from jellyfin/dependabot/nuget/sharpcompress-0.28.2
Bump sharpcompress from 0.28.1 to 0.28.2
2021-04-26 16:42:27 +02:00
dependabot[bot]
e409d89138 Bump alex-page/github-project-automation-plus from v0.5.1 to v0.6.0
Bumps [alex-page/github-project-automation-plus](https://github.com/alex-page/github-project-automation-plus) from v0.5.1 to v0.6.0.
- [Release notes](https://github.com/alex-page/github-project-automation-plus/releases)
- [Commits](https://github.com/alex-page/github-project-automation-plus/compare/v0.5.1...4230e39aec629f1b622666350cdbdf29ff149aca)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-26 12:03:24 +00:00
dependabot[bot]
24a05bc9f8 Bump sharpcompress from 0.28.1 to 0.28.2
Bumps [sharpcompress](https://github.com/adamhathcock/sharpcompress) from 0.28.1 to 0.28.2.
- [Release notes](https://github.com/adamhathcock/sharpcompress/releases)
- [Commits](https://github.com/adamhathcock/sharpcompress/compare/0.28.1...0.28.2)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-26 12:00:57 +00:00
dependabot[bot]
d5037a8988 Bump Swashbuckle.AspNetCore from 6.0.7 to 6.1.3
Bumps [Swashbuckle.AspNetCore](https://github.com/domaindrivendev/Swashbuckle.AspNetCore) from 6.0.7 to 6.1.3.
- [Release notes](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/releases)
- [Commits](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/compare/v6.0.7...v6.1.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-26 12:00:48 +00:00
dependabot[bot]
eee3b385da Bump AutoFixture from 4.16.0 to 4.17.0
Bumps [AutoFixture](https://github.com/AutoFixture/AutoFixture) from 4.16.0 to 4.17.0.
- [Release notes](https://github.com/AutoFixture/AutoFixture/releases)
- [Commits](https://github.com/AutoFixture/AutoFixture/compare/v4.16.0...v4.17.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-26 12:00:42 +00:00
Bond-009
5df87b3e0d Merge pull request #5904 from cvium/fix-updatepeople-questionmark
add UpdatePeopleAsync and add people to both tables
2021-04-25 18:53:28 +02:00
Bond-009
f4a59c92e6 Merge pull request #5826 from BaronGreenback/ssdpFix
PlayTo Fix: Use external ip not internal interface
2021-04-25 18:51:11 +02:00
Claus Vium
12496677bd Merge pull request #5861 from BaronGreenback/ProfileMatch
Change profile matching to match what the web interface says.
2021-04-25 17:27:32 +02:00
cvium
77261a8445 add UpdatePeopleAsync and add people to both tables 2021-04-24 20:22:23 +02:00
Ian Walton
e4691d45f5 Leave SyncPlay group on session disconnect. 2021-04-24 11:32:34 -04:00
Bond-009
224c48821e Merge pull request #5887 from Bond-009/perf
Improve perf of db save and query
2021-04-24 15:57:51 +02:00
Bond-009
1a54338e38 Merge pull request #5892 from crobibero/password-obsolete 2021-04-23 10:17:49 +02:00
Bond-009
184e05aeb6 Merge pull request #5681 from BaronGreenback/ContentFeatureOptimization
Various DLNA Optimizations
2021-04-22 16:45:36 +02:00
Bond-009
d83b2b1b2e Merge pull request #5889 from Bond-009/di
Remove unused/duplicate services
2021-04-22 16:36:39 +02:00
Bond_009
a02e37daa0 SqliteItemRepository: remove redundant operations
removed:
* nameof -> FullName lookup
* IndexOf before Replace
* Enum.GetNames -> Enum.Parse roundtrip
2021-04-22 16:05:12 +02:00
crobibero
940c30081e Mark PasswordSha1 as obsolete 2021-04-22 06:49:54 -06:00
crobibero
856819e58f Don't use obsolete Password property 2021-04-22 06:49:42 -06:00
Bond_009
33327aa1a9 Improve fast path of ManagedFileSystem.GetValidFilename
|                      Method |          Data |        Mean |     Error |    StdDev |      Median |  Gen 0 | Gen 1 | Gen 2 | Allocated |
|---------------------------- |-------------- |------------:|----------:|----------:|------------:|-------:|------:|------:|----------:|
|       GetValidFilenameBench |    AC/DCKD/A |    52.29 ns |  0.537 ns |  0.448 ns |    52.35 ns | 0.0255 |     - |     - |      80 B |
|    GetValidFilenameOldBench |    AC/DCKD/A |    86.68 ns |  1.205 ns |  1.127 ns |    86.33 ns | 0.0587 |     - |     - |     184 B |
|    GetValidFilenameWinBench |    AC/DCKD/A |   448.55 ns |  1.228 ns |  1.088 ns |   448.33 ns | 0.0505 |     - |     - |     160 B |
| GetValidFilenameOldWinBench |    AC/DCKD/A |   865.21 ns |  5.734 ns |  5.083 ns |   866.60 ns | 0.0839 |     - |     - |     264 B |
|       GetValidFilenameBench | ValidFileName |    16.00 ns |  0.234 ns |  0.207 ns |    16.02 ns | 0.0102 |     - |     - |      32 B |
|    GetValidFilenameOldBench | ValidFileName |   100.66 ns |  1.255 ns |  1.174 ns |   101.21 ns | 0.0587 |     - |     - |     184 B |
|    GetValidFilenameWinBench | ValidFileName |   116.60 ns |  1.624 ns |  1.519 ns |   116.88 ns | 0.0356 |     - |     - |     112 B |
| GetValidFilenameOldWinBench | ValidFileName | 1,052.66 ns | 18.077 ns | 33.056 ns | 1,037.25 ns | 0.0839 |     - |     - |     264 B |
2021-04-22 12:31:47 +02:00
crobibero
5b0dc21c64 Mark password property as obsolete 2021-04-21 20:46:15 -06:00
Bond_009
81209258ab ManagedFileSystem: Rewrite GetValidFilename and more improvements 2021-04-22 03:11:21 +02:00
Bond_009
b323044139 Reduce string allocations/fs lookups in resolve code 2021-04-22 01:24:21 +02:00
Bond_009
b0914f9f2c Remove unused/duplicate services 2021-04-22 01:20:55 +02:00
Bond_009
f46195899e Improve perf of db save and query 2021-04-21 22:25:08 +02:00
Bond-009
95ab603a40 Merge pull request #5878 from Artiume/patch-2 2021-04-21 20:05:42 +02:00
artiume
831e768ee7 Request more logs 2021-04-21 13:15:03 -04:00
Bond-009
e19d89bb4f Merge pull request #5881 from cvium/tmdb-episode-externalids
Add tvrage and imdb ids for episodes
2021-04-21 16:15:53 +02:00
Bond-009
aa992efd31 Update MediaBrowser.Providers/Plugins/Tmdb/TV/TmdbEpisodeProvider.cs 2021-04-21 16:15:31 +02:00
Bond-009
d5163b4167 Merge pull request #5877 from Bond-009/circ1
EncodingHelper: Fix circular dependency
2021-04-21 15:49:17 +02:00
Bond-009
24103d0953 Merge pull request #5876 from Bond-009/nullref5
DeepCopy: Throw ArgumentNullException if one of the args is null
2021-04-21 14:08:36 +02:00
Bond-009
86a2e6eeda Merge pull request #5867 from Bond-009/provider
ProviderManager: fix discard and 2 warnings
2021-04-21 13:53:53 +02:00
Bond-009
6b103f7ab2 Merge pull request #5870 from cvium/fix-tmdbpersonprovider 2021-04-21 13:53:41 +02:00
Bond-009
18cf030c77 Merge pull request #5866 from Bond-009/httpmsghandler
Switch from HttpClientHandler to SocketsHttpHandler
2021-04-21 13:53:03 +02:00
Bond-009
48ed4b016c Merge pull request #5808 from cvium/semi-fix-collection-perf 2021-04-21 13:52:51 +02:00
Bond-009
da78a96312 Merge pull request #5807 from Bond-009/refreshdelay
Remove throttle in refresh code
2021-04-21 13:52:05 +02:00
artiume
005ae80b31 Update var names 2021-04-21 07:11:14 -04:00
BaronGreenback
20e19ae9b3 Moved Assert 2021-04-21 12:08:02 +01:00
BaronGreenback
53e1b302cc Changes as requested 2021-04-21 10:18:29 +01:00
BaronGreenback
39eb5da44f Update tests/Jellyfin.Dlna.Tests/ProfileTester.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-04-21 10:09:21 +01:00
BaronGreenback
740e5ec167 Update tests/Jellyfin.Dlna.Tests/ProfileTester.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-04-21 10:09:14 +01:00
BaronGreenback
2559ceffab Update tests/Jellyfin.Dlna.Tests/ProfileTester.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-04-21 10:09:05 +01:00
cvium
96348ed744 Add tvrage and imdb ids for episodes 2021-04-21 08:33:29 +02:00
artiume
dcd96909cd Fix Audiobook Resume
https://github.com/jellyfin/jellyfin/issues/5703
2021-04-20 19:28:18 -04:00
Bond_009
499bac5185 EncodingHelper: Fix circular dependency 2021-04-20 23:03:36 +02:00
Bond_009
63e9b1ae2d DeepCopy: Throw ArgumentNullException if one of the args is null 2021-04-20 22:59:51 +02:00
BaronGreenback
522d5a7158 Fixed indent 2021-04-20 18:17:48 +01:00
BaronGreenback
41246909dc fixed merge 2021-04-20 18:14:50 +01:00
BaronGreenback
f8b717e7c5 Merge branch 'master' into ProfileMatch 2021-04-20 18:10:38 +01:00
BaronGreenback
7848ea1484 missed one. 2021-04-20 18:08:19 +01:00
BaronGreenback
a99caa0daa Changed testing 2021-04-20 18:05:38 +01:00
Bond-009
5a6e60b414 Merge pull request #5859 from cvium/fix-streambuilder-permissions
Respect user settings for transcode and remux
2021-04-20 17:56:12 +02:00
Bond-009
233900401e Merge pull request #5873 from cvium/fix-displaypref-migration 2021-04-20 15:51:57 +02:00
cvium
4d7c1fbdca use int.Parse 2021-04-20 13:43:05 +02:00
cvium
c0ea56a10d use int.Parse 2021-04-20 13:35:08 +02:00
Bond-009
94d339cf12 Merge pull request #5744 from mohd-akram/absolute-dvd-order 2021-04-20 13:29:31 +02:00
cvium
cbb855e65f Check for empty string when migrating displaypreferences 2021-04-20 13:24:15 +02:00
BaronGreenback
092c610fbf Update Emby.Dlna/DlnaManager.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-04-20 08:26:41 +01:00
cvium
06b8cf42d1 Fix TMDb Person Provider 2021-04-20 08:59:15 +02:00
Bond_009
dcd6ab769b ProviderManager: fix discard and 2 warnings 2021-04-19 23:52:58 +02:00
Bond_009
500c2e5224 Switch from HttpClientHandler to SocketsHttpHandler
SocketsHttpHandler is the default for .Net Core 2.1 and newer

Set RequestHeaderEncoding to UTF-8 by default
2021-04-19 22:37:24 +02:00
BaronGreenback
4449217f8f simplified isMatch 2021-04-19 14:24:58 +01:00
Bond-009
4c915f5edf Merge pull request #5683 from jellyfin/dependabot/nuget/Newtonsoft.Json-13.0.1
Bump Newtonsoft.Json from 12.0.3 to 13.0.1
2021-04-19 15:11:11 +02:00
Bond-009
83f20fee4a Merge pull request #5799 from jellyfin/dependabot/nuget/AutoFixture.Xunit2-4.16.0
Bump AutoFixture.Xunit2 from 4.15.0 to 4.16.0
2021-04-19 15:10:11 +02:00
dependabot[bot]
dc628d1e1c Bump AutoFixture.Xunit2 from 4.15.0 to 4.16.0
Bumps [AutoFixture.Xunit2](https://github.com/AutoFixture/AutoFixture) from 4.15.0 to 4.16.0.
- [Release notes](https://github.com/AutoFixture/AutoFixture/releases)
- [Commits](https://github.com/AutoFixture/AutoFixture/compare/v4.15.0...v4.16.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-19 13:07:31 +00:00
BaronGreenback
95b733ad4c reworked code 2021-04-19 14:07:14 +01:00
Bond-009
8e6d79aa3e Merge pull request #5690 from jellyfin/dependabot/nuget/AutoFixture.AutoMoq-4.16.0
Bump AutoFixture.AutoMoq from 4.15.0 to 4.16.0
2021-04-19 15:06:45 +02:00
Bond-009
5a4cfe11cf Merge pull request #5863 from cvium/fix-index-migration
use IF NOT EXISTS in migration
2021-04-19 15:06:08 +02:00
Mohamed Akram
64071873a0 Use StringComparison.Ordinal 2021-04-19 16:51:44 +04:00
Bond-009
4eeb69233d Merge pull request #5852 from cvium/fix-person-creation
Add Person to TypedBaseItems if it's new
2021-04-19 14:28:57 +02:00
dependabot[bot]
442bc8671b Bump AutoFixture.AutoMoq from 4.15.0 to 4.16.0
Bumps [AutoFixture.AutoMoq](https://github.com/AutoFixture/AutoFixture) from 4.15.0 to 4.16.0.
- [Release notes](https://github.com/AutoFixture/AutoFixture/releases)
- [Commits](https://github.com/AutoFixture/AutoFixture/compare/v4.15.0...v4.16.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-19 12:08:51 +00:00
Bond-009
8536418553 Merge pull request #5809 from jellyfin/dependabot/nuget/AutoFixture-4.16.0
Bump AutoFixture from 4.15.0 to 4.16.0
2021-04-19 14:07:57 +02:00
Bond-009
ebe8301404 Merge pull request #5860 from cvium/fix-notification-user-list
Fix notification disabled users list
2021-04-19 14:07:18 +02:00
cvium
586e1fc58a use IF NOT EXISTS in migration 2021-04-19 13:51:55 +02:00
BaronGreenback
c68f616377 Flip fields 2021-04-19 12:36:30 +01:00
Mohamed Akram
90b941b3f6 Add review changes 2021-04-19 14:59:24 +04:00
cvium
a9ca3c8b01 Fix notification disabled users list 2021-04-19 11:38:27 +02:00
cvium
8933389753 Respect user settings for transcode and remux 2021-04-19 10:49:52 +02:00
Claus Vium
665220c4fb Merge pull request #5848 from sgmoore/IndexError
Fix ArgumentOutOfRangeException scanning AudioBooks
2021-04-19 08:29:28 +02:00
cvium
351b987982 Add Person to TypedBaseItems if it's new 2021-04-18 12:34:33 +02:00
Stephen Moore
e841922ffd Fix ArgumentOutOfRangeException scanning AudioBooks
AudioResolver.ResolveMultipleAudio method can attempt to access the first item in a List without checking if the list is empty which throws an ArgumentOutOfRangeException and stops the 'Scan Library' process.
2021-04-17 17:21:40 +01:00
Bond-009
990e4e8e58 Merge pull request #5843 from BaronGreenback/Cleanup4
Code Clean up: Remove unused using directives
2021-04-17 14:51:33 +02:00
BaronGreenback
bc1cc2d04a Remove unused using directives 2021-04-17 11:37:55 +01:00
BaronGreenback
bb6fddde9a Group Methods 2021-04-17 11:19:09 +01:00
Jack
198cc6e76a Some code cleanup. Allow NextUpDateCutoff to be null 2021-04-16 13:57:22 -04:00
Jack
d7855500c2 Add NextUpCutoffDate to NextUpQuery 2021-04-15 14:48:21 -04:00
BaronGreenback
3199d1c902 Fix: PlayTo using external ip not internal 2021-04-15 18:36:47 +01:00
Cody Robibero
b63f615fd4 Enable nullability for ServerDiscoveryInfo (#5804) 2021-04-15 15:39:59 +02:00
Bond-009
91d6ffd731 Merge pull request #5810 from jellyfin/dependabot/github_actions/eps1lon/actions-label-merge-conflict-v2.0.1
Bump eps1lon/actions-label-merge-conflict from v2.0.0 to v2.0.1
2021-04-14 22:47:48 +02:00
Joshua M. Boniface
e2cfc308ea Merge pull request #5729 from crobibero/dotnet5.0.5
Update to dotnet 5.0.5
2021-04-14 09:49:43 -04:00
Bond-009
159431ad2a Merge pull request #5612 from Bond-009/passwordhash 2021-04-14 15:41:23 +02:00
dependabot[bot]
1d4c8dcde3 Bump eps1lon/actions-label-merge-conflict from v2.0.0 to v2.0.1
Bumps [eps1lon/actions-label-merge-conflict](https://github.com/eps1lon/actions-label-merge-conflict) from v2.0.0 to v2.0.1.
- [Release notes](https://github.com/eps1lon/actions-label-merge-conflict/releases)
- [Changelog](https://github.com/eps1lon/actions-label-merge-conflict/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eps1lon/actions-label-merge-conflict/compare/v2.0.0...b8bf8341285ec9a4567d4318ba474fee998a6919)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-14 12:51:54 +00:00
Bond-009
9b4f1bbf19 Add workflows for rebase and automation (#5451)
Add workflows for rebase and automation
2021-04-14 14:51:27 +02:00
crobibero
78791a932f Simplify baseUrl check 2021-04-14 06:44:11 -06:00
Fernando Fernández
55700e0d1c Add workflows for rebase and project automation 2021-04-14 14:14:17 +02:00
BaronGreenback
0b774eac12 Enables the ability to bind to loopback address. (#5773) 2021-04-14 11:26:05 +02:00
cvium
d44b2e2ee5 fixes 2021-04-13 20:12:50 +02:00
Bond_009
3d0a42da9e Remove throttle in refresh code 2021-04-13 20:09:50 +02:00
dependabot[bot]
d459f625d5 Bump Newtonsoft.Json from 12.0.3 to 13.0.1
Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 12.0.3 to 13.0.1.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/12.0.3...13.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-13 17:11:49 +00:00
dependabot[bot]
27202ae8aa Bump AutoFixture from 4.15.0 to 4.16.0
Bumps [AutoFixture](https://github.com/AutoFixture/AutoFixture) from 4.15.0 to 4.16.0.
- [Release notes](https://github.com/AutoFixture/AutoFixture/releases)
- [Commits](https://github.com/AutoFixture/AutoFixture/compare/v4.15.0...v4.16.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-13 17:11:34 +00:00
Bond-009
51af569159 Merge pull request #5802 from jellyfin/dependabot/nuget/TMDbLib-1.8.1
Bump TMDbLib from 1.7.3-alpha to 1.8.1
2021-04-13 19:10:59 +02:00
Bond-009
7c9772ac81 Merge pull request #5713 from Bond-009/websocketauth
Add tests for unauthenticated websocket access
2021-04-13 18:29:29 +02:00
Bond-009
ba2a1c0209 Merge pull request #5806 from Bond-009/nullref5
Fix possible ArgumentNullException
2021-04-13 18:00:33 +02:00
Bond_009
2b948aead9 Fix possible ArgumentNullException
```
System.ArgumentNullException: Value cannot be null. (Parameter 'source')
   at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
   at System.Linq.Enumerable.Where[TSource](IEnumerable`1 source, Func`2 predicate)
   at MediaBrowser.Providers.Manager.ProviderManager.GetImages(BaseItem
           item, IRemoteImageProvider provider, IReadOnlyCollection`1
           preferredLanguages, CancellationToken cancellationToken,
           Nullable`1 type) in
   /home/bond/dev/jellyfin/MediaBrowser.Providers/Manager/ProviderManager.cs:line
   280
```
2021-04-13 19:53:09 +02:00
Bond-009
4d014e3e5a Merge pull request #5653 from jellyfin/dependabot/nuget/BlurHashSharp.SkiaSharp-1.2.0
Bump BlurHashSharp.SkiaSharp from 1.1.1 to 1.2.0
2021-04-13 16:34:51 +02:00
cvium
723b6abcb3 Optimize the way items are grouped into collections 2021-04-13 15:38:13 +02:00
crobibero
b11718a01d Properly redirect healthcheck endpoint if using BaseUrl 2021-04-13 07:12:49 -06:00
dependabot[bot]
f1c4b541c1 Bump TMDbLib from 1.7.3-alpha to 1.8.1
Bumps [TMDbLib](https://github.com/LordMike/TMDbLib) from 1.7.3-alpha to 1.8.1.
- [Release notes](https://github.com/LordMike/TMDbLib/releases)
- [Commits](https://github.com/LordMike/TMDbLib/compare/v1.7.3-alpha...v1.8.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-13 13:09:28 +00:00
dependabot[bot]
63355af518 Bump BlurHashSharp.SkiaSharp from 1.1.1 to 1.2.0
Bumps [BlurHashSharp.SkiaSharp](https://github.com/Bond-009/BlurHashSharp) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/Bond-009/BlurHashSharp/releases)
- [Commits](https://github.com/Bond-009/BlurHashSharp/commits/v1.2.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-13 13:09:10 +00:00
Bond-009
89ae336694 Merge pull request #5654 from jellyfin/dependabot/nuget/BlurHashSharp-1.2.0
Bump BlurHashSharp from 1.1.1 to 1.2.0
2021-04-13 15:08:25 +02:00
Bond-009
8fdb3c88c4 Merge pull request #5794 from richlander/patch-1
Remove coupling to distro
2021-04-13 14:51:38 +02:00
Bond-009
0dbaa97d0d Merge pull request #5792 from Bond-009/nullref4 2021-04-13 11:25:51 +02:00
Rich Lander
fe54e9ae9d Remove coupling to distro
- The substring `-buster-slim` isn't useful/correct. 
- .NET 6 (from my team) is based exclusively on bullseye.
- If you update just `DOTNET_VERSION` to `6.0`, `docker build` will fail. 
- If the goal is to force using `buster` throughout the Dockerfile, then making `DOTNET_VERSION` configurable isn't correct.
- Context: https://github.com/dotnet/dotnet-docker/blob/main/src/runtime-deps/6.0/bullseye-slim/amd64/Dockerfile#L1

Just saw this as a drive by look at your code. Is intended as helpful context.
2021-04-12 17:16:26 -07:00
Bond-009
8a73e19f5e Merge pull request #5768 from Bond-009/dangling 2021-04-12 22:43:26 +02:00
Bond_009
8045a488ce Fix possible ArgumentNullException
```
  Error Message:
   System.ArgumentNullException : Value cannot be null. (Parameter 'source')
  Stack Trace:
     at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
   at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable`1 source, Func`2 selector)
   at Emby.Server.Implementations.Library.LibraryManager.ResolveItem(ItemResolveArgs args, IItemResolver[] resolvers) in /home/vsts/work/1/s/Emby.Server.Implementations/Library/LibraryManager.cs:line 475
   at Emby.Server.Implementations.Library.LibraryManager.ResolvePath(FileSystemMetadata fileInfo, IDirectoryService directoryService, IItemResolver[] resolvers, Folder parent, String collectionType, LibraryOptions libraryOptions) in /home/vsts/work/1/s/Emby.Server.Implementations/Library/LibraryManager.cs:line 618
   at Emby.Server.Implementations.Library.LibraryManager.ResolvePath(FileSystemMetadata fileInfo, Folder parent) in /home/vsts/work/1/s/Emby.Server.Implementations/Library/LibraryManager.cs:line 536
   at Emby.Server.Implementations.Library.LibraryManager.GetUserRootFolder() in /home/vsts/work/1/s/Emby.Server.Implementations/Library/LibraryManager.cs:line 812
   at Emby.Server.Implementations.Library.LibraryManager.GetCollectionFolders(BaseItem item) in /home/vsts/work/1/s/Emby.Server.Implementations/Library/LibraryManager.cs:line 2080
   at Emby.Server.Implementations.Library.LibraryManager.GetLibraryOptions(BaseItem item) in /home/vsts/work/1/s/Emby.Server.Implementations/Library/LibraryManager.cs:line 2116
   at MediaBrowser.Providers.Manager.ProviderManager.SaveMetadata(BaseItem item, ItemUpdateType updateType, IEnumerable`1 savers) in /home/vsts/work/1/s/MediaBrowser.Providers/Manager/ProviderManager.cs:line 672
   at MediaBrowser.Providers.Manager.ProviderManager.SaveMetadata(BaseItem item, ItemUpdateType updateType) in /home/vsts/work/1/s/MediaBrowser.Providers/Manager/ProviderManager.cs:line 655
   at Emby.Server.Implementations.Library.LibraryManager.RunMetadataSavers(BaseItem item, ItemUpdateType updateReason) in /home/vsts/work/1/s/Emby.Server.Implementations/Library/LibraryManager.cs:line 2017
   at Emby.Server.Implementations.Library.LibraryManager.UpdateItemsAsync(IReadOnlyList`1 items, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken) in /home/vsts/work/1/s/Emby.Server.Implementations/Library/LibraryManager.cs:line 1975
   at Emby.Server.Implementations.Library.LibraryManager.CreateRootFolder() in /home/vsts/work/1/s/Emby.Server.Implementations/Library/LibraryManager.cs:line 775
   at Emby.Server.Implementations.Library.LibraryManager.get_RootFolder() in /home/vsts/work/1/s/Emby.Server.Implementations/Library/LibraryManager.cs:line 180
   at Emby.Server.Implementations.IO.LibraryMonitor.Start() in /home/vsts/work/1/s/Emby.Server.Implementations/IO/LibraryMonitor.cs:line 135
   at Emby.Server.Implementations.IO.LibraryMonitorStartup.RunAsync() in /home/vsts/work/1/s/Emby.Server.Implementations/IO/LibraryMonitorStartup.cs:line 26
   at Emby.Server.Implementations.ApplicationHost.StartEntryPoints(IEnumerable`1 entryPoints, Boolean isBeforeStartup)+MoveNext() in /home/vsts/work/1/s/Emby.Server.Implementations/ApplicationHost.cs:line 518
   at System.Threading.Tasks.Task.WhenAll(IEnumerable`1 tasks)
   at Emby.Server.Implementations.ApplicationHost.RunStartupTasksAsync(CancellationToken cancellationToken) in /home/vsts/work/1/s/Emby.Server.Implementations/ApplicationHost.cs:line 502
   at Jellyfin.Server.Integration.Tests.JellyfinApplicationFactory.CreateServer(IWebHostBuilder builder) in /home/vsts/work/1/s/tests/Jellyfin.Server.Integration.Tests/JellyfinApplicationFactory.cs:line 101
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer()
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(DelegatingHandler[] handlers)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(Uri baseAddress, DelegatingHandler[] handlers)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateClient(WebApplicationFactoryClientOptions options)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateClient()
   at Jellyfin.Server.Integration.Tests.Controllers.ActivityLogControllerTests.ActivityLog_GetEntries_Ok() in /home/vsts/work/1/s/tests/Jellyfin.Server.Integration.Tests/Controllers/ActivityLogControllerTests.cs:line 21
--- End of stack trace from previous location ---
```
2021-04-12 22:01:35 +02:00
Claus Vium
dc4714fe40 fix webp compatibility testing (#5787) 2021-04-12 19:54:32 +02:00
Cody Robibero
cc59abd54e Mark cropWhitespace parameter as obsolete (#5751) 2021-04-12 15:50:24 +02:00
Bond-009
b94218849c Merge pull request #5784 from Bond-009/racecondition
Fix random failing of tests
2021-04-12 15:47:37 +02:00
BaronGreenback
10d358c8da Update tests/Jellyfin.Networking.Tests/NetworkParseTests.cs
Co-authored-by: Odd Stråbø <oddstr13@openshell.no>
2021-04-12 10:28:24 +01:00
Bond_009
a4ffc7a813 Fix random failing of tests
Fully initialize the configuration manager at the init stage

```
Failed Jellyfin.Server.Integration.Tests.Controllers.ActivityLogControllerTests.ActivityLog_GetEntries_Ok [2 s]
  Error Message:
   MediaBrowser.Common.Extensions.ResourceNotFoundException : Configuration with key metadata not found.
  Stack Trace:
     at Emby.Server.Implementations.AppBase.BaseConfigurationManager.<>c__DisplayClass43_0.<GetConfiguration>b__0(String k) in D:\a\1\s\Emby.Server.Implementations\AppBase\BaseConfigurationManager.cs:line 309
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Emby.Server.Implementations.AppBase.BaseConfigurationManager.GetConfiguration(String key) in D:\a\1\s\Emby.Server.Implementations\AppBase\BaseConfigurationManager.cs:line 300
   at MediaBrowser.Common.Configuration.ConfigurationManagerExtensions.GetConfiguration[T](IConfigurationManager manager, String key) in D:\a\1\s\MediaBrowser.Common\Configuration\IConfigurationManager.cs:line 88
   at MediaBrowser.Controller.Library.MetadataConfigurationExtensions.GetMetadataConfiguration(IConfigurationManager config) in D:\a\1\s\MediaBrowser.Controller\Library\MetadataConfigurationStore.cs:line 28
   at Emby.Server.Implementations.Library.ResolverHelper.SetDateCreated(BaseItem item, IFileSystem fileSystem, FileSystemMetadata info) in D:\a\1\s\Emby.Server.Implementations\Library\ResolverHelper.cs:line 159
   at Emby.Server.Implementations.Library.ResolverHelper.EnsureDates(IFileSystem fileSystem, BaseItem item, ItemResolveArgs args) in D:\a\1\s\Emby.Server.Implementations\Library\ResolverHelper.cs:line 153
   at Emby.Server.Implementations.Library.ResolverHelper.SetInitialItemValues(BaseItem item, ItemResolveArgs args, IFileSystem fileSystem, ILibraryManager libraryManager) in D:\a\1\s\Emby.Server.Implementations\Library\ResolverHelper.cs:line 81
   at Emby.Server.Implementations.Library.LibraryManager.ResolveItem(ItemResolveArgs args, IItemResolver[] resolvers) in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 480
   at Emby.Server.Implementations.Library.LibraryManager.ResolvePath(FileSystemMetadata fileInfo, IDirectoryService directoryService, IItemResolver[] resolvers, Folder parent, String collectionType, LibraryOptions libraryOptions) in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 618
   at Emby.Server.Implementations.Library.LibraryManager.ResolvePath(FileSystemMetadata fileInfo, Folder parent) in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 536
   at Emby.Server.Implementations.Library.LibraryManager.CreateRootFolder() in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 732
   at Emby.Server.Implementations.Library.LibraryManager.get_RootFolder() in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 180
   at Emby.Server.Implementations.IO.LibraryMonitor.Start() in D:\a\1\s\Emby.Server.Implementations\IO\LibraryMonitor.cs:line 135
   at Emby.Server.Implementations.IO.LibraryMonitorStartup.RunAsync() in D:\a\1\s\Emby.Server.Implementations\IO\LibraryMonitorStartup.cs:line 26
   at Emby.Server.Implementations.ApplicationHost.StartEntryPoints(IEnumerable`1 entryPoints, Boolean isBeforeStartup)+MoveNext() in D:\a\1\s\Emby.Server.Implementations\ApplicationHost.cs:line 541
   at System.Threading.Tasks.Task.WhenAll(IEnumerable`1 tasks)
   at Emby.Server.Implementations.ApplicationHost.RunStartupTasksAsync(CancellationToken cancellationToken) in D:\a\1\s\Emby.Server.Implementations\ApplicationHost.cs:line 525
   at Jellyfin.Server.Integration.Tests.JellyfinApplicationFactory.CreateServer(IWebHostBuilder builder) in D:\a\1\s\tests\Jellyfin.Server.Integration.Tests\JellyfinApplicationFactory.cs:line 101
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer()
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(DelegatingHandler[] handlers)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(Uri baseAddress, DelegatingHandler[] handlers)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateClient(WebApplicationFactoryClientOptions options)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateClient()
   at Jellyfin.Server.Integration.Tests.Controllers.ActivityLogControllerTests.ActivityLog_GetEntries_Ok() in D:\a\1\s\tests\Jellyfin.Server.Integration.Tests\Controllers\ActivityLogControllerTests.cs:line 21
--- End of stack trace from previous location ---

```
2021-04-12 00:28:17 +02:00
Bond-009
1361ccd9ea Merge pull request #5763 from Bond-009/ipobjects
Minor improvements to IPObjects
2021-04-11 23:31:03 +02:00
Joshua M. Boniface
4deccd451e Mention testing too 2021-04-11 16:31:10 -04:00
Joshua M. Boniface
f381c53634 Fix typo 2021-04-11 14:51:45 -04:00
Joshua M. Boniface
7aa53b060e Add label commenter workflow
Right now the main purpose is to handle instructions for stable
backports. Can be expanded in the future.
2021-04-11 14:46:43 -04:00
Joshua M. Boniface
770c123d12 Merge pull request #5764 from cvium/fix-folders-perms
Do not check permissions for Folders collectiontype
2021-04-11 13:30:15 -04:00
Joshua M. Boniface
19e7ebb279 Merge pull request #5416 from BaronGreenback/SubnetOverlappFix 2021-04-11 13:29:00 -04:00
Joshua M. Boniface
cd0daa7985 Merge pull request #5748 from cvium/playlist-audio-type
Set mediatype to Audio for playlists in a music library
2021-04-11 13:28:49 -04:00
Bond-009
58fb3e9610 Merge pull request #5767 from cvium/dont-delete-artwork
Do not touch "old" local artwork unless saving locally
2021-04-11 17:56:01 +02:00
Bond-009
790f7430aa Merge pull request #5556 from oddstr13/image-fill-resize 2021-04-11 13:34:22 +02:00
Bond-009
f0625bb023 Merge pull request #5769 from cvium/workstation-gc
Enable Workstation GC mode
2021-04-11 13:33:42 +02:00
cvium
01491796a2 Enable Workstation GC mode 2021-04-11 12:57:28 +02:00
Odd Stråbø
d0857cf655 Fix build, increase StringBuilder starting size 2021-04-11 08:21:23 +02:00
Odd Stråbø
e0edbc5754 Apply suggestions from code review
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-04-11 08:21:23 +02:00
Odd Stråbø
afff226514 Apply suggestions from code review
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-04-11 08:21:23 +02:00
Odd Stråbø
e57c1655fb Remove GetSizeEstimate & GetEstimatedAspectRatio
from MediaBrowser.Controller.Drawing.ImageHelper

Rework GetCacheFilePath to take requested with and height parameters
in stead of using estimated output size
2021-04-11 08:21:23 +02:00
Odd Stråbø
13d0837b78 (mostly)Fix ResizeFill 2021-04-11 08:21:23 +02:00
Odd Stråbø
383aa4e4d9 Add Resize to fill box alternative to image endpoints 2021-04-11 08:20:47 +02:00
Bond-009
240e67d485 Merge pull request #5747 from cvium/more-convertimage-fixes
Catch IOException and include stack trace when saving images
2021-04-11 00:58:49 +02:00
Bond-009
f4654aaeb1 Merge pull request #5766 from cvium/fix-scheduledtaskworker
Use sync Serialize when writing scheduled tasks to disk
2021-04-11 00:38:44 +02:00
Bond_009
5fc664fd4f Add test for handling dangling symlinks 2021-04-11 00:35:32 +02:00
cvium
35cfd760d4 Do not touch "old" local artwork unless saving locally 2021-04-11 00:27:53 +02:00
cvium
42bcf171d9 Use sync Serialize when writing scheduled tasks to disk 2021-04-10 23:54:35 +02:00
Bond-009
62117a6c12 Merge pull request #5746 from cvium/dangling-symlinks 2021-04-10 23:18:55 +02:00
Claus Vium
bf510ca04e Merge pull request #5750 from iwalton3/fix-audio-selection-uns
Fix setting audio stream in PlaybackInfo for jellyfin-web.
2021-04-10 23:10:16 +02:00
cvium
f2e7491755 Do not check permissions for Folders collectiontype 2021-04-10 22:58:32 +02:00
Bond_009
be9cb7af2c Minor improvements to IPObjects 2021-04-10 22:42:09 +02:00
BaronGreenback
1fe26fe352 Work through dns failure on test. 2021-04-10 19:44:09 +01:00
Bond-009
85daaec318 Merge pull request #5759 from Bond-009/logging
Fix LogUnmatchedProfile formatting
2021-04-10 17:17:24 +02:00
Bond_009
117736aac9 Fix LogUnmatchedProfile formatting 2021-04-10 17:09:45 +02:00
Bond-009
b2fbf97abd Merge pull request #4988 from Bond-009/crop 2021-04-10 02:57:43 +02:00
Bond-009
9d548c62ba Merge pull request #5258 from Smith00101010/next-up-specials-fix 2021-04-10 01:38:57 +02:00
Ian Walton
321e383965 Fix setting audio stream in PlaybackInfo for jellyfin-web. 2021-04-09 19:24:41 -04:00
Claus Vium
f99237cf9b Update Emby.Server.Implementations/IO/ManagedFileSystem.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-04-10 00:16:37 +02:00
cvium
ef527df28f Set mediatype to Audio for playlists in a music library 2021-04-10 00:06:48 +02:00
cvium
f2cba352e5 catch ioexception and include stack trace 2021-04-09 23:30:07 +02:00
Claus Vium
1a92d94e92 Merge pull request #5712 from BaronGreenback/5700 2021-04-09 23:06:40 +02:00
Claus Vium
d532e95410 Merge pull request #5734 from jellyfin/fix-isplayed-itemvalues
move IsPlayed to outerquery
2021-04-09 23:05:43 +02:00
cvium
1a3352003d don't die on dangling symlinks 2021-04-09 23:02:36 +02:00
Mohamed Akram
ce4f730221 Add support for TMDB series absolute and DVD order 2021-04-09 20:02:23 +04:00
cvium
381db60ed3 fix test 2021-04-09 15:05:39 +02:00
cvium
5c4be2416d Remove unused import 2021-04-09 13:48:25 +02:00
cvium
53db1a1ffc ... 2021-04-09 13:47:47 +02:00
cvium
457229c56d Simplification 2021-04-09 13:43:40 +02:00
cvium
69d2368fbc Copy paste error 2021-04-09 13:31:17 +02:00
cvium
e7fc18d0f3 Fix type check 2021-04-09 13:28:27 +02:00
cvium
08ccf2a49c Resolve name from episode folder 2021-04-09 13:20:12 +02:00
Bond-009
6577f1deb2 Merge pull request #5736 from jellyfin/catch-httprequestex-librarymanager
fetching images should not kill the scanner
2021-04-09 12:41:17 +02:00
Bond-009
900793e25d Merge pull request #5731 from Bond-009/usertests
Add tests for UserController
2021-04-09 12:04:13 +02:00
Claus Vium
a21b2714e7 fetching images should not kill the scanner 2021-04-09 12:03:56 +02:00
Claus Vium
db530e61f5 move IsPlayed to outerquery
IsPlayed is a column in UserDatas and does not belong in the inner query. None of the other UserDatas columns are in the innerquery.
2021-04-09 11:32:19 +02:00
Bond_009
391554d391 Add tests for UserController 2021-04-09 01:04:49 +02:00
Bond-009
a19a97ca42 Merge pull request #5721 from Bond-009/authenticatedtests
Add code to test authenticated endpoints
2021-04-08 23:33:18 +02:00
Bond-009
9bf3ec4ae2 Merge pull request #5730 from thornbill/disable-hevc-encoding
Disable HEVC encoding by default
2021-04-08 18:16:04 +02:00
Bill Thornton
cc0f191228 Disable hevc encoding by default 2021-04-08 09:57:17 -04:00
BaronGreenback
b645bb20de Update Emby.Server.Implementations/Updates/InstallationManager.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-04-08 14:38:25 +01:00
crobibero
b1faf8c2e8 Update to dotnet 5.0.5 2021-04-08 07:36:13 -06:00
Claus Vium
9d0467addf Merge pull request #5725 from BrianCArnold/Fix2845_PlaylistDeletion 2021-04-08 14:25:51 +02:00
Bond-009
47bbe4c146 Merge pull request #5717 from cvium/nullable-custompref-value 2021-04-08 13:15:02 +02:00
Brian Arnold
a2acfb02e9 Can't reference System.IO.Path as 'Path', even though System.IO is in the usings, because there is a Path property of the class. 2021-04-08 05:19:28 -04:00
BrianCArnold
2314487e38 Update MediaBrowser.Controller/Playlists/Playlist.cs
Included suggested change from cvium

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-04-08 04:03:43 -04:00
Brian Arnold
7c457da9ab Fixed issue with determining if a directory was a directory or file when it contained a '.' character in the directory path.
Resolves: #2845
2021-04-08 02:49:41 -04:00
Joshua M. Boniface
14f94b6793 Merge pull request #5707 from ferferga/deyarn 2021-04-07 18:51:22 -04:00
Bond-009
631df8c560 Merge pull request #5520 from Bond-009/hdhomerun2 2021-04-08 00:27:58 +02:00
Bond_009
45a16c19a7 Add code to test authenticated endpoints 2021-04-07 21:35:54 +02:00
Bond-009
51a075a895 Merge pull request #5711 from jellyfin/dependabot/nuget/Microsoft.AspNetCore.Mvc.Testing-5.0.5
Bump Microsoft.AspNetCore.Mvc.Testing from 5.0.3 to 5.0.5
2021-04-07 17:42:38 +02:00
Bond-009
5042246360 Merge pull request #5710 from jellyfin/dependabot/nuget/Microsoft.AspNetCore.Authorization-5.0.5
Bump Microsoft.AspNetCore.Authorization from 5.0.3 to 5.0.5
2021-04-07 17:42:27 +02:00
Claus Vium
f718735b4e Merge pull request #5688 from crobibero/api-docs-sever-discovery
Add SessionDiscoveryInfo to generated api-docs
2021-04-07 14:36:49 +02:00
Claus Vium
a1718e392b Merge pull request #5631 from BrianCArnold/FixMessageCommand 2021-04-07 14:36:08 +02:00
cvium
4892e0cf06 fix build...somehow 2021-04-07 13:17:59 +02:00
cvium
d772fddfb3 make custompref value nullable 2021-04-07 13:09:00 +02:00
Bond_009
fbd9141ecd Add tests for unauthenticated websocket access 2021-04-06 22:46:54 +02:00
BaronGreenback
65f880be32 Keep plugin status after update. 2021-04-06 20:59:47 +01:00
dependabot[bot]
3651ee5ed3 Bump Microsoft.AspNetCore.Mvc.Testing from 5.0.3 to 5.0.5
Bumps [Microsoft.AspNetCore.Mvc.Testing](https://github.com/dotnet/aspnetcore) from 5.0.3 to 5.0.5.
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Commits](https://github.com/dotnet/aspnetcore/compare/v5.0.3...v5.0.5)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-06 18:35:51 +00:00
dependabot[bot]
e85ac4d975 Bump Microsoft.AspNetCore.Authorization from 5.0.3 to 5.0.5
Bumps [Microsoft.AspNetCore.Authorization](https://github.com/dotnet/aspnetcore) from 5.0.3 to 5.0.5.
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Commits](https://github.com/dotnet/aspnetcore/compare/v5.0.3...v5.0.5)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-06 18:35:36 +00:00
Bond-009
221d9373e8 Merge pull request #5708 from Bond-009/netanalyzers
Enable NetAnalyzers for more projects
2021-04-06 20:34:30 +02:00
Bond_009
95327b842e Enable NetAnalyzers for more projects 2021-04-06 20:02:06 +02:00
Fernando Fernández
8d6713af65 Use npm ci instead of npm i 2021-04-06 17:37:50 +02:00
Fernando Fernández
ba958c70d5 (jellyfin-web): Switch to npm 2021-04-06 17:24:01 +02:00
Maxr1998
a7c8bc632f Fix typo in test data filename 2021-04-06 15:34:29 +02:00
Maxr1998
07751768f4 Add tests for music video metadata 2021-04-06 15:34:29 +02:00
Maxr1998
24ac8a1223 Improve metadata probing to better support music videos 2021-04-06 15:34:29 +02:00
Bond-009
3412120c61 Merge pull request #5702 from cvium/ws-auth
add simple auth handling to websocketmanager
2021-04-05 17:31:10 +02:00
cvium
14d0acf285 add simple auth handling to websocketmanager 2021-04-05 15:12:47 +02:00
Bond-009
d748d6cf3f Merge pull request #5699 from Bond-009/ffprobetests 2021-04-05 13:50:44 +02:00
Bond_009
e6d487f7ea Add test for ProbeResultNormalizer.GetMediaInfo 2021-04-05 01:53:00 +02:00
Bond-009
7978f30ff7 Merge pull request #5693 from Maxr1998/probe-result-tweaks 2021-04-04 17:16:17 +02:00
Maxr1998
873ad72c18 Support MKV DATE_RELEASED tag for PremiereDate
https://www.matroska.org/technical/tagging.html#temporal-information
2021-04-04 15:41:01 +02:00
Maxr1998
8d27e10cb6 Interpret ffprobe date as UTC
Currently, dates are parsed according to the local time, which results in potentially wrong data being stored in the database after normalizing to UTC - e.g. 2021-04-04 would be stored as '2021-04-03 22:00:00Z' and displayed in the UI as 03.04.2021.
2021-04-04 15:13:54 +02:00
Maxr1998
e0f513232b Reduce nesting 2021-04-04 15:13:54 +02:00
Bond-009
8eaefce14e Merge pull request #5691 from Bond-009/nullref3
Fix possible nullref
2021-04-04 13:22:49 +02:00
Bond_009
2ed0801be2 Fix possible nullref
when `ProviderManager.SaveMetadata` gets called before
`ProviderManager.AddParts`

```
Error Message:
   System.ArgumentNullException : Value cannot be null. (Parameter 'source')
  Stack Trace:
     at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
   at System.Linq.Enumerable.Where[TSource](IEnumerable`1 source, Func`2 predicate)
   at MediaBrowser.Providers.Manager.ProviderManager.SaveMetadata(BaseItem item, ItemUpdateType updateType, IEnumerable`1 savers) in D:\a\1\s\MediaBrowser.Providers\Manager\ProviderManager.cs:line 674
   at MediaBrowser.Providers.Manager.ProviderManager.SaveMetadata(BaseItem item, ItemUpdateType updateType) in D:\a\1\s\MediaBrowser.Providers\Manager\ProviderManager.cs:line 655
   at Emby.Server.Implementations.Library.LibraryManager.RunMetadataSavers(BaseItem item, ItemUpdateType updateReason) in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 2012
   at Emby.Server.Implementations.Library.LibraryManager.UpdateItemsAsync(IReadOnlyList`1 items, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken) in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 1970
   at Emby.Server.Implementations.Library.LibraryManager.CreateRootFolder() in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 775
   at Emby.Server.Implementations.Library.LibraryManager.get_RootFolder() in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 180
   at Emby.Server.Implementations.IO.LibraryMonitor.Start() in D:\a\1\s\Emby.Server.Implementations\IO\LibraryMonitor.cs:line 135
   at Emby.Server.Implementations.IO.LibraryMonitorStartup.RunAsync() in D:\a\1\s\Emby.Server.Implementations\IO\LibraryMonitorStartup.cs:line 26
   at Emby.Server.Implementations.ApplicationHost.StartEntryPoints(IEnumerable`1 entryPoints, Boolean isBeforeStartup)+MoveNext() in D:\a\1\s\Emby.Server.Implementations\ApplicationHost.cs:line 541
   at System.Threading.Tasks.Task.WhenAll(IEnumerable`1 tasks)
   at Emby.Server.Implementations.ApplicationHost.RunStartupTasksAsync(CancellationToken cancellationToken) in D:\a\1\s\Emby.Server.Implementations\ApplicationHost.cs:line 525
   at Jellyfin.Server.Integration.Tests.JellyfinApplicationFactory.CreateServer(IWebHostBuilder builder) in D:\a\1\s\tests\Jellyfin.Server.Integration.Tests\JellyfinApplicationFactory.cs:line 101
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer()
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(DelegatingHandler[] handlers)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(Uri baseAddress, DelegatingHandler[] handlers)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateClient(WebApplicationFactoryClientOptions options)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateClient()
   at Jellyfin.Server.Integration.Tests.OpenApiSpecTests.GetSpec_ReturnsCorrectResponse() in D:\a\1\s\tests\Jellyfin.Server.Integration.Tests\OpenApiSpecTests.cs:line 26
--- End of stack trace from previous location ---
```
2021-04-04 01:45:15 +02:00
Bond-009
fa64d8e4f2 Merge pull request #5637 from dmitrylyzo/check-media-type 2021-04-04 01:25:09 +02:00
Dmitry Lyzo
36da7a06d7 Less negation
Co-authored-by: Bond-009 <bond.009@outlook.com>
2021-04-04 02:09:57 +03:00
Bond-009
ea2bd3398b Merge pull request #5685 from Bond-009/uselessnullcheck
Remove useless null check
2021-04-03 23:50:00 +02:00
Bond-009
cb111eb767 Merge pull request #5661 from ferferga/openapi-product-version
Return Major.Minor.Build instead of Major.Minor.Build.Revision for OpenAPI
2021-04-03 22:07:47 +02:00
Bond-009
4f387dca6e Merge pull request #5598 from cvium/fix_hls_default_values 2021-04-03 19:36:41 +02:00
Bond-009
9f21dd63ae Merge pull request #5684 from jellyfin/dependabot/nuget/Microsoft.NET.Test.Sdk-16.9.4
Bump Microsoft.NET.Test.Sdk from 16.9.1 to 16.9.4
2021-04-03 19:25:25 +02:00
crobibero
31d1dbfda6 Add SessionDiscoveryInfo to generated api-docs 2021-04-03 06:54:09 -06:00
Bond-009
959a09bdb0 Merge pull request #5676 from Bond-009/useless 2021-04-03 02:00:03 +02:00
Bond_009
0a00a73fec Remove useless null check 2021-04-03 01:46:31 +02:00
dependabot[bot]
7c70205326 Bump Microsoft.NET.Test.Sdk from 16.9.1 to 16.9.4
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.9.1 to 16.9.4.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.9.1...v16.9.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-02 22:42:12 +00:00
Bond-009
8cb3dc8469 Merge pull request #5590 from jellyfin/dependabot/nuget/Microsoft.Extensions.Diagnostics.HealthChecks-5.0.4
Bump Microsoft.Extensions.Diagnostics.HealthChecks from 5.0.3 to 5.0.4
2021-04-03 00:41:40 +02:00
Bond-009
ec0ef1530c Merge pull request #5602 from Ullmie02/IP-string-IP 2021-04-03 00:32:43 +02:00
dependabot[bot]
820a373016 Bump Microsoft.Extensions.Diagnostics.HealthChecks from 5.0.3 to 5.0.4
Bumps [Microsoft.Extensions.Diagnostics.HealthChecks](https://github.com/dotnet/aspnetcore) from 5.0.3 to 5.0.4.
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Commits](https://github.com/dotnet/aspnetcore/compare/v5.0.3...v5.0.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-02 22:27:11 +00:00
Bond-009
a92736baad Merge pull request #5174 from barronpm/authenticateuser-cleanup 2021-04-03 00:26:56 +02:00
Bond-009
fd66ca25cd Merge pull request #5652 from jellyfin/dependabot/nuget/Serilog.AspNetCore-4.1.0
Bump Serilog.AspNetCore from 3.4.0 to 4.1.0
2021-04-03 00:26:00 +02:00
BaronGreenback
d9a50cb510 Various DLNA Optimizations 2021-04-02 19:06:38 +01:00
Bond-009
6f373f615b Merge pull request #5675 from Bond-009/copytotests
Add tests for CopyToExtensions
2021-04-02 16:38:30 +02:00
Bond-009
a0258618ac Update Emby.Server.Implementations/Library/Resolvers/TV/SeriesResolver.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-04-01 21:24:34 +02:00
Bond_009
c533b20496 Remove ManagedFileSystem.IsRootPath
`Path.IsPathRooted` should be used instead
2021-04-01 19:39:00 +02:00
Max Rumpf
21e7ceae8e StreamBuilder tweaks (#5668)
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-04-01 19:18:14 +02:00
Bond_009
aa76957338 Remove useless code 2021-04-01 19:16:00 +02:00
Bond_009
11f7ab4dd4 Add tests for CopyToExtensions 2021-04-01 19:13:03 +02:00
Bond-009
7c51d0a50e Merge pull request #5671 from jellyfin/tmdbmovieprovider-originaltitle
set original title in tmdbmovieprovider
2021-04-01 17:39:22 +02:00
Bond-009
38913a42b4 Merge pull request #5672 from jellyfin/skip-bad-images
ensure only valid images are saved in ItemImageProvider
2021-04-01 17:38:05 +02:00
Claus Vium
df60d176b8 ensure only valid images are saved in ItemImageProvider 2021-04-01 15:27:28 +02:00
Claus Vium
28a0eb6d53 set original title in tmdbmovieprovider 2021-04-01 14:28:03 +02:00
Brian C. Arnold
3820671724 Merge remote-tracking branch 'main/master' into FixMessageCommand 2021-03-31 08:08:27 -04:00
BrianCArnold
4fa2a32d81 Apply suggestions from code review
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-03-31 01:24:38 -04:00
BrianCArnold
af03b280bc Update SessionController.cs 2021-03-31 01:23:51 -04:00
Stéphane Senart
3164781ce0 [5644] [DLNA] [Music] Next track command from any DLNA device does not do anything. 2021-03-30 22:18:32 +02:00
Bond-009
b49d50e634 Merge pull request #5467 from Ullmie02/nfo-fixes 2021-03-30 15:35:56 +02:00
Fernando Fernández
8c6bd2537c Return Major.Minor.Build instead of Major.Minor.Build.Revision for OpenAPI version 2021-03-30 15:15:16 +02:00
BrianCArnold
80fe48fda9 Update SessionController.cs
Removed unnecessary construction of POCO to represent data from POST body
2021-03-30 07:29:40 -04:00
Stéphane Senart
ec113816aa [5644] [DLNA] [Music] Next track command from any DLNA device does not do anything. 2021-03-29 23:43:02 +02:00
Brian Arnold
54107ae882 Fix spacing requirement for MessageCommand. 2021-03-29 11:40:07 -04:00
Brian Arnold
ca25301e64 Added Required attribute to Text property of MessageCommand. 2021-03-29 10:10:44 -04:00
dependabot[bot]
949ef2ed10 Bump BlurHashSharp from 1.1.1 to 1.2.0
Bumps [BlurHashSharp](https://github.com/Bond-009/BlurHashSharp) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/Bond-009/BlurHashSharp/releases)
- [Commits](https://github.com/Bond-009/BlurHashSharp/commits/v1.2.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-29 12:00:57 +00:00
dependabot[bot]
023467ebce Bump Serilog.AspNetCore from 3.4.0 to 4.1.0
Bumps [Serilog.AspNetCore](https://github.com/serilog/serilog-aspnetcore) from 3.4.0 to 4.1.0.
- [Release notes](https://github.com/serilog/serilog-aspnetcore/releases)
- [Commits](https://github.com/serilog/serilog-aspnetcore/compare/v3.4.0...v4.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-29 12:00:44 +00:00
Stéphane Senart
a7c82b2681 [5644] [DLNA] [Music] Next track command from any DLNA device does not do anything. 2021-03-29 12:11:38 +02:00
David
1669cb6618 Split valid and invalid tests 2021-03-29 10:35:29 +02:00
Brian C. Arnold
998833ea6e Removed null check for body object and user [Required] attribute in replacement. 2021-03-27 23:29:24 -04:00
Brian Arnold
f114ba57dd Fixed comment and code block runes to match coding
standards required by Jellyfin team.
2021-03-27 23:29:24 -04:00
Brian Arnold
81e3e5ca48 Changed SessionController.SendMessageCommand
implementation receive data in the POST body, as that is how the
jellyfin-web client currently posts the data to the server.

Resolves: #5628
2021-03-27 23:29:24 -04:00
Bond-009
a890a85092 Merge pull request #5495 from BaronGreenback/RemoteAccessFix 2021-03-27 17:24:47 +01:00
Dmitry Lyzo
364e8931af Check appropriate profile type 2021-03-27 11:53:57 +03:00
Claus Vium
9144d11a9d Merge pull request #5624 from crobibero/subtitle-format 2021-03-27 09:25:34 +01:00
BaronGreenback
aae2aad0f2 changed split to single quotes 2021-03-27 08:16:48 +00:00
Bond-009
1de031a7c3 Merge pull request #5634 from cvium/directoryservice-case-sensitive
make directoryservice cache case sensitive
2021-03-27 00:51:52 +01:00
crobibero
afe3b5999e Fix route naming 2021-03-26 17:40:55 -06:00
Claus Vium
90d9530aed Merge pull request #5629 from lmaonator/fix-cast-stream-selection 2021-03-27 00:34:57 +01:00
cvium
7670189561 make directoryservice cache case sensitive 2021-03-27 00:26:56 +01:00
David
78f7fdeacc Rename methods and optimize allocations 2021-03-26 17:16:29 +01:00
lmaonator
694d772b11 Update Jellyfin.Api/Controllers/SessionController.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-03-26 14:13:45 +01:00
crobibero
5b758c4711 Mark query parameters as obsolete 2021-03-26 07:07:45 -06:00
lmaonator
db2fbcef2b Fix stream selection having no effect when casting
When casting to jellyfin-mpv-shim from jellyfin-web in the browser,
jellyfin-web sends data about which version (for grouped items) and
which streams the user selected in the browser to the
"Sessions/{sessionId}/Playing" API endpoint.

The API endpoint currently doesn't forward them to jellyfin-mpv-shim
through the Play command, which results in the default streams being
played instead of the browser selected ones.

PlayRequest already has the properties and they are already sent to the
cast client by SendPlayCommand when present.
jellyfin-mpv-shim will already use them to select the wanted streams
when it receives the Play command.

All that's needed to make it work is to take the parameters and assign
them to PlayRequest.
2021-03-26 13:41:34 +01:00
crobibero
e0ff51cf2a Mark query parameters as obsolete 2021-03-25 20:30:15 -06:00
crobibero
73fe9d3f69 Allow subtitle format to be set from query parameter. 2021-03-25 18:06:25 -06:00
Patrick Barron
7364155579 Clean up user deletion 2021-03-25 19:51:27 -04:00
Patrick Barron
a7b29e2fe0 Clean up user renaming 2021-03-25 19:51:27 -04:00
Patrick Barron
daa21c9e99 Add migration 2021-03-25 19:51:27 -04:00
Patrick Barron
ea0a9c2cca Properly configure foreign keys 2021-03-25 19:51:27 -04:00
Patrick Barron
a07ad71222 Use NOCASE collation and index on username field 2021-03-25 19:51:27 -04:00
Patrick Barron
3c4187e780 Add indexes for user permissions and preferences 2021-03-25 19:51:27 -04:00
Patrick Barron
f1cadb27d9 Add id properties for preferences and permissions 2021-03-25 19:51:27 -04:00
Patrick Barron
0a579e5bbd Configure user deletion behavior 2021-03-25 19:51:27 -04:00
Patrick Barron
3ffef5794e Delete unnecessary indexes
Multicolumn indexes can be queried on the first column without needing a separate index
2021-03-25 19:51:26 -04:00
Patrick Barron
36669ff451 Use correct setter access modifiers 2021-03-25 19:51:26 -04:00
Bond-009
6946e58ca4 Merge pull request #5614 from jellyfin/Bond-009-patch-2 2021-03-25 23:55:54 +01:00
Bond-009
4cea6d9ccf Apply suggestions from code review
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-03-25 18:53:36 +01:00
Claus Vium
411570e6d4 Merge pull request #5621 from cvium/enable-range-processing-download
enable range processing for download endpoints
2021-03-25 17:01:18 +01:00
Claus Vium
a76d997a86 Merge pull request #5620 from MrTimscampi/iso-ignore 2021-03-25 17:00:32 +01:00
cvium
b3d084044e enable range processing for download endpoints 2021-03-25 15:09:37 +01:00
MrTimscampi
5bb7d99b48 Remove DVDs from files exempt from chapter image extraction 2021-03-25 13:16:09 +01:00
MrTimscampi
ef9eba8bc9 Ignore format for ISO files 2021-03-25 12:23:29 +01:00
Bond-009
6d0b2ed080 Merge pull request #5579 from cocool97/master 2021-03-25 01:45:43 +01:00
Bond-009
55102973d6 Merge pull request #5596 from BaronGreenback/DLNA_Hardening
Implemented DLNA exception handling
2021-03-25 01:29:10 +01:00
Bond-009
16011d96a0 Merge pull request #5321 from Ullmie02/nfo-thumb 2021-03-25 01:10:37 +01:00
Claus Vium
e64f9f2f66 Merge pull request #5613 from accek/accek-samsung-dlna-fix 2021-03-24 23:04:28 +01:00
Szymon Acedański
b1e8a8565f Update Jellyfin.Api/Helpers/FileStreamResponseHelpers.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-03-24 22:46:08 +01:00
cocool97
86852178c2 Update MediaBrowser.Controller/LiveTv/ChannelInfo.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-03-24 21:23:59 +01:00
Bond-009
066c19a26b Fix possible null ref exception 2021-03-24 21:06:03 +01:00
Szymon Acedański
136136dea9 Fix incorrect responses for HEAD /audio/<id>/stream
Without this fix my Samsung Soundbar (HW-Q80R) fails to play using DLNA
and returns "Error: Resource not found (716)" instead.

I had a look on tcpdump network logs between Jellyfin and the soundbar
and noticed that the device performs a HEAD request for the media before
responding to the DLNA UPNP control request from Jellyfin (or BubbleUPNP
Android App).

Jellyfin retuns 204 No Content response, which is unusual.  Common web
servers generally return 200 OK if the GET would return content, and
this is not-very-clearly suggested [in HTTP
spec](https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.2.1)

The other patch is to ensure, that invalid Content-Length: 0 is not
returned with the HEAD response in the streaming case.

I think in both cases we still don't return the same headers with HEAD
as with GET (e.g. Content-Length or Accept-Ranges), but at least we
don't return anything misleading.
2021-03-24 20:43:54 +01:00
Bond_009
c2cd7fa0b2 Add more PasswordHash tests 2021-03-24 18:39:33 +01:00
Bond_009
d77507ba09 Rewrite PasswordHash.Parse to work with ReadOnlySpans 2021-03-24 18:21:14 +01:00
Mason Tran
415b03d719 Delay starting services until after network is online 2021-03-24 02:35:44 -04:00
David
a4cac09d5b Use |= 2021-03-23 19:25:32 +01:00
David
c2af50c51d Add tests for IsInNetwork 2021-03-23 17:39:55 +01:00
David
19e4ef82dd Remove conversion from IPAddress to string to IPAddress 2021-03-23 17:16:10 +01:00
David
572600b38e Use conditional operator instead of if/else block 2021-03-23 15:47:55 +01:00
BaronGreenback
6765f6ab17 fix compilation 2021-03-23 00:12:14 +00:00
Bond-009
8410a9a266 Merge pull request #5586 from nyanmisaka/disable-autorotate 2021-03-22 22:59:01 +01:00
cvium
74e14b4ca5 fix isdirectstream default 2021-03-22 22:34:47 +01:00
cvium
7dedeb6c79 change HLS endpoint defaults to false 2021-03-22 20:53:55 +01:00
Kenneth SB
4637bbc723 Translated using Weblate (Danish)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/da/
2021-03-22 13:34:36 -04:00
BaronGreenback
4bd345fbab DLNA Exception catching 2021-03-22 17:21:12 +00:00
BaronGreenback
5d16d1f66d Merge branch 'master' into RemoteAccessFix 2021-03-22 17:05:44 +00:00
BaronGreenback
7fa525c83b Added more tests 2021-03-22 17:04:09 +00:00
Nyanmisaka
0853d1265c Disable auto rotation for some HWA methods (#5586)
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-03-22 17:59:57 +01:00
Bond-009
f6671e05fd Merge pull request #5580 from Bond-009/integrationtests2 2021-03-22 17:57:14 +01:00
Bond_009
5253483ce4 Improve naming 2021-03-22 13:49:00 +01:00
Nyanmisaka
fab4bf184e Apply suggestions from code review
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-03-22 19:47:05 +08:00
Nyanmisaka
a6bc191607 Apply suggestions from code review
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-03-22 19:25:41 +08:00
nyanmisaka
fcb070abf7 disable auto rotation for some HWA methods 2021-03-22 18:36:04 +08:00
Joshua M. Boniface
fe8cf29cad Merge pull request from GHSA-wg4c-c9g9-rxhx
Fix issues 1 through 5 from GHSL-2021-050
2021-03-21 19:12:14 -04:00
Joshua M. Boniface
890a490776 Merge pull request #5532 from cvium/fix_episode_extras_questionmark 2021-03-21 15:13:56 -04:00
Bond_009
c5079ebed5 Add tests for GetFirstUser, UpdateStartupUser and CompleteWizard 2021-03-21 03:59:31 +01:00
Bond_009
849ced470a Add StartupControllerTests 2021-03-21 03:26:51 +01:00
LIAUD
72db3df605 Changed CONTRIBUTORS.md 2021-03-20 20:31:38 +01:00
LIAUD
32853ca244 Add 'group-title' channel parsing 2021-03-20 20:15:19 +01:00
Bill Thornton
9fe3ca7a92 Merge pull request #5476 from jellyfin/EraYaN-nuget-ci
Remove BuildPackage dependency for PublishNuget in CI
2021-03-19 20:50:42 -04:00
Erwin de Haan
1f3aa3fe6f Apply review suggestions 2021-03-20 01:28:14 +01:00
Erwin de Haan
470305f75e Authenticated arbitrary file overwrite in SubtitleController -> SubtitleManager
GHSL-2021-050: Issue 5 Arbitrary file overwrite.
2021-03-20 01:14:59 +01:00
Erwin de Haan
239a7156cc Fix arbitrary image file reads in ImageByNameController
GHSL-2021-050: Issue 4 Arbitrary image file read and directory traversal.
2021-03-20 01:14:59 +01:00
Erwin de Haan
f61d18612b Fix directory traversal in the HlsSegmentController in a fairly rudimentary but working way.
GHSL-2021-050: Issue 1,2,3 Arbitrary file read and directory traversal.
The segment id's can probably just be verified to be an actual ID or to not contain any forward or backward slashes
2021-03-20 01:14:59 +01:00
Bond-009
1a0ce16f4d Merge pull request #5504 from crobibero/json-string-converter 2021-03-20 00:48:41 +01:00
David
7685569480 Rollback char.IsDigit 2021-03-19 12:34:21 +01:00
Claus Vium
9360fecb31 Merge pull request #5559 from cvium/fix-tmdb-search-clean
Clean the entity name for non-words before searching
2021-03-19 09:24:20 +01:00
Claus Vium
e1c6bb0482 Merge pull request #5561 from barronpm/permissions-fix 2021-03-19 09:23:32 +01:00
andrewthemeow
9857c21717 Translated using Weblate (Lithuanian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lt/
2021-03-19 02:50:08 -04:00
David
59641e5c76 Use ReadOnlySpan<char> and char.IsDigit 2021-03-18 20:52:56 +01:00
David
840eeff2af Apply suggestions from code review 2021-03-18 11:25:58 +01:00
Patrick Barron
85da0b50e2 Fix user mocking 2021-03-17 21:24:14 -04:00
Patrick Barron
12b8e29aef Fix duplicate permissions 2021-03-17 17:42:45 -04:00
cvium
151156f227 Clean the entity name for non-words before searching 2021-03-17 10:29:45 +01:00
Vitorvlv
37aa3e8735 Translated using Weblate (Portuguese (Brazil))
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/pt_BR/
2021-03-16 23:19:43 -04:00
David
14cbd22fbe Use Helper Methods for provider url parsing 2021-03-16 21:45:12 +01:00
Alyssa Ross
e14311ca8b Translated using Weblate (Esperanto)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/eo/
2021-03-16 15:19:34 -04:00
Bond-009
f42cee4790 Merge pull request #5550 from cvium/revert_underscore_multiversion 2021-03-16 14:38:29 +01:00
cvium
23c3188501 revert underscore as a multiversion separator 2021-03-15 23:24:59 +01:00
Claus Vium
94820f569b Merge pull request #5512 from crobibero/api-spec-version 2021-03-15 18:01:20 +01:00
Claus Vium
baa43c6b41 Merge pull request #5475 from BaronGreenback/SSDPFix 2021-03-15 09:06:15 +01:00
cvium
025e351f61 add unit tests 2021-03-15 08:25:20 +01:00
cvium
ab0cff8556 do not resolve episode-like files if they are in extras folders 2021-03-14 19:56:45 +01:00
BaronGreenback
4c7680e186 Merge remote-tracking branch 'upstream/master' into SubnetOverlappFix 2021-03-14 18:40:44 +00:00
Bond-009
f2125da9f9 Merge pull request #5395 from barronpm/ef-cleanup 2021-03-14 19:08:50 +01:00
BaronGreenback
6087831aa6 Fixed selection of correct interface ip 2021-03-14 17:30:25 +00:00
Patrick Barron
e5380c653b Merge branch 'master' into ef-cleanup
# Conflicts:
#	Jellyfin.Data/Entities/Libraries/MediaFileStream.cs
#	Jellyfin.Data/Jellyfin.Data.csproj
2021-03-14 10:19:35 -04:00
Claus Vium
109f24514f Merge pull request #5510 from BaronGreenback/DlnaFirstFix
Fix: Streaming crashing due to no deviceProfileId match.
2021-03-14 15:07:31 +01:00
Claus Vium
bd70f56218 Merge pull request #5324 from danieladov/master
Fix duplicated movies when group movies into collections is enabled
2021-03-14 13:37:00 +01:00
Bond-009
0e5d4a3bcf Merge pull request #5422 from Bond-009/warn51 2021-03-14 00:41:40 +01:00
Bond-009
5c0c205bed Merge pull request #5522 from Bond-009/integrationtests
Fix integration test project
2021-03-14 00:21:51 +01:00
Bond_009
72d3eed15c Fix integration test project 2021-03-14 01:07:53 +01:00
BaronGreenback
b1f0c5eb49 Update NetworkExtensions.cs
changed description
2021-03-13 22:16:12 +00:00
Bond-009
8bb2420a25 Merge pull request #5518 from crobibero/missing-endpoints
Add missing InstantMix endpoints
2021-03-13 22:59:47 +01:00
Bond_009
01dfa8801a Fix GetDaysOfWeek behavior 2021-03-13 22:40:23 +01:00
Bond_009
46a41ecba6 Sunday isn't a weekend 2021-03-13 22:33:28 +01:00
Bond_009
a8ed753f6c FxCop -> Net Analyzers (part 2) 2021-03-13 22:33:28 +01:00
Bond_009
d9eb7ae6dc Fix invalid crc in TryGetReturnValueOfGetSet_InvalidPacketType test 2021-03-13 21:28:04 +01:00
Bond_009
f9640f4366 Rewrite HdHomerunManager.ParseReturnMessage 2021-03-13 21:12:11 +01:00
Mister Rajoy
8883aa4a37 Merge branch 'master' of https://github.com/danieladov/jellyfin 2021-03-13 20:35:52 +01:00
Mister Rajoy
4cc3b938fa Change Guid.Parse to Guid.TryParse 2021-03-13 20:33:05 +01:00
Bond_009
e8b18e5f8f Add test for HdHomerunManager.ParseReturnMessage 2021-03-13 19:32:40 +01:00
Bond_009
7fb3a354fd Add test for HdHomerunManager.WriteSetMessage with lockkey 2021-03-13 19:24:47 +01:00
Daniel
7a3109104b Remove empty line
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-03-13 19:24:02 +01:00
Daniel
4b17648df3 Remove empty line
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-03-13 19:23:52 +01:00
Bond_009
f5789483fd Add test for HdHomerunManager.WriteSetMessage 2021-03-13 19:21:29 +01:00
crobibero
9ac9543ee2 Add missing InstantMix endpoints 2021-03-13 09:09:22 -07:00
crobibero
1169a0214b Set default version 2021-03-13 08:43:14 -07:00
crobibero
37b1b31a46 Convert full ValueSequence 2021-03-13 08:41:16 -07:00
Bond-009
260b48ef9d Merge pull request #5515 from jellyfin/fix-refresh-endpoint
fix refresh endpoint
2021-03-13 15:07:42 +01:00
Bond-009
b755c25217 Merge pull request #5220 from Bond-009/hdhomerun 2021-03-13 15:05:18 +01:00
Bond-009
7a988ef77d Merge pull request #5500 from crobibero/api-integration-fix
Fix third party integration
2021-03-13 15:03:06 +01:00
Claus Vium
fe2a310fe2 fix refresh endpoint
It was originally a POST 9af6eda0b4/MediaBrowser.Api/Library/LibraryService.cs (L155)
2021-03-13 09:13:45 +01:00
crobibero
500832bdfd Set openapi version to server version 2021-03-12 17:11:43 -07:00
BaronGreenback
1d5b7b61fb Change First to FirstOrDefault 2021-03-12 22:20:13 +00:00
BaronGreenback
4cf88f67ba Update NetworkManager.cs 2021-03-12 14:58:04 +00:00
BaronGreenback
b7fb152faf Update tests/Jellyfin.Networking.Tests/NetworkParseTests.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-03-12 14:44:05 +00:00
crobibero
e814d8e2cf Add JsonStringConverter 2021-03-12 06:43:57 -07:00
WWWesten
80846a1c66 Translated using Weblate (Kazakh)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/kk/
2021-03-12 08:21:06 -05:00
Bond-009
a037e30b41 Merge pull request #5457 from cvium/fix_double_artist 2021-03-12 13:18:12 +01:00
crobibero
eef15dc7ac Fix third part integration 2021-03-11 22:45:58 -07:00
Bond-009
d7f0aaaec1 Merge pull request #5417 from Bond-009/codeanal
Add code analysis attributes where appropriate
2021-03-12 00:15:12 +01:00
BaronGreenback
e5914fd28c split tests 2021-03-11 22:47:37 +00:00
BaronGreenback
3fa84500cf Update Jellyfin.Networking/Manager/NetworkManager.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-03-11 22:46:24 +00:00
BaronGreenback
f66cb9777d Update Jellyfin.Networking/Manager/NetworkManager.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-03-11 22:46:07 +00:00
BaronGreenback
034ee38583 Update Jellyfin.sln
reverted
2021-03-11 21:42:01 +00:00
BaronGreenback
3fdf0de6e3 Fix remote access 2021-03-11 21:36:58 +00:00
Bond-009
e3adc9ab74 Merge pull request #5480 from crobibero/api-session-message-type
Add SessionMessageType to generated openapi spec
2021-03-11 22:35:33 +01:00
Bond-009
d967267cef Merge pull request #5461 from cvium/fix_multiversion 2021-03-11 22:31:06 +01:00
Anthony Lavado
227eaca99c Merge pull request #5490 from thornbill/remove-forum-badge 2021-03-11 10:45:06 -05:00
Bill Thornton
e6407b414b Remove forum badge 2021-03-11 09:34:10 -05:00
crobibero
8e09276d7d Add websocket session message type to generated openapi.json 2021-03-10 16:33:46 -07:00
Erwin de Haan
b827913fcf Run CollectArtifacts taks regardless of result from BuildPackage and BuildDocker 2021-03-10 21:09:45 +01:00
Erwin de Haan
e6f49f5009 Remove BuildPackage dependeny for PublishNuget in CI 2021-03-10 21:00:33 +01:00
BaronGreenback
1723ed1604 removed the space AGAIN!!! 2021-03-10 19:59:58 +00:00
BaronGreenback
5db998e135 removed space. 2021-03-10 19:59:18 +00:00
BaronGreenback
0960c945d0 Revert "removed space"
This reverts commit a324d8a9c5.
2021-03-10 19:58:45 +00:00
BaronGreenback
a324d8a9c5 removed space 2021-03-10 19:57:32 +00:00
BaronGreenback
1dd6036765 Fixed false starts 2021-03-10 19:56:33 +00:00
BaronGreenback
2f843b3b48 Hide msg if dlna disabled 2021-03-10 19:32:13 +00:00
BaronGreenback
eafb8cf652 Null Pointer fix 2021-03-10 19:27:22 +00:00
cvium
7d69c2550c fix copy/paste error in test 2021-03-10 19:30:23 +01:00
cvium
b0af11c34e make the eligibility check more strict wrt. brackets 2021-03-10 19:29:52 +01:00
David
954148eb6d Fix Radarr url nfo files 2021-03-10 17:08:24 +01:00
David
8a74d76598 Fix id tag setting IMDb id when it is TMDb id 2021-03-10 17:03:19 +01:00
BaronGreenback
2fe26ef136 removed parameter preset 2021-03-10 13:28:18 +00:00
Claus Vium
5592967497 Merge pull request #5403 from BaronGreenback/DLNAProfileFix 2021-03-10 11:50:08 +01:00
cvium
3824c09e77 fix multiversion eligibility check for complex folder names 2021-03-10 10:47:35 +01:00
BaronGreenback
84da57cd48 Update StreamingHelpers.cs
Updated condition
2021-03-10 09:07:11 +00:00
Claus Vium
84e16a8535 Merge pull request #5431 from cvium/fix_tmdb_imdbid
Use imdbid as fallback in movie provider
2021-03-10 08:37:00 +01:00
cvium
c5a870051a Use distinct for artists to avoid double refreshing 2021-03-10 08:20:02 +01:00
Claus Vium
88a8fa7100 Merge pull request #5447 from joshuaboniface/fix-fedora-build
Remove Microsoft repo from install step
2021-03-09 19:41:25 +01:00
Claus Vium
329edd9dbe Merge pull request #5444 from Ullmie02/hdhr-fix 2021-03-09 19:41:01 +01:00
Joshua M. Boniface
235b36a4c7 Remove Microsoft repo from install step
This was breaking Fedora builds due to a mismatch. We can use the .NET
SDK 5.0 from the Fedora 33 repos instead and this seems to work.
2021-03-09 12:41:51 -05:00
David
ece0d67f99 Use FileShare.Read for log files 2021-03-09 17:31:31 +01:00
David
eca3b37d6e Use FileShare.Read to fix HdHomeRun 2021-03-09 17:01:05 +01:00
Bond-009
97fd136a8c Merge pull request #5428 from cvium/fix_tmdb_year
Default to the searchinfo year, fallback to parsed year
2021-03-09 15:59:37 +01:00
Bond-009
087e98d78a Merge pull request #5336 from Bond-009/integration 2021-03-09 14:51:45 +01:00
Bond_009
a618d6053f Move TestPluginWithoutPages to the correct project 2021-03-09 14:24:19 +01:00
Bond_009
37eb7d6d49 Perform static initialization only once 2021-03-09 14:24:19 +01:00
Bond_009
b9577d0fd9 Check for specific status code instead of success 2021-03-09 14:24:19 +01:00
Bond_009
3471ddfc84 Fix duplicate project id in sln 2021-03-09 14:24:17 +01:00
Bond_009
bbbb811e72 Fix azure 2021-03-09 14:21:30 +01:00
Bond_009
afc70b28d4 Add Jellyfin.Server.Tests to solution 2021-03-09 14:21:28 +01:00
Bond_009
fa8bfece4e Split integration tests from unit tests 2021-03-09 14:17:59 +01:00
cvium
880c8636bc Use imdbid as fallback in movie provider
Includes post-ProviderIdExtensions cleanup
2021-03-09 11:44:39 +01:00
cvium
80fb52e64f Default to the searchinfo year, fallback to parsed year 2021-03-09 10:46:54 +01:00
Bond-009
94db751f4b Merge pull request #4754 from jellyfin/warn50 2021-03-09 05:58:01 +01:00
pkreuzt
e89bd8ba02 Translated using Weblate (Galician)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/gl/
2021-03-08 23:04:24 -05:00
Bond_009
d202df6e8a Remove useless line 2021-03-09 03:22:51 +01:00
Bond_009
9ed7f429c0 FxCop -> Net Analyzers (part 1) 2021-03-09 03:04:47 +01:00
Bond_009
5241bd41ef Add code analysis attributes where appropriate 2021-03-09 01:28:21 +01:00
BaronGreenback
a031f7e410 Fix for multiple ip's in the same subnet per interface. 2021-03-09 00:07:21 +00:00
Joshua M. Boniface
3c46f10e3d Merge pull request #5315 from BaronGreenback/FixFor5280Part2 2021-03-08 18:06:40 -05:00
Joshua M. Boniface
0ef8bea125 Merge pull request #5406 from cvium/trycleanstring-dont-die-on-me 2021-03-08 16:54:26 -05:00
Joshua M. Boniface
82d88bdec6 Merge pull request #5409 from ikomhoog/master 2021-03-08 16:39:40 -05:00
Claus Vium
90cdd1345d Merge pull request #5407 from Bond-009/hack 2021-03-08 21:23:14 +01:00
BaronGreenback
d3390302f9 Update ApplicationHost.cs 2021-03-08 11:43:59 +00:00
Bond_009
54f81c4da4 Call ToLower on CollectionTypeOptions.ToString 2021-03-08 12:08:17 +01:00
Ikomhoog
02122f28cc Update contributors 2021-03-08 11:14:01 +01:00
Ikomhoog
d4201f812c Changed string.Length == 0 to string.IsNullOrEmpty in case of null 2021-03-08 11:02:51 +01:00
Bond_009
2e62c09f2e Fix casing CollectionType 2021-03-08 02:16:35 +01:00
Joshua M. Boniface
480dd66428 Merge pull request #5402 from Ullmie02/fix-null-size
Use FileShare.None when creating files
2021-03-07 19:37:21 -05:00
WWWesten
bc95268bd6 Translated using Weblate (Kazakh)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/kk/
2021-03-07 17:24:42 -05:00
cvium
fcacae8cde return empty span instead of null for backwards compat 2021-03-07 22:59:08 +01:00
cvium
e0db17a935 do not throw ArgumentNullException in TryCleanString 2021-03-07 22:49:31 +01:00
BaronGreenback
75c9659e05 Fix unreachable code & assign id to each profile. 2021-03-07 14:17:32 +00:00
David
60ffa6f514 Use FileShare.None when creating files 2021-03-07 14:43:28 +01:00
Bond-009
a1cdc2c63f Merge pull request #5385 from Bond-009/dlna2
Use XDocument.LoadAsync instead of XDocument.Parse
2021-03-07 02:38:05 +01:00
Patrick Barron
7c413a323b Move EF Core dependency out of Jellyfin.Data 2021-03-06 20:33:11 -05:00
Patrick Barron
7b37ae94f7 Remove unused factory method 2021-03-06 20:02:42 -05:00
Patrick Barron
f638ee6b09 Enable nullable for Jellyfin.Data and remove unnecessary attributes 2021-03-06 17:43:01 -05:00
Patrick Barron
287dab4655 Remove constructor side effects and remove unneeded parameterless constructors 2021-03-06 17:37:47 -05:00
Bond-009
497ea57fd2 Merge pull request #5381 from cvium/fix-network-substitution 2021-03-06 21:38:32 +01:00
cvium
946411be8e Remove redundant check 2021-03-06 21:18:20 +01:00
cvium
67af30d1ff Remove redundant checks 2021-03-06 20:53:50 +01:00
cvium
54211b921c rider is a prick 2021-03-06 19:07:02 +01:00
David Ullmer
b8d52dafa9 Update MediaBrowser.XbmcMetadata/Parsers/BaseNfoParser.cs
Co-authored-by: Bond-009 <bond.009@outlook.com>
2021-03-06 16:02:52 +01:00
David
6f898145af Use Uri.TryCreate and ImageType helper method 2021-03-06 14:50:27 +01:00
cvium
bc661c16e1 simplify 2021-03-06 14:01:37 +01:00
dkanada
22402650cb Merge pull request #5354 from shortspider/AddFfmpegToReadme
Update README to include ffmpeg
2021-03-06 13:40:08 +09:00
Nathan Mascitelli
10229e1afe Link to jellyfin-ffmpeg 2021-03-05 23:09:35 -05:00
Bond_009
e8413ed8c0 Use XDocument.LoadAsync instead of XDocument.Parse 2021-03-06 03:33:52 +01:00
Bond-009
e839929b91 Merge pull request #5380 from Bond-009/plugins
100% branch coverage for DashboardController
2021-03-06 00:59:28 +01:00
Bond-009
db2d1bca33 Merge pull request #5382 from crobibero/json-version-converter 2021-03-06 00:03:08 +01:00
Smith00101010
6293629d32 Apply suggested formatting changes
Co-authored-by: BaronGreenback <jimcartlidge@yahoo.co.uk>
2021-03-05 22:51:08 +01:00
Bond-009
3741be51ec Merge pull request #5383 from cvium/fix-mergeversions-overflow
do not pick a linked item as primary when merging versions
2021-03-05 21:57:22 +01:00
Bond-009
1d87274cc2 Merge pull request #5377 from cvium/fix-tmdb-image-languages
Do not use language or imagelanguages when searching for images with TMDb
2021-03-05 21:56:09 +01:00
cvium
59814bd55e do not pick a linked item as primary when merging versions 2021-03-05 19:57:48 +01:00
Claus Vium
d0a2d00b29 Fix UpdateMediaPath model binding (#5378) 2021-03-05 16:56:21 +01:00
Cody Robibero
df1951cfe2 Apply suggestions from code review
Co-authored-by: dkanada <dkanada@users.noreply.github.com>
2021-03-05 08:30:49 -07:00
crobibero
fd0b3ca5ef Add JsonVersionConverter and tests 2021-03-05 07:48:45 -07:00
cvium
37e374d33d make sure network path substitution matches correctly 2021-03-05 14:09:23 +01:00
Bond_009
a6d0db5d04 100% branch coverage for DashboardController 2021-03-05 11:15:14 +01:00
Bond-009
a0f6bc14a2 Merge pull request #5375 from crobibero/default-api-value
Specify defaults or set query parameter to nullable
2021-03-05 11:04:47 +01:00
Nichgon
ed7154db68 Translated using Weblate (Thai)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/th/
2021-03-05 02:54:45 -05:00
cvium
ba366118f9 Do not use language or imagelanguages when searching for images
TMDb API returns all images if languages are excluded, which is needed for the All Languages toggle in Identify.
2021-03-05 08:18:04 +01:00
crobibero
858c91ab48 Specify defaults or set query parameter to nullable 2021-03-04 18:25:52 -07:00
dkanada
8615847a8a Merge pull request #5345 from BaronGreenback/IP6Fix
Dual IP4 / IP6 server fails on non-windows platforms
2021-03-04 17:03:53 +09:00
dkanada
74a927db3e Merge pull request #5362 from crobibero/case-json
Fix case-sensitive json parsing
2021-03-04 17:02:16 +09:00
crobibero
631c0a35f6 Always use case insensitive json parsing for api 2021-03-03 17:11:19 -07:00
Claus Vium
ddc62a89ba Merge pull request #5356 from cvium/fix_provideridextensions
return false when providerid is null or empty
2021-03-03 17:24:58 +01:00
BaronGreenback
d819a1d928 Remove Content-Length header from DLNA HEAD request (#5335) 2021-03-03 15:41:18 +01:00
Bond-009
72d063c563 Merge pull request #5359 from cvium/fix_broadcasttimer_disposed
Do nothing in timer callback when device locator is disposed
2021-03-03 15:27:46 +01:00
cvium
610a30d791 Do nothing in timer callback when device locator is disposed 2021-03-03 15:13:43 +01:00
cvium
8b72b902f5 fix HasProviderId and add tests 2021-03-03 12:28:40 +01:00
cvium
a49f5d2a44 revert removal of null check 2021-03-03 09:37:21 +01:00
cvium
664c5da317 return false when providerid is null or empty 2021-03-03 09:09:57 +01:00
Nathan Mascitelli
bfe84affb3 Update README to include ffmpeg 2021-03-02 22:20:41 -05:00
David Ullmer
8f99bdd07c Fix TMDb search name containing year (#5349) 2021-03-02 21:17:25 +01:00
BaronGreenback
c275c5c1ea Update Jellyfin.Server/Program.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-03-02 08:57:27 +00:00
Claus Vium
e858e5f0b8 Merge pull request #5339 from Bond-009/hasproviderids
Revert breaking change to HasProviderId
2021-03-02 09:35:51 +01:00
Bond-009
1f0bbe266c Merge pull request #5342 from BaronGreenback/errorMessageCorrection
Corrected logging message
2021-03-02 03:07:45 +01:00
Patrick Barron
b5e3c02865 Move IHasPermissions.cs to correct namespace 2021-03-01 19:37:46 -05:00
BaronGreenback
5942948714 Kestrel workaround 2021-03-01 23:42:04 +00:00
Claus Vium
0b1b99c2ca Merge pull request #5338 from Bond-009/ssatests
Remove tests that are upstreamed
2021-03-01 23:40:11 +01:00
BaronGreenback
dedc94ec91 correction of ip6 loopback 2021-03-01 21:32:49 +00:00
BaronGreenback
fdd4b6b3f1 Changed message 2021-03-01 21:02:20 +00:00
Bond_009
ba62d9d1fe Revert breaking change 2021-03-01 20:35:38 +01:00
Bond_009
ed0267252f Remove tests that are upstreamed
libse (the SSA parser we use) has these same tests now
2021-03-01 20:00:00 +01:00
Bond-009
9390dd2df8 Merge pull request #5317 from Bond-009/notnullwhen
MaybeNullWhen(false) -> NotNullWhen(true)
2021-03-01 18:58:46 +01:00
Bond-009
c2af32d035 Merge pull request #5299 from Bond-009/tests13 2021-03-01 18:51:09 +01:00
Bond-009
557a2ad715 Merge pull request #5328 from jellyfin/dependabot/nuget/Moq-4.16.1
Bump Moq from 4.16.0 to 4.16.1
2021-03-01 15:51:27 +01:00
dependabot[bot]
b0d391427b Bump Moq from 4.16.0 to 4.16.1
Bumps [Moq](https://github.com/moq/moq4) from 4.16.0 to 4.16.1.
- [Release notes](https://github.com/moq/moq4/releases)
- [Changelog](https://github.com/moq/moq4/blob/main/CHANGELOG.md)
- [Commits](https://github.com/moq/moq4/compare/v4.16.0...v4.16.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-01 14:06:48 +00:00
Bond-009
640f341ce5 Merge pull request #5327 from jellyfin/dependabot/nuget/Microsoft.NET.Test.Sdk-16.9.1
Bump Microsoft.NET.Test.Sdk from 16.8.3 to 16.9.1
2021-03-01 15:06:03 +01:00
Bond-009
153021eec6 Merge pull request #5326 from jellyfin/dependabot/nuget/libse-3.6.0
Bump libse from 3.5.8 to 3.6.0
2021-03-01 14:30:59 +01:00
dependabot[bot]
829442c419 Bump Microsoft.NET.Test.Sdk from 16.8.3 to 16.9.1
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.8.3 to 16.9.1.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.8.3...v16.9.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-01 12:00:38 +00:00
dependabot[bot]
fef43c556d Bump libse from 3.5.8 to 3.6.0
Bumps [libse](https://github.com/SubtitleEdit/subtitleedit) from 3.5.8 to 3.6.0.
- [Release notes](https://github.com/SubtitleEdit/subtitleedit/releases)
- [Changelog](https://github.com/SubtitleEdit/subtitleedit/blob/master/Changelog.txt)
- [Commits](https://github.com/SubtitleEdit/subtitleedit/compare/3.5.8...3.6.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-01 12:00:38 +00:00
Csaba
f6c49f1373 Translated using Weblate (Hungarian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/hu/
2021-03-01 04:54:59 -05:00
Mister Rajoy
18cd634ec8 Fix duplicated movies when group movies into collections is enabled 2021-02-28 23:03:28 +01:00
Moshe Schmidt
4bbfcaef83 Include specials in the calculation for the "Next Up" episode. Fixes #1479 2021-02-28 21:21:26 +01:00
Sebastian
0fde0a82e4 Translated using Weblate (Swedish)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sv/
2021-02-28 10:01:34 -05:00
David
16694b0cfc Add nfo thumb tag support 2021-02-28 15:00:17 +01:00
dkanada
0cf4c7857b Merge pull request #5314 from barronpm/cleanup
Remove unused entity
2021-02-28 19:27:48 +09:00
BaronGreenback
8836242559 fixed tests 2021-02-28 10:25:14 +00:00
BaronGreenback
caa8e7cdf3 fixed build 2021-02-28 10:16:28 +00:00
BaronGreenback
159ecb882f Fixed bad sync 2021-02-28 10:14:05 +00:00
BaronGreenback
80ca3da55c Merge remote-tracking branch 'upstream/master' into FixFor5280Part2 2021-02-28 10:12:14 +00:00
BaronGreenback
1d6f489f17 comment change 2021-02-28 10:11:37 +00:00
BaronGreenback
f666b7e102 fix 2021-02-27 23:32:22 +00:00
Bond_009
02848189e3 MaybeNullWhen(false) -> NotNullWhen(true) 2021-02-28 00:10:36 +01:00
Claus Vium
f8c9c37c29 Merge pull request #5181 from BaronGreenback/Fix_IPHostIP6Parsing 2021-02-27 22:52:24 +01:00
Claus Vium
14605280a0 Merge pull request #5274 from BaronGreenback/bindfix 2021-02-27 22:51:45 +01:00
BaronGreenback
5074d67379 performance 2021-02-27 21:17:58 +00:00
BaronGreenback
cc19d281e7 Update Jellyfin.Networking/Manager/NetworkManager.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-02-27 19:10:58 +00:00
BaronGreenback
d99d95422e Update Jellyfin.Networking/Manager/NetworkManager.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-02-27 19:10:53 +00:00
Claus Vium
64730b5661 Merge pull request #5278 from BaronGreenback/STRMFix
Fix for #5168
2021-02-27 20:07:45 +01:00
Claus Vium
9e77fdc70d Merge pull request #5312 from BaronGreenback/FixFor5280 2021-02-27 20:01:51 +01:00
Claus Vium
e5f99762e2 Merge pull request #5073 from BaronGreenback/ffmpeg
Fix for 4933: Alternative ffmpeg fix
2021-02-27 19:55:52 +01:00
BaronGreenback
73ca367bf9 Update Emby.Server.Implementations/ApplicationHost.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-02-27 17:34:48 +00:00
BaronGreenback
9f03064ad8 Update MediaBrowser.Controller/IServerApplicationHost.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-02-27 17:34:44 +00:00
Patrick Barron
ebb6467db4 Remove unused entity 2021-02-27 11:42:37 -05:00
BaronGreenback
d95ca20fc7 removed bad merge code 2021-02-27 14:05:13 +00:00
BaronGreenback
a25e3c0256 fix for override ports contained in PublishedServerUrl 2021-02-27 13:56:21 +00:00
Eben van Deventer
0a1b91f084 Translated using Weblate (Afrikaans)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/af/
2021-02-26 15:41:34 -05:00
Patrick Barron
9413d974f3 Switch to using declarations in MediaBrowser.Providers 2021-02-25 20:38:18 -05:00
Patrick Barron
03cc6b1d78 Make styling more consistent 2021-02-25 19:02:27 -05:00
dkanada
c54ca489f1 Merge pull request #5217 from jellyfin/auto-manifest
handle plugin manifests automatically
2021-02-25 17:17:34 +09:00
Raúl Estévez
bae97322a0 Translated using Weblate (Galician)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/gl/
2021-02-24 17:17:00 -05:00
Bond_009
2bc1eef4dd Clean up code 2021-02-24 22:18:59 +01:00
Bond-009
5860979500 Merge pull request #5301 from Bond-009/validinput 2021-02-24 22:02:47 +01:00
sebastianporta
1569cc301c Translated using Weblate (Spanish (Mexico))
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/es_MX/
2021-02-24 10:50:20 -05:00
BaronGreenback
039a4fb22d renamed method 2021-02-24 11:42:09 +00:00
Bond-009
bc7e31a1bc Merge pull request #5285 from Bond-009/tests11 2021-02-24 12:15:06 +01:00
Bond_009
81f527f808 CollectionType can be null 2021-02-24 11:57:04 +01:00
Bond_009
1c74e2f40e Fix build 2021-02-24 02:57:10 +01:00
Christopher G
82634a9934 Translated using Weblate (Indonesian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/id/
2021-02-23 20:28:45 -05:00
Bond_009
914e891689 Fix unchecked input 2021-02-24 02:05:12 +01:00
BaronGreenback
b5c6e5fb97 Update Jellyfin.Networking/Manager/NetworkManager.cs
Co-authored-by: Bond-009 <bond.009@outlook.com>
2021-02-23 20:34:42 +00:00
BaronGreenback
f67137004c Update Jellyfin.Networking/Manager/NetworkManager.cs
Co-authored-by: Bond-009 <bond.009@outlook.com>
2021-02-23 20:34:32 +00:00
BaronGreenback
ff7cae8a13 renamed method 2021-02-23 17:06:40 +00:00
Bond_009
032d72a8a7 Pls fix race condition 2021-02-23 17:30:24 +01:00
Bond_009
acac21d8dc Improve tests 2021-02-23 16:45:10 +01:00
dkanada
9bfe945f6c catch http exception and fix possible issues 2021-02-24 00:03:26 +09:00
dkanada
fb2d178242 add await directive for image download
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-02-23 23:39:33 +09:00
dkanada
e9030a62fb remove useless call to dispose
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-02-23 23:37:32 +09:00
dkanada
454deece13 improve performance in the wrong place
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-02-23 23:36:49 +09:00
dkanada
64cc5889f2 add suggested changes 2021-02-23 23:11:17 +09:00
Bond_009
aff0aea60f Improve branch coverage 2021-02-23 14:14:02 +01:00
Bond-009
92e5a5c6e8 Merge pull request #5166 from netpok/index-number-end-from-nfo 2021-02-23 13:00:16 +01:00
Bond-009
e09e67deae Merge branch 'master' into tests11 2021-02-23 12:54:05 +01:00
dkanada
b18bb3d0de update timestamp parse for plugins 2021-02-23 19:22:20 +09:00
dkanada
bc746b4d05 merge branch 'master' into auto-manifest 2021-02-23 19:19:38 +09:00
Balázs Váradi
a015caba3f Remove unnecessary sanity check 2021-02-23 06:34:46 +01:00
Joshua M. Boniface
7ece3c5523 Merge pull request #5273 from Bond-009/warn31 2021-02-22 21:00:46 -05:00
Joshua M. Boniface
c0c4aff8a6 Merge pull request #5276 from Bond-009/minor12 2021-02-22 21:00:34 -05:00
Joshua M. Boniface
da55462d92 Merge pull request #5291 from Bond-009/tests12 2021-02-22 21:00:15 -05:00
Joshua M. Boniface
1442a63556 Merge pull request #5290 from Bond-009/nullref
Fix possible null ref exception
2021-02-22 21:00:04 -05:00
Joshua M. Boniface
5ce4df4178 Merge pull request #5270 from Bond-009/imdb 2021-02-22 20:59:57 -05:00
Joshua M. Boniface
23ff1fab46 Merge pull request #4984 from Bond-009/subtitleedit 2021-02-22 20:59:49 -05:00
Bond-009
6cfec511c3 Merge pull request #5287 from jellyfin/dependabot/nuget/Swashbuckle.AspNetCore-6.0.7
Bump Swashbuckle.AspNetCore from 6.0.5 to 6.0.7
2021-02-22 17:13:01 +01:00
dependabot[bot]
875e02318c Bump Swashbuckle.AspNetCore from 6.0.5 to 6.0.7
Bumps [Swashbuckle.AspNetCore](https://github.com/domaindrivendev/Swashbuckle.AspNetCore) from 6.0.5 to 6.0.7.
- [Release notes](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/releases)
- [Commits](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/compare/v6.0.5...v6.0.7)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-22 16:11:56 +00:00
Bond-009
accb0ad08b Merge pull request #5289 from jellyfin/dependabot/nuget/Swashbuckle.AspNetCore.ReDoc-6.0.7
Bump Swashbuckle.AspNetCore.ReDoc from 6.0.5 to 6.0.7
2021-02-22 17:11:21 +01:00
Bond-009
003945f25b Update MediaBrowser.Model/LiveTv/LiveTvChannelQuery.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-02-22 17:10:42 +01:00
Bond_009
baadc48f43 Address comments 2021-02-22 16:27:02 +01:00
Bond-009
799fd8f545 Merge pull request #5288 from jellyfin/dependabot/nuget/sharpcompress-0.28.1
Bump sharpcompress from 0.28.0 to 0.28.1
2021-02-22 14:16:22 +01:00
Bond-009
c9ea66f0bd Merge pull request #5286 from jellyfin/dependabot/nuget/coverlet.collector-3.0.3
Bump coverlet.collector from 3.0.2 to 3.0.3
2021-02-22 14:15:22 +01:00
Bond_009
ec3237ba55 Fix tests 2021-02-22 13:46:40 +01:00
Bond_009
57102090d3 Add tests for DashboardController 2021-02-22 13:15:29 +01:00
Bond_009
93a1f434a3 Fix possible null ref exception 2021-02-22 13:13:31 +01:00
dependabot[bot]
29fb2c57c8 Bump Swashbuckle.AspNetCore.ReDoc from 6.0.5 to 6.0.7
Bumps [Swashbuckle.AspNetCore.ReDoc](https://github.com/domaindrivendev/Swashbuckle.AspNetCore) from 6.0.5 to 6.0.7.
- [Release notes](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/releases)
- [Commits](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/compare/v6.0.5...v6.0.7)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-22 12:00:48 +00:00
dependabot[bot]
35f460998b Bump sharpcompress from 0.28.0 to 0.28.1
Bumps [sharpcompress](https://github.com/adamhathcock/sharpcompress) from 0.28.0 to 0.28.1.
- [Release notes](https://github.com/adamhathcock/sharpcompress/releases)
- [Commits](https://github.com/adamhathcock/sharpcompress/compare/0.28...0.28.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-22 12:00:47 +00:00
dependabot[bot]
d033c30cd7 Bump coverlet.collector from 3.0.2 to 3.0.3
Bumps [coverlet.collector](https://github.com/coverlet-coverage/coverlet) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/coverlet-coverage/coverlet/releases)
- [Commits](https://github.com/coverlet-coverage/coverlet/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-22 12:00:42 +00:00
Bond_009
ff10dd9e12 Update deps Jellyfin.Model.Tests 2021-02-22 09:58:23 +01:00
Bond-009
0beda0e32c Merge pull request #5275 from BaronGreenback/upnpStartupFix
Fixes #5148
2021-02-21 19:59:15 +01:00
BaronGreenback
473a995650 Update SubtitleEncoder.cs 2021-02-21 15:53:20 +00:00
denikrejn1000
0d3606a746 Translated using Weblate (Serbian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sr/
2021-02-21 10:42:19 -05:00
BaronGreenback
7bfc59b562 Fixed test data. 2021-02-21 13:41:37 +00:00
Claus Vium
c715bc6dd9 Merge pull request #5277 from Bond-009/modeltests
Add Jellyfin.Model.Tests project to the solution
2021-02-21 07:57:57 +01:00
Bond_009
b489761658 Add Jellyfin.Model.Tests project to the solution 2021-02-21 03:06:59 +01:00
Bond_009
b1fe28d0a6 Use GetEncodingOptions where possible 2021-02-21 02:58:30 +01:00
Bond_009
eba859e33e Minor improvements 2021-02-21 02:49:52 +01:00
BaronGreenback
5756c6dbad Merge branch 'master' into bindfix 2021-02-21 00:44:14 +00:00
BaronGreenback
cb09096a59 optimized 2021-02-21 00:42:06 +00:00
BaronGreenback
b03bd7a299 Fix testing 2021-02-21 00:41:14 +00:00
BaronGreenback
c50d0dbc72 Fixed startup racing issue 2021-02-20 23:06:48 +00:00
BaronGreenback
605bd80251 Fix for ignoreVirtualInterfaces 2021-02-20 22:46:16 +00:00
Bond_009
401bafbfd0 Address comments 2021-02-20 23:36:22 +01:00
hoanghuy309
55dd0da5da Translated using Weblate (Vietnamese)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/vi/
2021-02-20 17:34:16 -05: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
dkanada
13d65318eb Merge pull request #5223 from Bond-009/minor10
Minor improvements
2021-02-20 10:56:55 +09:00
dkanada
175e2a5249 Merge pull request #5242 from jellyfin/cancellationtokens
Properly forward cancellationTokens
2021-02-20 10:52:30 +09:00
Bond_009
2b131ddaac Cover all branches 2021-02-19 17:26:34 +01:00
Bond_009
941d3f6217 Add tests for ProviderIdsExtensions 2021-02-19 17:01:52 +01:00
Bond_009
b2700ecf44 TMDB: Also search with IMDB or TVDB Id if specified 2021-02-19 16:09:23 +01:00
Andrew Rabert
5379fa0bd0 Merge pull request #5263 from Bond-009/tmdb
TMDB: Include year in search
2021-02-18 17:29:32 -05:00
Bond_009
c1b17b2fa4 TMDB: Include year in search 2021-02-18 22:58:18 +01:00
Bond-009
ae30eaf320 Merge pull request #5255 from cvium/fix_renameuser 2021-02-18 17:52:25 +01:00
Bond-009
4996c997d7 Merge pull request #5253 from jellyfin/tests10
Fix broken test
2021-02-18 17:47:57 +01:00
cvium
2112d2a9a0 Restructure tests 2021-02-17 11:51:15 +01:00
cvium
442e770688 Validate the new username when renaming 2021-02-17 11:30:14 +01:00
Bond_009
54eee41207 Fix broken test 2021-02-17 10:38:44 +01:00
Bond-009
467cd9227e Merge pull request #5251 from crobibero/vpp-null-ref
Fix vpp null reference
2021-02-17 10:07:54 +01:00
dkanada
b4c2086138 Merge pull request #5250 from barronpm/user-rename-fix
Fix user renaming logic
2021-02-17 11:49:59 +09:00
dkanada
1e2ce4e698 Merge pull request #5243 from crobibero/wish-i-had-my-swagger-back
Bump Swashbuckle.AspNetCore to 6.0.5
2021-02-17 11:48:05 +09:00
crobibero
0cce843f07 Fix vpp null reference 2021-02-16 19:14:17 -07:00
Patrick Barron
f127096660 Don't allow new users to be created with the same name as an existing user. 2021-02-16 20:48:41 -05:00
Patrick Barron
1171b5ab92 Fix user renaming logic 2021-02-16 20:41:53 -05:00
Bond-009
91ee1b1d02 Merge pull request #5235 from Ullmie02/nfo-tests 2021-02-15 20:17:57 +01:00
crobibero
9da972682c Enable non-nullable reference types in generated api spec 2021-02-15 10:08:38 -07:00
crobibero
6ad2544a30 Bump Swashbuckle.AspNetCore to 6.0.5 2021-02-15 10:07:50 -07:00
Bond-009
32934cb33d Merge pull request #5230 from orryverducci/double-rate-deint-fix
Fix double rate deinterlacing for some TS files
2021-02-15 14:35:07 +01:00
Bond-009
4770085c63 Merge pull request #5239 from jellyfin/dependabot/nuget/sharpcompress-0.28.0
Bump sharpcompress from 0.27.1 to 0.28.0
2021-02-15 14:33:51 +01:00
Bond-009
d1888d6d10 Merge pull request #5241 from jellyfin/dependabot/nuget/Swashbuckle.AspNetCore.ReDoc-6.0.5
Bump Swashbuckle.AspNetCore.ReDoc from 6.0.2 to 6.0.5
2021-02-15 14:33:03 +01:00
Bond_009
e9f22303a4 Properly forward cancellationTokens 2021-02-15 14:19:17 +01:00
dependabot[bot]
7feef9a01b Bump Swashbuckle.AspNetCore.ReDoc from 6.0.2 to 6.0.5
Bumps [Swashbuckle.AspNetCore.ReDoc](https://github.com/domaindrivendev/Swashbuckle.AspNetCore) from 6.0.2 to 6.0.5.
- [Release notes](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/releases)
- [Commits](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/compare/v6.0.2...v6.0.5)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-15 12:00:48 +00:00
dependabot[bot]
8a22913c84 Bump sharpcompress from 0.27.1 to 0.28.0
Bumps [sharpcompress](https://github.com/adamhathcock/sharpcompress) from 0.27.1 to 0.28.0.
- [Release notes](https://github.com/adamhathcock/sharpcompress/releases)
- [Commits](https://github.com/adamhathcock/sharpcompress/compare/0.27.1...0.28)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-15 12:00:40 +00:00
David
9379f535c2 Merge remote-tracking branch 'jellyfin/master' into nfo-tests 2021-02-15 12:00:51 +01:00
David
e924545ae2 Fix tests for UNIX 2021-02-15 11:39:00 +01:00
Bond-009
30372fcd68 Merge pull request #5194 from Ullmie02/nfo-watched 2021-02-14 18:25:41 +01:00
dkanada
75ec8b0c8c Merge pull request #5207 from matthin/default-language
Default to English metadata during the setup wizard.
2021-02-14 16:06:27 +09:00
dkanada
8d2b9ba657 Merge pull request #5222 from Bond-009/jsoncase
Don't enable case-insensitivity for json by default
2021-02-14 15:56:03 +09:00
dkanada
8301dabca6 Merge pull request #5226 from Bond-009/null
100% branch coverage for Emby.Naming
2021-02-14 15:49:41 +09:00
dkanada
d671a74c02 Merge pull request #5218 from jellyfin/totally-unnecessary
rename the solution file
2021-02-14 15:44:46 +09:00
David
fc7377fb9b Merge remote-tracking branch 'jellyfin/master' into nfo-tests
# Conflicts:
#	tests/Jellyfin.XbmcMetadata.Tests/Parsers/EpisodeNfoProviderTests.cs
#	tests/Jellyfin.XbmcMetadata.Tests/Parsers/SeriesNfoParserTests.cs
2021-02-13 22:55:33 +01:00
David
7f12b27319 Add nfo location tests 2021-02-13 22:48:29 +01:00
David
36d91a1601 Add test for music video nfo 2021-02-13 22:41:38 +01:00
David
eecdc3c110 Add more tags to nfo tests 2021-02-13 22:41:12 +01:00
Orry Verducci
b718eed314 Use average frame rate when determining deinterlace mode 2021-02-13 15:27:19 +00:00
Bond_009
dc9e2ad1a4 Add some more Crc32 tests 2021-02-13 11:46:38 +01:00
Bond_009
8a6242826f 100% branch coverage for Emby.Naming 2021-02-13 11:38:17 +01:00
Bond-009
6616add8c8 Merge pull request #5213 from Bond-009/tests9
Add tests for RequestHelpers.GetItemTypeStrings
2021-02-13 11:10:28 +01:00
Dar Donkov
cd612edbf0 Translated using Weblate (Bulgarian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/bg/
2021-02-12 23:30:50 -05:00
dkanada
542401c7f4 Merge pull request #5216 from jellyfin/remove-old-settings
remove deprecated settings from server config
2021-02-13 10:52:50 +09:00
Bond_009
65bab55ca0 Minor improvements 2021-02-13 00:39:18 +01:00
Bond_009
fd7b215c28 Don't enable case-insensitivity for json by default 2021-02-13 00:22:58 +01:00
Dar Donkov
0a8587295e Translated using Weblate (Bulgarian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/bg/
2021-02-12 13:00:37 -05:00
Bond_009
e1bc322b70 Add test for WriteGetMessage 2021-02-12 18:35:54 +01:00
Bond_009
3a9fcb6abd Rewrite packet writing code for HdHomerun 2021-02-12 17:34:51 +01:00
dkanada
9caf311925 handle plugin manifests automatically 2021-02-12 22:33:10 +09:00
dkanada
57091d2854 rename the solution file 2021-02-12 22:25:43 +09:00
dkanada
9fcdbd4c4b remove deprecated settings from server config 2021-02-12 21:58:37 +09:00
Bond_009
97935d2cd2 Add tests for RequestHelpers.GetItemTypeStrings 2021-02-11 18:21:08 +01:00
Bond-009
76d66e0dee Merge pull request #5208 from crobibero/api-post-image
Add image file accept to openapi
2021-02-11 17:42:28 +01:00
Bond-009
a2ac4d3dd7 Merge pull request #5209 from crobibero/base-item-kind
Create BaseItemKind enum
2021-02-11 17:12:35 +01:00
David Ullmer
eaaab10cf3 Don't split playcount 2021-02-11 14:15:11 +01:00
David Ullmer
ab5fb1b1f2 Merge branch 'master' of github.com:jellyfin/jellyfin into nfo-watched 2021-02-11 13:48:58 +01:00
David Ullmer
ae57ed4ac7 Add nfo user data tests 2021-02-11 13:36:35 +01:00
David Ullmer
dc2f8b5e6b Fix xml loop 2021-02-11 12:43:36 +01:00
Manjot Singh
d490c1c2bc Translated using Weblate (Hindi)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/hi/
2021-02-11 02:20:32 -05:00
crobibero
223b42aed3 Create BaseItemKind enum 2021-02-10 17:09:23 -07:00
crobibero
d5f0b046bb Add image file accept to openapi 2021-02-10 16:12:52 -07:00
me@justinharrison.ca
90236efdf2 Default to English metadata during the setup wizard. 2021-02-10 17:08:55 -05:00
Joshua M. Boniface
bd8c269ea2 Merge pull request #5107 from jellyfin/enhanced-nvdec-vpp-tonemap 2021-02-10 01:24:51 -05:00
Joshua M. Boniface
426b55052f Merge pull request #5200 from crobibero/dotnet-5.0.3
Update to dotnet 5.0.3
2021-02-10 01:22:48 -05:00
crobibero
407c35f087 Update to dotnet 5.0.3 2021-02-09 19:02:02 -07:00
Bond-009
f2e5b14db7 Merge pull request #5193 from Ullmie02/nfo-id-test
Add test for generic nfo provider id parsing
2021-02-09 16:45:22 +01:00
Bond_009
9e5c4439b9 Comment out broken tests 2021-02-09 15:12:43 +01:00
Bond_009
f81bcf7f35 Fix tests on windows 2021-02-09 15:12:43 +01:00
Bond_009
be965e35b6 Log subtitle errors 2021-02-09 15:12:43 +01:00
Bond_009
ed8fce2dce Use SubtitleEdit to parse subtitles 2021-02-09 15:12:41 +01:00
David
3a4c33ca5f Add nfo parsing for watched, playcount and lastplayed 2021-02-09 12:42:55 +01:00
David Ullmer
086254821f Add test for generic nfo provider id parsing 2021-02-09 11:19:19 +01:00
Balázs Váradi
7ba53548a2 Fix typos in nfo tests 2021-02-09 07:21:08 +01:00
dkanada
995b370017 Merge pull request #4663 from joshuaboniface/bump-version-10.8.0
Bump version to 10.8.0 for next release
2021-02-09 11:38:31 +09:00
dkanada
7f1243978c Merge pull request #5012 from jellyfin/ws
Improve WebSocket Message Deserialization
2021-02-09 11:10:52 +09:00
dkanada
bb33d5f190 Merge pull request #5190 from jellyfin/regressiontest
Add regression test for PluginManager.SaveManifest
2021-02-09 11:04:02 +09:00
netpok
c97edc96eb Fix typo
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-02-08 21:02:54 +01:00
Balázs Váradi
351d61a318 Add test for multiepisode nfo parsing 2021-02-08 19:40:17 +01:00
Balázs Váradi
094ffafb24 Comment and simplify code 2021-02-08 18:56:06 +01:00
Bond_009
13c1c2815f Add regression test for PluginManager.SaveManifest 2021-02-08 17:10:20 +01:00
dkanada
76fdf73991 Merge pull request #5189 from jellyfin/antiunicode
Remove last usage of \d
2021-02-09 00:47:03 +09:00
dkanada
f0212d377e Merge pull request #5186 from jellyfin/dependabot/nuget/Swashbuckle.AspNetCore.ReDoc-6.0.2
Bump Swashbuckle.AspNetCore.ReDoc from 5.6.3 to 6.0.2
2021-02-09 00:45:32 +09:00
Bond_009
88f37833df Remove last usage of \d 2021-02-08 16:33:37 +01:00
Bond-009
fba80cf6f9 Merge pull request #5188 from cvium/fix_manifest_bom
Exclude BOM when writing meta.json plugin manifest
2021-02-08 16:22:37 +01:00
cvium
311b2f5012 Exclude BOM when writing meta.json plugin manifest 2021-02-08 15:38:06 +01:00
dkanada
158e69c6f0 Merge pull request #4935 from ConfusedPolarBear/quickconnect-cleanup
Remove used quick connect tokens
2021-02-08 22:54:53 +09:00
dkanada
aea1c4f310 Merge pull request #5142 from M0ssTee/updateRegex
Replaced /d with [0-9], see issue #2923
2021-02-08 22:52:58 +09:00
dependabot[bot]
df121c1516 Bump Swashbuckle.AspNetCore.ReDoc from 5.6.3 to 6.0.2
Bumps [Swashbuckle.AspNetCore.ReDoc](https://github.com/domaindrivendev/Swashbuckle.AspNetCore) from 5.6.3 to 6.0.2.
- [Release notes](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/releases)
- [Commits](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/compare/v5.6.3...v6.0.2)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-08 12:00:45 +00:00
Nyanmisaka
22e8667105 Apply suggestions from code review
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-02-08 16:41:38 +08:00
Jakub Fabijan
6c2eb5fc7e Translated using Weblate (Esperanto)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/eo/
2021-02-08 00:30:44 -05:00
Jakub Fabijan
e8fd4531ed Added translation using Weblate (Esperanto) 2021-02-07 14:57:33 -05:00
BaronGreenback
053063fd47 Fixed IP6 host parsing 2021-02-07 17:42:23 +00:00
Oskari Lavinto
49b08798e6 Translated using Weblate (Finnish)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fi/
2021-02-07 10:57:52 -05:00
Patrick Barron
a5e55ba859 Clean up UserManager.AuthenticateUser 2021-02-06 15:59:27 -05:00
Bond-009
34e10622c6 Merge pull request #5171 from Ullmie02/reset-fix 2021-02-06 18:56:36 +01:00
David Ullmer
07f1a2c2dc Update Jellyfin.Api/Controllers/UserController.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-02-06 18:36:18 +01:00
David
eb0ff0c370 Fix forgot password pin request 2021-02-06 17:18:37 +01:00
nyanmisaka
3052068161 hybird vpp tonemapping for QSV on Linux 2021-02-06 13:21:50 +08:00
nyanmisaka
b0e0e19468 add cuda format converter 2021-02-06 13:21:40 +08:00
nyanmisaka
09b9fa3ce1 add vpp tonemapping for vaapi 2021-02-06 13:21:30 +08:00
Balázs Váradi
b646787ab6 Get IndexNumberEnd from nfo 2021-02-05 20:02:47 +01:00
WWWesten
f8283d8c20 Translated using Weblate (Russian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ru/
2021-02-05 05:55:58 -05:00
WWWesten
9eabad685e Translated using Weblate (Kazakh)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/kk/
2021-02-05 05:55:58 -05:00
dkanada
54a3ab15a3 Merge pull request #5005 from jellyfin/bytes
JsonSerializer deserialize from bytes where possible
2021-02-05 11:47:06 +09:00
dkanada
2e9661c415 Merge pull request #5043 from senritsu/improve-episode-number-parsing-with-digits-in-names
adjust episode path expression to allow digits in series names
2021-02-05 11:43:32 +09:00
dkanada
86859a3926 Merge pull request #5010 from BaronGreenback/Remove_IPluginConfigurationPage
Removal of IPluginConfigurationPage
2021-02-05 11:38:44 +09:00
M0ssTee
256bb3ee98 Update MediaBrowser.MediaEncoding/Subtitles/AssParser.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-02-04 16:14:57 -05:00
dkanada
ad203d011b Merge pull request #5006 from jellyfin/roundtrip
Use JsonSerializer.SerializeToUtf8Bytes when doing a round trip
2021-02-04 23:28:20 +09:00
dkanada
bfbbee0bc9 Merge pull request #5085 from Ullmie02/nfo-actor-type
Process actor type in nfo files
2021-02-04 23:27:34 +09:00
dkanada
cfe37474f1 Merge pull request #5088 from Ullmie02/nfo-watched
Fix nfo saving during UserDataSaved event
2021-02-04 23:24:53 +09:00
dkanada
793ae6f7a6 Merge pull request #5112 from jellyfin/shuffle
Add test for ShuffleExtensions
2021-02-04 23:23:11 +09:00
dkanada
6afbc98b60 Merge pull request #5159 from Ullmie02/unused
Remove unused files
2021-02-04 23:21:17 +09:00
Bond-009
28ffbf6945 Merge pull request #5106 from BaronGreenback/FileShareTest2 2021-02-03 19:16:22 +01:00
BaronGreenback
8d12e6d6eb Update BaseNfoSaver.cs 2021-02-03 10:42:17 +00:00
David
f854a1ce1f Remove unused files 2021-02-03 11:34:21 +01:00
Claus Vium
3fd0987ee3 Merge pull request #5111 from Larvitar/tmdb-season-name-fix
Remove season name from metadata result
2021-02-03 08:20:21 +01:00
Claus Vium
5f63c33557 Merge pull request #5154 from crobibero/skip-attributes 2021-02-03 08:18:39 +01:00
M0ssTee
8f88d0d2cb Update Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunManager.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-02-03 00:57:04 -05:00
crobibero
8d902478a0 Don't skip hidden files 2021-02-02 07:14:11 -07:00
Troy
8c640a1492 Replaced /d with [0-9], see issue #2923 2021-02-01 02:49:23 +00:00
Tomi
4bcf684b72 Translated using Weblate (Finnish)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fi/
2021-01-31 11:30:29 -05:00
Jacob Adlers
edc7efe4d7 Translated using Weblate (Swedish)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sv/
2021-01-31 11:30:29 -05:00
WWWesten
fa59d2afe3 Translated using Weblate (Russian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ru/
2021-01-31 11:30:29 -05:00
WWWesten
027ef41d87 Translated using Weblate (Kazakh)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/kk/
2021-01-31 11:30:29 -05:00
WWWesten
a50459a2a1 Translated using Weblate (Kazakh)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/kk/
2021-01-29 01:31:43 -05:00
Claus Vium
63be326302 Merge pull request #5117 from jellyfin/fix-framerate-locale
Make FRAME-RATE field culture invariant
2021-01-28 15:35:23 +01:00
nyanmisaka
3ce0d589ba make FRAME-RATE field culture invariant 2021-01-28 01:00:55 +08:00
Bond_009
bf4829a38c Remove redundant statement 2021-01-26 20:28:35 +01:00
Bond_009
80e22d9670 Add test for ShuffleExtensions 2021-01-26 20:21:07 +01:00
Mariusz Chryc
0d1f356373 Remove season name from metadata result 2021-01-26 19:04:20 +01:00
Bond-009
4a2678e63b Merge pull request #5097 from Bond-009/cleanup4
Remove useless abstraction and clean up formatting
2021-01-26 17:44:49 +01:00
Bond-009
51b9e62830 Merge pull request #5104 from jellyfin/dependabot/nuget/coverlet.collector-3.0.2
Bump coverlet.collector from 3.0.1 to 3.0.2
2021-01-25 22:08:34 +01:00
Claus Vium
e7e385d7a2 Merge pull request #5105 from crobibero/image-null-ref
Add null check for ImageTags
2021-01-25 19:27:59 +01:00
BaronGreenback
21d15989f5 1 attempted fix 2021-01-25 17:34:11 +00:00
crobibero
4e2d029b3d Add null check for ImageTags 2021-01-25 08:48:24 -07:00
dependabot[bot]
09471a206a Bump coverlet.collector from 3.0.1 to 3.0.2
Bumps [coverlet.collector](https://github.com/coverlet-coverage/coverlet) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/coverlet-coverage/coverlet/releases)
- [Commits](https://github.com/coverlet-coverage/coverlet/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-25 12:00:44 +00:00
Claus Vium
e5828cdbf1 Merge pull request #5099 from crobibero/non-required-query-param 2021-01-25 12:55:06 +01:00
Claus Vium
f82e6ee8cc Merge pull request #5090 from Ullmie02/plugin-startup-fix 2021-01-25 12:04:25 +01:00
David Ullmer
b014f2309d Update Emby.Server.Implementations/Plugins/PluginManager.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-01-25 09:44:06 +01:00
crobibero
77b417e41e Mark non-nullable body as null 2021-01-24 15:02:56 -07:00
crobibero
ef97ead707 Fix openapi nullable properties 2021-01-24 14:36:36 -07:00
nyanmisaka
326fa8ce38 add an enhanced nvdec decoder 2021-01-25 03:40:34 +08:00
Claus Vium
98a4e1b840 Merge pull request #5095 from Bond-009/sortorder 2021-01-24 19:04:12 +01:00
Bond_009
f6b293203a Restore weird behaviour 2021-01-24 17:55:25 +01:00
Bond-009
3806cc5b3f Merge pull request #5074 from jellyfin/cov
100% branch coverage for Jellyfin.Naming
2021-01-24 14:11:48 +01:00
David Ullmer
39f9a7981a Update MediaBrowser.XbmcMetadata/Parsers/BaseNfoParser.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-01-24 13:35:08 +01:00
David
677bba742e Remove try-catch nesting 2021-01-24 13:34:22 +01:00
Bond_009
1c2cd7efa0 Remove useless abstraction and clean up formatting 2021-01-24 13:32:29 +01:00
David
80f3e20394 Change plugin error message 2021-01-24 13:22:04 +01:00
Bond_009
d24e7f60c7 Fix GetOrderBy and add tests 2021-01-24 11:43:05 +01:00
Bond-009
b4d04f9ca5 Merge pull request #5091 from crobibero/query-param-array
Use ArrayModelBinder for sortBy and sortOrder
2021-01-24 11:13:18 +01:00
crobibero
55670b91b2 Use ArrayModelBinder for sortBy and sortOrder 2021-01-23 17:32:13 -07:00
David Ullmer
4adbbb9f51 Catch TypeLoadException during plugin loading 2021-01-24 00:58:52 +01:00
Karandeep Singh Grewal
4aaf71b873 Translated using Weblate (Hindi)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/hi/
2021-01-23 18:12:17 -05:00
Bond-009
6e9cebaf74 Merge pull request #5084 from Ullmie02/nfo-tagline
Don't write tagline in <outline> in nfo files
2021-01-23 23:57:53 +01:00
David Ullmer
3838e8ac15 Update MediaBrowser.XbmcMetadata/Savers/BaseNfoSaver.cs
Co-authored-by: Bond-009 <bond.009@outlook.com>
2021-01-23 23:36:51 +01:00
Joshua M. Boniface
3fda50de6d Merge pull request #5064 from BaronGreenback/PluginFix
Plugin bug fixes
2021-01-23 15:24:10 -05:00
Joshua M. Boniface
4b6b90e0b1 Merge pull request #5069 from crobibero/obsolete-param 2021-01-23 14:45:18 -05:00
Joshua M. Boniface
4d13cad7af Merge pull request #5062 from crobibero/delete_log_task 2021-01-23 14:43:09 -05:00
Joshua M. Boniface
3bf7e18886 Merge pull request #5031 from crobibero/5.0.2
Update to dotnet 5.0.2
2021-01-23 14:41:03 -05:00
Joshua M. Boniface
c5e9d56028 Merge pull request #4911 from Ullmie02/nuget_again 2021-01-23 14:40:06 -05:00
David
18e33b6b2d Remove check for wrong metadata saving property 2021-01-23 19:05:55 +01:00
David
454d82c52c Process actor type in nfo files 2021-01-23 18:06:26 +01:00
David
b2f2126edd Don't write tagline in <outline> in nfo files 2021-01-23 17:35:06 +01:00
Bond-009
828b0be254 Merge pull request #5047 from jellyfin/dependabot/nuget/Moq-4.16.0
Bump Moq from 4.15.2 to 4.16.0
2021-01-23 15:05:18 +01:00
dependabot[bot]
1bc1d1c07b Bump Moq from 4.15.2 to 4.16.0
Bumps [Moq](https://github.com/moq/moq4) from 4.15.2 to 4.16.0.
- [Release notes](https://github.com/moq/moq4/releases)
- [Changelog](https://github.com/moq/moq4/blob/main/CHANGELOG.md)
- [Commits](https://github.com/moq/moq4/compare/v4.15.2...v4.16.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-23 13:43:41 +00:00
Bond-009
7c3db79535 Merge pull request #5053 from jellyfin/dependabot/nuget/coverlet.collector-3.0.1
Bump coverlet.collector from 3.0.0 to 3.0.1
2021-01-23 14:43:11 +01:00
Bond-009
27f8823cbe Merge pull request #5055 from jellyfin/dependabot/nuget/sharpcompress-0.27.1
Bump sharpcompress from 0.26.0 to 0.27.1
2021-01-23 14:42:29 +01:00
Bond-009
827f39f54b Merge pull request #5068 from Ullmie02/nfo-tests 2021-01-23 13:52:33 +01:00
David
7297412195 Fix indentation 2021-01-23 12:02:22 +01:00
WWWesten
91abc09e79 Translated using Weblate (Kazakh)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/kk/
2021-01-22 17:25:47 -05:00
Wong To Han, Toby
84f6d683f2 Translated using Weblate (Chinese (Hong Kong))
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/zh_Hant_HK/
2021-01-22 02:44:01 -05:00
Arian Ar
d80daa3bec Translated using Weblate (Persian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fa/
2021-01-21 18:58:04 -05:00
Rodlan Bernabe
17cff101ce Translated using Weblate (Filipino)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fil/
2021-01-21 15:21:29 -05:00
Bond_009
956ca0e5aa 100% branch coverage for Jellyfin.Naming 2021-01-21 15:46:10 +01:00
Cody Robibero
91a9af95c2 Apply suggestions from code review
Co-authored-by: dkanada <dkanada@users.noreply.github.com>
2021-01-21 07:01:51 -07:00
BaronGreenback
df402df908 fix return 2021-01-21 12:48:43 +00:00
crobibero
59ff2c5b4b Add ability to mark query parameter as obsolete. 2021-01-20 16:24:15 -07:00
ImSoSx
215554bb41 Translated using Weblate (Spanish (Latin America))
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/es_419/
2021-01-20 18:07:16 -05:00
David
cf9a03790b Check rating name for "audience" 2021-01-20 20:32:45 +01:00
David
d71dce50ca Add music album nfo parser test 2021-01-20 20:02:35 +01:00
David
ccea02fbb2 Add season nfo parser test 2021-01-20 20:02:03 +01:00
David
dbd70bd394 Add episode nfo parser test 2021-01-20 19:47:31 +01:00
David
0279af5f6b Move existing tests to correct namespace 2021-01-20 19:46:44 +01:00
David
07613f0821 Translated using Weblate (German)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/de/
2021-01-20 12:06:25 -05:00
AdmiralAnimE
27cbd14377 Translated using Weblate (Bulgarian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/bg/
2021-01-20 06:35:27 -05:00
AdmiralAnimE
b3059238e3 Translated using Weblate (Bulgarian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/bg/
2021-01-20 04:43:28 -05:00
BaronGreenback
89046e1d97 Bug fixes 2021-01-19 21:15:40 +00:00
Claus Vium
14bd4a110f Merge pull request #4978 from BaronGreenback/MultipeProxies 2021-01-19 20:55:21 +01:00
BaronGreenback
25eaf21a8f renamed func in test 2021-01-19 19:32:46 +00:00
BaronGreenback
ab632b96fe renamed. 2021-01-19 19:31:55 +00:00
BaronGreenback
9db8a4d88d reverted 2021-01-19 13:56:16 +00:00
BaronGreenback
82d365045a Removed systemIp6 functionality. 2021-01-19 12:50:11 +00:00
BaronGreenback
821473557c Changed mapping logic 2021-01-19 11:31:40 +00:00
BaronGreenback
dd089fd27a Changed test 2021-01-19 10:50:17 +00:00
BaronGreenback
6a7623da02 Simplified Code 2021-01-19 10:36:37 +00:00
BaronGreenback
8b2b3b77a5 Removed duplication 2021-01-19 10:29:17 +00:00
crobibero
6abee2dd22 fix delete log task 2021-01-18 19:42:50 -07:00
Claus Vium
65c09f82c5 Merge pull request #5027 from crobibero/episode-first-up 2021-01-18 15:48:53 +01:00
crobibero
1455c2aa10 Remove commented code 2021-01-18 06:47:18 -07:00
Claus Vium
b9691e8712 Merge pull request #5025 from BaronGreenback/DlnaFix 2021-01-18 14:24:35 +01:00
BaronGreenback
49e3b70722 Moved InternalsVisibleTo 2021-01-18 13:03:37 +00:00
BaronGreenback
e81b7c8f4f reverted 2021-01-18 12:17:18 +00:00
dependabot[bot]
4e13b41eed Bump sharpcompress from 0.26.0 to 0.27.1
Bumps [sharpcompress](https://github.com/adamhathcock/sharpcompress) from 0.26.0 to 0.27.1.
- [Release notes](https://github.com/adamhathcock/sharpcompress/releases)
- [Commits](https://github.com/adamhathcock/sharpcompress/compare/0.26...0.27.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-18 12:01:04 +00:00
dependabot[bot]
0cb80d3815 Bump coverlet.collector from 3.0.0 to 3.0.1
Bumps [coverlet.collector](https://github.com/coverlet-coverage/coverlet) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/coverlet-coverage/coverlet/releases)
- [Commits](https://github.com/coverlet-coverage/coverlet/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-18 12:01:03 +00:00
Oriol Serra
01836e55e4 Translated using Weblate (Catalan)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ca/
2021-01-17 19:28:35 -05:00
BaronGreenback
828a9b7c75 rollback 2021-01-17 23:30:56 +00:00
BaronGreenback
13012bfa27 Fix bug in GetItemId 2021-01-17 22:43:05 +00:00
senritsu
4e21b49994 adjust episode path expression to allow digits in series names
The previous expression was too greedy to consume digits, because the hyphen was optional. This lead to incorrect episode numbers for certain series with digits in their names, in those cases each episode was recognized as the same episode number (the digit from the series name).

The rule, which matches most standard  anime filenames, also had a lower priority than one of the Kodi rules, leading to incorrect recognition for absolute numbered episodes with triple digits and higher (first digit was used as season number, rest of digits as episode number). This also resolves one of the TODO test cases.

Additional test cases were added to ensure that both hyphens in different parts of the filename, as well as names without hyphens, still work correctly. All previous test cases still pass.

Unfortunately another TODO (EpisodeNumberTests.cs@L76, Uchuu Senkan Yamato 2199) with the same issue (digits in the series name) could not be trivially fixed in the same change, due to the significantly different formatting. Attempts to resolve this case did not work out for now.
2021-01-17 20:24:23 +01:00
Sinan
d8d9d90469 Translated using Weblate (Turkish)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/tr/
2021-01-17 11:09:42 -05:00
BaronGreenback
b9f0f4f53b reverted 2021-01-17 13:35:30 +00:00
BaronGreenback
688e7c6a2d Moved internalVisibleToAttribute to .csj 2021-01-17 12:45:11 +00:00
Joshua M. Boniface
03242a6afd Merge pull request #5007 from jellyfin/create 2021-01-16 13:28:48 -05:00
Joshua M. Boniface
fe9096be94 Merge pull request #4970 from BaronGreenback/networkTestCorrection 2021-01-16 13:28:34 -05:00
Joshua M. Boniface
3204ce71b3 Merge pull request #4956 from jceresini/master
Fix rpm package dependencies
2021-01-16 13:27:36 -05:00
crobibero
a087ab389a dotnet 5.0.2 2021-01-16 10:17:33 -07:00
crobibero
3b9567d583 Add query parameter to disable returning first episode as next up 2021-01-15 15:08:48 -07:00
crobibero
3d754fa5bf Revert "Don't return first episodes in next up" 2021-01-15 15:06:11 -07:00
BaronGreenback
620648fe81 Fixed for no data. 2021-01-15 18:55:52 +00:00
BaronGreenback
16d092a8a7 Fixed encoding issue 2021-01-15 12:17:50 +00:00
BaronGreenback
a4e838fbf5 Remoed configurationPageType 2021-01-15 10:36:44 +00:00
BaronGreenback
8ef37f6b0e Rename IPluginConfigurationPage.cs to ConfigurationPageType.cs.cs
Renamed file.
2021-01-15 10:26:00 +00:00
BaronGreenback
bced1eab54 Assert.True 2021-01-13 21:16:04 +00:00
Alexander Brissman
549160b9b9 Translated using Weblate (Norwegian Bokmål)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/nb_NO/
2021-01-13 14:35:17 -05:00
BaronGreenback
4bc8a1e77b updated 2021-01-13 15:29:57 +00:00
BaronGreenback
9a730241b1 Changed to address. 2021-01-13 15:14:04 +00:00
Deniz
eb82879a4f Translated using Weblate (Turkish)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/tr/
2021-01-13 02:59:55 -05:00
Bond_009
9a5ceb34d1 Improve WebSocket Deserialization 2021-01-13 01:11:25 +01:00
BaronGreenback
c6aa6ceed9 Removal of IPluginConfigurationPage 2021-01-12 22:10:23 +00:00
趙映翔
f7aae0e876 Translated using Weblate (Chinese (Traditional))
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/zh_Hant/
2021-01-12 16:28:17 -05:00
Oriol Serra
580b90aa4c Translated using Weblate (Catalan)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ca/
2021-01-12 16:28:17 -05:00
BaronGreenback
d66bc3fb3e Fixed indentation 2021-01-12 20:43:25 +00:00
BaronGreenback
dfd7ff5732 Update MediaBrowser.Common/Net/INetworkManager.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-01-12 20:41:48 +00:00
BaronGreenback
94cc5b9d8b Update MediaBrowser.Common/Net/INetworkManager.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-01-12 20:41:40 +00:00
BaronGreenback
08e83cfa54 Remove additional debug logging. 2021-01-12 18:52:48 +00:00
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
David
262c6ae249 Remove ',' hack 2021-01-09 15:33:39 +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
620fbf0f89 Remove CropWhitespace function 2021-01-09 10:51: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
David
357429b8ea Add .nfo ratings tag 2021-01-08 14:55:16 +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
crobibero
c1d1b6e9f4 Fix serialization loop 2021-01-04 07:52:44 -07:00
obradovichv
d45e2fe95a Update contributors 2021-01-03 20:32:33 +02:00
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.
2021-01-03 20:17:27 +02:00
Bond-009
841996c642 Merge pull request #4936 from crobibero/series-start-item-id
Fix inverted SkipWhile
2021-01-03 17:40:22 +01:00
crobibero
a3a31952f4 Fix OMDb converter 2021-01-03 09:35:22 -07:00
crobibero
a15e126ef8 Fix inverted SkipWhile 2021-01-02 19:23:54 -07:00
Azunyan-
d1da1aa407 Translated using Weblate (Swedish)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sv/
2021-01-02 21:11:01 -05:00
lemmens95
e15b2ea10f Translated using Weblate (Dutch)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/nl/
2021-01-02 21:11:00 -05:00
Matt Montgomery
8dd83327b5 Remove quick connect tokens after usage 2021-01-02 16:37:43 -06:00
Manjot Singh
5932b967b7 Translated using Weblate (Punjabi)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/pa/
2021-01-02 13:23:32 -05:00
Manjot Singh
cf52503630 Added translation using Weblate (Punjabi) 2021-01-02 06:00:18 -05:00
dkanada
c117b12b6b Merge pull request #4920 from crobibero/person-blurhash
Attach correct Blurhash to BaseItemPerson
2021-01-02 15:45:02 +09:00
crobibero
d077c425d3 Add only correct person blurhash 2021-01-01 12:35:03 -07:00
Bond-009
9a10a18db1 Merge pull request #4905 from BaronGreenback/streamingHelper
Null exception fix
2021-01-01 18:21:21 +01:00
Bond-009
9265dd68a4 Change converter log level (#4916)
Change converter log level
2021-01-01 18:21:06 +01:00
crobibero
1b894798b1 Change log level for converters 2021-01-01 09:34:39 -07:00
David
f154c0dfad Change stable ci nuget build command 2021-01-01 14:56:14 +01:00
Gary Wilber
1fdeac0a7d Ignore inaccessible files during library scans 2020-12-31 18:40:24 -08:00
BaronGreenback
11700db312 Update StreamingHelpers.cs
Null exception fix
2021-01-01 00:25:47 +00:00
Joshua M. Boniface
406ae3e43a Merge pull request #4709 from BaronGreenback/PluginDowngrade 2020-12-31 18:47:05 -05:00
BaronGreenback
bd1c115e46 renamed imagePath to imageUrl 2020-12-31 15:59:48 +00:00
dkanada
e006cc8ac3 Merge pull request #4840 from jellyfin/dependabot/nuget/AutoFixture.AutoMoq-4.15.0
Bump AutoFixture.AutoMoq from 4.14.0 to 4.15.0
2020-12-31 23:14:19 +09:00
dependabot[bot]
6717b8c91a Bump AutoFixture.AutoMoq from 4.14.0 to 4.15.0
Bumps [AutoFixture.AutoMoq](https://github.com/AutoFixture/AutoFixture) from 4.14.0 to 4.15.0.
- [Release notes](https://github.com/AutoFixture/AutoFixture/releases)
- [Commits](https://github.com/AutoFixture/AutoFixture/compare/v4.14.0...v4.15.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-31 14:13:22 +00:00
dkanada
d6db0e4b02 Merge pull request #4902 from BaronGreenback/NetmaskFix
Fixed loopback subnet
2020-12-31 23:13:07 +09:00
dkanada
ac7648ab29 Merge pull request #4841 from jellyfin/dependabot/nuget/AutoFixture.Xunit2-4.15.0
Bump AutoFixture.Xunit2 from 4.14.0 to 4.15.0
2020-12-31 23:12:23 +09:00
dkanada
8365d99e52 Merge pull request #4788 from jellyfin/dependabot/nuget/prometheus-net.AspNetCore-4.1.1
Bump prometheus-net.AspNetCore from 4.0.0 to 4.1.1
2020-12-31 23:12:09 +09:00
BaronGreenback
c76faa9708 Update IPNetAddress.cs
Corrected loopback subnet
2020-12-31 13:18:13 +00:00
BaronGreenback
149c2b2169 Added referenced assembly failure detection, and DI failure protection. 2020-12-31 11:39:34 +00:00
martinek-stepan
cc92f7afe5 Enable nullable for MediaBrowser.XbmcMetadata project (#4612)
Co-authored-by: Cody Robibero <cody@robibe.ro>
Co-authored-by: Stepan <ste.martinek+git@gmail.com>
2020-12-31 12:09:25 +01:00
Bond_009
45331ad83a Cover all branches in JsonNullableGuidConverter 2020-12-31 11:32:32 +01:00
dependabot[bot]
fdb3632e7a Bump prometheus-net.AspNetCore from 4.0.0 to 4.1.1
Bumps [prometheus-net.AspNetCore](https://github.com/prometheus-net/prometheus-net) from 4.0.0 to 4.1.1.
- [Release notes](https://github.com/prometheus-net/prometheus-net/releases)
- [Changelog](https://github.com/prometheus-net/prometheus-net/blob/master/History)
- [Commits](https://github.com/prometheus-net/prometheus-net/compare/v4.0.0...v4.1.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-31 06:45:10 +00:00
dependabot[bot]
79227fcfef Bump AutoFixture.Xunit2 from 4.14.0 to 4.15.0
Bumps [AutoFixture.Xunit2](https://github.com/AutoFixture/AutoFixture) from 4.14.0 to 4.15.0.
- [Release notes](https://github.com/AutoFixture/AutoFixture/releases)
- [Commits](https://github.com/AutoFixture/AutoFixture/compare/v4.14.0...v4.15.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-31 06:43:16 +00:00
dkanada
1327bd9f7d Merge pull request #4787 from jellyfin/dependabot/nuget/prometheus-net-4.1.1
Bump prometheus-net from 4.0.0 to 4.1.1
2020-12-31 15:36:22 +09:00
dkanada
e53379502c Merge pull request #4876 from jellyfin/dependabot/nuget/DotNet.Glob-3.1.2
Bump DotNet.Glob from 3.1.0 to 3.1.2
2020-12-31 15:33:51 +09:00
dkanada
72f1bcb742 Merge pull request #4839 from jellyfin/dependabot/nuget/AutoFixture-4.15.0
Bump AutoFixture from 4.14.0 to 4.15.0
2020-12-31 15:33:30 +09:00
crobibero
dbfbf9fb5b Fix bad merge 2020-12-30 19:45:31 -07:00
Cody Robibero
5c57569692 Merge branch 'master' into PluginDowngrade 2020-12-30 18:11:37 -07:00
Joshua M. Boniface
ccc1b8bf92 Merge pull request #4729 from BaronGreenback/19.0RC---Fix-networkInterfaceFix 2020-12-30 19:57:53 -05:00
Joshua M. Boniface
0de45d8724 Merge pull request #4884 from crobibero/json-nullable-guid-converter
Add JsonConverter for Nullable Guids
2020-12-30 19:56:04 -05:00
Joshua M. Boniface
7caba04c3c Merge pull request #4890 from nielsvanvelzen/4888-fix-search-hints
Fix search hint endpoint error
2020-12-30 19:55:57 -05:00
Joshua M. Boniface
eb084f9021 Merge pull request #4891 from Artiume/patch-1 2020-12-30 19:12:40 -05:00
BaronGreenback
4c291da45c Encoding fix for System Logs. (#4564) 2020-12-30 18:31:26 +01:00
artiume
f411353c8c Update Emby.Server.Implementations/Library/UserDataManager.cs
Co-authored-by: Bond-009 <bond.009@outlook.com>
2020-12-30 09:30:02 -05:00
artiume
c7cb177260 Update Emby.Server.Implementations/Library/UserDataManager.cs
Co-authored-by: Bond-009 <bond.009@outlook.com>
2020-12-30 09:12:36 -05:00
artiume
77b478c726 Update Emby.Server.Implementations/Library/UserDataManager.cs
Co-authored-by: Bond-009 <bond.009@outlook.com>
2020-12-30 09:12:13 -05:00
artiume
cd979e6b62 Add default of 5 minutes 2020-12-30 08:52:11 -05:00
artiume
99adbf0497 Split resume function for Audiobooks 2020-12-30 08:48:33 -05:00
Niels van Velzen
2bb84c0675 Fix limit parameter error for search hints endpoint 2020-12-30 11:16:09 +01:00
dependabot[bot]
9460611fbb Bump prometheus-net from 4.0.0 to 4.1.1
Bumps [prometheus-net](https://github.com/prometheus-net/prometheus-net) from 4.0.0 to 4.1.1.
- [Release notes](https://github.com/prometheus-net/prometheus-net/releases)
- [Changelog](https://github.com/prometheus-net/prometheus-net/blob/master/History)
- [Commits](https://github.com/prometheus-net/prometheus-net/compare/v4.0.0...v4.1.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-30 09:34:28 +00:00
dependabot[bot]
633507eee1 Bump DotNet.Glob from 3.1.0 to 3.1.2
Bumps [DotNet.Glob](https://github.com/dazinator/DotNet.Glob) from 3.1.0 to 3.1.2.
- [Release notes](https://github.com/dazinator/DotNet.Glob/releases)
- [Changelog](https://github.com/dazinator/DotNet.Glob/blob/develop/ReleaseNotes.md)
- [Commits](https://github.com/dazinator/DotNet.Glob/compare/3.1.0...3.1.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-30 09:34:26 +00:00
Bond-009
054adf6379 Merge pull request #4853 from Ullmie02/servicestack-json 2020-12-30 10:33:32 +01:00
crobibero
cae38f3a7e Add JsonConverter for Nullable Guids 2020-12-29 16:08:16 -07:00
Shaunak Basu
8dfe89ea52 Translated using Weblate (Hindi)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/hi/
2020-12-29 11:33:54 -05:00
Shaunak Basu
782c233389 Translated using Weblate (Bengali)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/bn/
2020-12-29 11:33:54 -05:00
David
3dec1fd6b2 Use UTF8 encoding and async correctly 2020-12-29 00:35:59 +01:00
David
8ac1ed16ca Use Theory instead of Fact for unit tests 2020-12-29 00:15:36 +01:00
David
9e0f425783 Make RootObject and SeasonRootObject internal again 2020-12-28 23:41:46 +01:00
Bond-009
4ed20c75f7 Merge pull request #4872 from BaronGreenback/NetworkManagerFix
Removed workaround code as web is now fixed.
2020-12-28 15:45:05 +01:00
Bond-009
f8681aa518 Merge pull request #4874 from MrTimscampi/enable-tmdb-omdb
Enable TMDB and OMDB by default
2020-12-28 15:44:45 +01:00
Bond_009
5ac36a8b58 Add tests for srt parser 2020-12-28 15:43:55 +01:00
Bond_009
07cc28946b Add tests for ass parser 2020-12-28 15:33:36 +01:00
Bond_009
d0382db37d Minor improvements to ass parser 2020-12-28 15:33:15 +01:00
Bond_009
bad516d473 Disable broken rule 2020-12-28 15:32:50 +01:00
Bond-009
3542985360 Merge pull request #4857 from crobibero/dep-2 2020-12-28 11:03:16 +01:00
MrTimscampi
48d8536d2f Enable TMDB and OMDB by default 2020-12-28 09:19:08 +01:00
dkanada
2913e2604c Merge pull request #4860 from nyanmisaka/3ch-transcode-hls
Avoid transcoding to 3ch audio for HLS streaming
2020-12-28 13:38:04 +09:00
Joshua M. Boniface
f2e05bd183 Merge pull request #4863 from nyanmisaka/boxes-backdrop
Fix boxes in library name backdrop
2020-12-27 22:29:35 -05:00
WWWesten
926c70f9f7 Translated using Weblate (Kazakh)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/kk/
2020-12-27 13:17:19 -05:00
BaronGreenback
d96c8d7efd Remove todo 2020-12-27 15:57:27 +00:00
David
21fd124bca Code revie 2020-12-27 11:15:46 +01:00
David
f73bb92ce3 Remove manual N/A removal and write directly to stream 2020-12-26 20:00:54 +01:00
mahi160
108d2da0aa Translated using Weblate (Bengali)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/bn/
2020-12-25 15:12:49 -05:00
Mislav Milinković
41324300ec Translated using Weblate (Croatian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/hr/
2020-12-25 15:12:49 -05:00
David
e0499f8769 Remove attributes 2020-12-25 19:37:38 +01:00
Nyanmisaka
470f40442c not apply to progressive playback 2020-12-26 02:28:38 +08:00
David
dfd5a118ca Merge branch 'servicestack-json' of github.com:Ullmie02/jellyfin into servicestack-json 2020-12-25 19:22:30 +01:00
David
aacda01ca5 Add more tests 2020-12-25 19:21:58 +01:00
nyanmisaka
4839c2006b fix boxes in library name backdrop for CJK character 2020-12-26 01:24:25 +08:00
David
af62ab490c Update tests/Jellyfin.Common.Tests/Jellyfin.Common.Tests.csproj
Co-authored-by: Bond-009 <bond.009@outlook.com>
2020-12-25 15:21:57 +01:00
crobibero
e09dd5aa87 Add targeted tests 2020-12-25 14:43:10 +01:00
crobibero
fc212e5e5f Remove JsonOmdbNotAvailableConverterFactory 2020-12-25 14:43:10 +01:00
crobibero
6ddbe8420f Add tests for special Omdb json 2020-12-25 14:43:10 +01:00
Joshua M. Boniface
93b754c366 Merge pull request #4861 from crobibero/null-ref
Fix null reference when logging
2020-12-24 12:19:02 -05:00
crobibero
c8a95e0926 Fix null reference when logging 2020-12-24 10:05:06 -07:00
Joshua M. Boniface
7227d0d48b Merge pull request #4859 from Ullmie02/ci
Don't build unstable Nuget packages on tags
2020-12-24 09:54:15 -05:00
nyanmisaka
ae1187042a also avoid 7ch transcoding 2020-12-24 20:06:55 +08:00
nyanmisaka
bc6ec08322 avoid transcoding to 3ch audio for HLS streaming 2020-12-24 19:41:02 +08:00
David
043d045448 Put json serializer options in private field 2020-12-24 11:22:34 +01:00
David
e835dfb27d Use sync string instead of file 2020-12-24 10:31:51 +01:00
David
20993412f2 Add unstable nuget condition 2020-12-24 10:18:32 +01:00
David
a714008b59 Add missing FileStreams 2020-12-23 21:00:50 +01:00
crobibero
570b4dc0d0 Explicity reference Newtonsoft.Json 2020-12-23 12:34:07 -07:00
crobibero
79cf57ce16 Remove SQLitePCLRaw.provider.sqlite3.netstandard11 2020-12-23 12:33:50 -07:00
Claus Vium
afdc98746b Merge pull request #4856 from nyanmisaka/amf-profile
Fix some profiles for H264 AMF encoder
2020-12-23 19:30:45 +01:00
David
2a574914ea Use streams instead of strings 2020-12-23 19:24:58 +01:00
BaronGreenback
21f6d39432 copy constructor 2020-12-23 17:43:29 +00:00
nyanmisaka
b61541b6f7 fix some profiles for H264 AMF encoder 2020-12-24 01:32:23 +08:00
BaronGreenback
dae6798a18 Making it work 2020-12-23 17:25:41 +00:00
BaronGreenback
889e988167 Updated to latest unstable. 2020-12-23 17:25:34 +00:00
Bond-009
f42208673f Merge pull request #4855 from crobibero/cache-json-serializer
Initialize JsonSerializerOptions statically
2020-12-23 18:09:39 +01:00
BaronGreenback
62702fa3eb Changes as requested 2020-12-23 16:28:50 +00:00
crobibero
af8acf7128 Initialize JsonSerializerOptions statically 2020-12-23 09:01:24 -07:00
David
f38970cbd3 Remove xml docs 2020-12-23 15:03:14 +01:00
David
e2d338412f Fix OMDb "N/A" 2020-12-23 14:45:05 +01:00
David
276b219fbd Add missing options 2020-12-23 13:47:57 +01:00
David
62fcc84bf4 Remove nuget reference 2020-12-23 13:35:49 +01:00
David
b9dbdc7e54 Remove custom Json serializer from MediaBrowser.Controller 2020-12-23 13:25:49 +01:00
David
e9902e9d35 Remove custom Json serializer 2020-12-23 13:24:34 +01:00
David
196388d607 Remove custom Json serializer from Emby.Server.Implementations 2020-12-23 13:14:40 +01:00
David
bc0976ceac Remove custom Json serializer from Dlna 2020-12-23 13:14:40 +01:00
David
e09d3ba9ef Remove custom Json serializer from Providers 2020-12-23 13:14:39 +01:00
Bond-009
3a452463fc Merge pull request #4849 from crobibero/clean-deps
Remove unused dependencies
2020-12-23 11:51:41 +01:00
BaronGreenback
d98f42a6aa Update PackageInfo.cs
uncommented attribute.
2020-12-23 10:36:34 +00:00
BaronGreenback
e8df9551ef Update PluginManager.cs
Changed a to i
2020-12-23 10:31:11 +00:00
BaronGreenback
9a97933499 Update Emby.Server.Implementations/Plugins/PluginManager.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2020-12-23 10:29:21 +00:00
BaronGreenback
8e04e6c837 Update Emby.Server.Implementations/Updates/InstallationManager.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2020-12-23 10:27:27 +00:00
BaronGreenback
63c290f878 Update Emby.Server.Implementations/Updates/InstallationManager.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2020-12-23 10:26:20 +00:00
BaronGreenback
4ba4eefeeb Update Emby.Server.Implementations/Plugins/PluginManager.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2020-12-23 10:26:02 +00:00
BaronGreenback
66d98cb8e4 Update Emby.Server.Implementations/ApplicationHost.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2020-12-23 10:24:30 +00:00
Claus Vium
e36881f4fd Merge pull request #4852 from ryanpetris/fix-schedulesdirect-refresh
SchedulesDirect no longer refreshes channels properly
2020-12-23 11:08:18 +01:00
Ryan Petris
c0c0eaec05 new List(int) does not pre-allocate indicies like Arrays, it merely sets the initial capacity. 2020-12-22 20:37:07 -07:00
Joshua M. Boniface
bfdd4727b5 Merge pull request #4850 from BaronGreenback/NetworkApiFix
Null reference fix
2020-12-22 22:21:59 -05:00
Joshua M. Boniface
ca535b2fbe Merge pull request #4847 from crobibero/display-prefs-migration-x251256
Fix another key collision in MigrateDisplayPreferencesDatabase
2020-12-22 22:21:16 -05:00
Joshua M. Boniface
a77788906c Merge pull request #4821 from BaronGreenback/disableDlna 2020-12-22 22:20:44 -05:00
BaronGreenback
e113a50597 Possible null reference fix. 2020-12-22 16:14:06 +00:00
crobibero
1dac2226c4 Remove unused deps 2020-12-22 08:57:51 -07:00
BaronGreenback
bc9462981e changed to constants 2020-12-22 15:33:25 +00:00
BaronGreenback
bf24929d27 Changed to 503. 2020-12-22 15:23:55 +00:00
BaronGreenback
1f2ecd0775 Fix for DI. 2020-12-22 15:01:26 +00:00
BaronGreenback
621e6d28cd Fallback to default guid 2020-12-22 14:07:01 +00:00
crobibero
3a6501abe0 Fix another key collision in MigrateDisplayPreferencesDatabase 2020-12-21 17:28:06 -07:00
Claus Vium
c8a89b0fe3 Merge pull request #4842 from crobibero/date-time-formatter
Add JsonDateTimeConverter
2020-12-21 23:11:54 +01:00
Claus Vium
53119ed2a1 Merge pull request #4824 from crobibero/livestream-post-body
Add request parameters to OpenLiveStreamDto
2020-12-21 23:10:46 +01:00
crobibero
d3b6a24f78 Add JsonDateTimeConverter 2020-12-21 08:41:13 -07:00
crobibero
242b5a45ab Add JsonDateTimeConverter 2020-12-21 08:12:32 -07:00
dependabot[bot]
fd488cd3ff Bump AutoFixture from 4.14.0 to 4.15.0
Bumps [AutoFixture](https://github.com/AutoFixture/AutoFixture) from 4.14.0 to 4.15.0.
- [Release notes](https://github.com/AutoFixture/AutoFixture/releases)
- [Commits](https://github.com/AutoFixture/AutoFixture/compare/v4.14.0...v4.15.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-21 12:00:39 +00:00
BaronGreenback
3633996a53 New json converter implemented. 2020-12-21 09:01:59 +00:00
Predrag Ljubenović
e778fda843 Translated using Weblate (Serbian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sr/
2020-12-21 02:25:41 -05:00
Page Asgardius
3df97d5441 Translated using Weblate (Spanish (Latin America))
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/es_419/
2020-12-21 02:25:41 -05:00
Claus Vium
98da2c67a5 Merge pull request #4836 from crobibero/dashboard-theme
Return dashboardTheme when requesting DisplayPreferences
2020-12-21 00:14:30 +01:00
Claus Vium
c90c382e2f Merge pull request #4833 from Ullmie02/similar-fix
Fix similar items endpoint for movies and TV
2020-12-21 00:14:07 +01:00
David
13de663201 Fix similar endpoint for TV 2020-12-20 22:21:11 +01:00
crobibero
a682fc4516 Return dashboardTheme when requesting DisplayPreferences 2020-12-20 12:59:44 -07:00
BaronGreenback
7a66761981 write json files indented. 2020-12-20 19:30:48 +00:00
BaronGreenback
53e280b80f json name override. 2020-12-20 16:29:28 +00:00
David
eba403158e Re-add IsMovie 2020-12-20 17:00:27 +01:00
David
f4d1e33010 Fix similar items endpoint for movies and TV 2020-12-20 15:37:44 +01:00
Claus Vium
e9db47cd20 Merge pull request #4816 from nyanmisaka/profiles
Fix some video profiles for Android client
2020-12-20 13:57:25 +01:00
Claus Vium
6274cf8fcc Merge pull request #4803 from ryanpetris/fix-getuser
Fix Live TV Recording Scheduling
2020-12-20 13:54:32 +01:00
WWWesten
cc5d0af4c1 Translated using Weblate (Russian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ru/
2020-12-20 03:50:47 -05:00
WWWesten
1d50c2ad63 Translated using Weblate (Kazakh)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/kk/
2020-12-20 03:50:47 -05:00
WWWesten
b8ef0823fa Translated using Weblate (Kazakh)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/kk/
2020-12-19 19:14:28 -05:00
Bond-009
2e8e96874f Merge pull request #4828 from joshuaboniface/linux-alt-arch 2020-12-19 23:06:34 +01:00
Joshua M. Boniface
704d627f3a Add Azure pipeline configs for new arches 2020-12-19 15:57:08 -05:00
Joshua M. Boniface
841df64e9f Add static Linux builds for arm and musl 2020-12-19 15:56:08 -05:00
crobibero
4539164d38 Add request parameters to OpenLiveStreamDto 2020-12-19 10:55:07 -07:00
BaronGreenback
9470712118 Added xml docs 2020-12-19 17:38:46 +00:00
BaronGreenback
3d0b9f9ea1 Did the other API, 2020-12-19 09:34:04 +00:00
BaronGreenback
c98144c60d Updated docs. 2020-12-18 23:59:21 +00:00
BaronGreenback
46c7499e2b reverted change 2020-12-18 23:55:23 +00:00
BaronGreenback
bae8f0c4ec corrected. 2020-12-18 23:52:19 +00:00
BaronGreenback
f06d52c475 Disable API if dlna is disabled. 2020-12-18 23:29:21 +00:00
Greenback
d34428f2f7 removed exception 2020-12-18 22:17:50 +00:00
BaronGreenback
9bf970e5c6 Update Emby.Server.Implementations/Plugins/PluginManager.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-18 21:59:14 +00:00
BaronGreenback
a293024efd Update Emby.Server.Implementations/Plugins/PluginManager.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-18 21:56:54 +00:00
BaronGreenback
5c3ebb63e6 Update Emby.Server.Implementations/Plugins/PluginManager.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-18 21:56:35 +00:00
BaronGreenback
09f219bbce Update Emby.Server.Implementations/Plugins/PluginManager.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-18 21:56:15 +00:00
BaronGreenback
3708ca8dbb Update Emby.Server.Implementations/Plugins/PluginManager.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-18 21:56:03 +00:00
BaronGreenback
4757824a82 Update Emby.Server.Implementations/Updates/InstallationManager.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-18 21:55:50 +00:00
Greenback
4cc19be173 removed compiler directives. 2020-12-18 21:14:38 +00:00
Greenback
cb793af30e Renamed guid to id 2020-12-18 21:11:29 +00:00
BaronGreenback
46a64deb66 Update MediaBrowser.Model/Updates/PackageInfo.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-18 21:07:24 +00:00
Greenback
5c4fdaa253 MaxAbi property removed. 2020-12-18 21:05:27 +00:00
Greenback
5d748c0e9f Renamed to ImagePath 2020-12-18 20:52:44 +00:00
Greenback
ce19f2be55 Renamed Guid property to Id 2020-12-18 20:37:35 +00:00
Predrag Ljubenović
07ee98b65f Translated using Weblate (Serbian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sr/
2020-12-18 15:04:11 -05:00
Nyanmisaka
ac03ef57c9 allow empty video encoder profile
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-19 01:47:31 +08:00
Greenback
486148dd6b Removed maxAbi 2020-12-18 09:44:57 +00:00
Greenback
5a3efc5266 Changes as required. 2020-12-18 09:04:40 +00:00
BaronGreenback
4153551dfc Update Emby.Server.Implementations/Plugins/PluginManager.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-18 08:26:11 +00:00
BaronGreenback
0dcf6b09c1 Update Emby.Server.Implementations/Plugins/PluginManager.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-18 08:25:39 +00:00
BaronGreenback
8ce765c4d1 Update Emby.Server.Implementations/Plugins/PluginManager.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-18 08:25:04 +00:00
BaronGreenback
591ad3b04b Update Emby.Server.Implementations/Plugins/PluginManager.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-18 08:24:26 +00:00
BaronGreenback
30645e7265 Update Emby.Server.Implementations/Plugins/PluginManager.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-18 08:24:12 +00:00
BaronGreenback
2d094bedf5 Update Emby.Server.Implementations/Plugins/PluginManager.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-18 08:24:00 +00:00
BaronGreenback
3a8d395c9c Update Emby.Server.Implementations/Plugins/PluginManager.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-18 08:23:46 +00:00
BaronGreenback
5d5b198525 Update Jellyfin.Api/Controllers/PluginsController.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-18 08:23:28 +00:00
BaronGreenback
e445c2932a Update Jellyfin.Api/Controllers/PluginsController.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-18 08:23:15 +00:00
Joshua M. Boniface
668e168c47 Merge pull request #4819 from crobibero/download-name
Set filename when downloading file
2020-12-18 02:17:24 -05:00
SecularSteve
be3129e012 Translated using Weblate (English (United Kingdom))
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/en_GB/
2020-12-17 16:54:00 -05:00
crobibero
56ae63433f Set filename when downloading file 2020-12-17 13:05:44 -07:00
Miko Dela Cruz
e515b696d1 Translated using Weblate (Japanese)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ja/
2020-12-17 11:49:03 -05:00
nlspln
9bf51aeb6b Translated using Weblate (Dutch)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/nl/
2020-12-17 11:49:03 -05:00
nyanmisaka
cf8aa37f5b Fix some video profile for Android client
* Fix constrained high profile for some encoders
* Extended profile is not supported by any known h264 encoders
* Replace HEVC 10-bit profiles with main profile
2020-12-17 23:33:44 +08:00
BaronGreenback
0ed3c2def2 Update MediaBrowser.sln 2020-12-17 13:50:24 +00:00
Greenback
a4a40407a0 Change PluginStatus states. 2020-12-17 13:44:53 +00:00
BaronGreenback
212c76102d Update PluginManifest.cs 2020-12-17 13:37:13 +00:00
Greenback
d9aaba36ec Copy previous plugin settings if they don't exist. 2020-12-16 23:19:09 +00:00
Greenback
1ed25ebd9a Corrections as recommended. 2020-12-16 22:36:25 +00:00
Greenback
ebbb57efc3 Change json default settings. 2020-12-16 21:40:52 +00:00
Claus Vium
21d2e9ff0c Merge pull request #4771 from crobibero/typed-get-preference
Use typed UserManager GetPreference
2020-12-16 22:15:56 +01:00
Greenback
6d3e1d6b57 Small Optimization 2020-12-16 19:37:23 +00:00
Claus Vium
1f2488d7d9 Merge pull request #4807 from nyanmisaka/ps4-dlna
Correct DLNA audio codecs for PS3 and PS4
2020-12-16 15:52:16 +01:00
nyanmisaka
7c3f2e7c59 Correct DLNA audio codecs for PS3 and PS4
* https://manuals.playstation.net/document/en/ps3/current/video/filetypes.html
* https://manuals.playstation.net/document/en/ps4/music/mp_format_m.html
2020-12-16 21:20:29 +08:00
Ryan Petris
875562e580 This is only used in one place and therefore will always be HttpRequest. 2020-12-15 22:17:04 -07:00
Ryan Petris
1b3fcab6a4 If requestContext is HttpRequest, get the context from it properly. 2020-12-15 22:02:08 -07:00
Greenback
5323887540 Replaced TryGetPlugin with GetPlugin 2020-12-15 20:27:42 +00:00
Greenback
0337e39bae Updated JsonDefaults 2020-12-15 19:39:41 +00:00
Greenback
00ff3b9096 remove attribute 2020-12-15 19:35:30 +00:00
BaronGreenback
aecd35d306 Update Jellyfin.Api/Controllers/PluginsController.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-15 19:31:36 +00:00
BaronGreenback
24ab152e9d Update Jellyfin.Api/Controllers/PluginsController.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-15 19:30:23 +00:00
Bond-009
8eeed82523 Merge pull request #4792 from cvium/fix_missing_seasons
Add missing seasons during AfterMetadataRefresh
2020-12-15 20:30:13 +01:00
BaronGreenback
e4993ae574 Update Jellyfin.Api/Controllers/PluginsController.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-15 19:24:52 +00:00
BaronGreenback
2afa963fc1 Update Jellyfin.Api/Controllers/PluginsController.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-15 19:24:39 +00:00
BaronGreenback
3f1ad7f963 Update Jellyfin.Api/Controllers/PluginsController.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-15 19:22:54 +00:00
Greenback
c197dca759 Changed PluginId to guid so its the same type as plugin.id 2020-12-15 18:27:31 +00:00
Greenback
eb2439f23b Changes as recommended. 2020-12-15 16:37:11 +00:00
Bond-009
e84622b4ab Merge pull request #4794 from cvium/fix_image_upload
Convert from base64 when saving item images
2020-12-15 12:24:05 +01:00
Bond-009
906ee4f962 Merge pull request #4781 from crobibero/map-xmltv
Use request body for mapping xml channels
2020-12-15 12:22:39 +01:00
Greenback
c761cbff0e more changes. 2020-12-15 10:20:28 +00:00
Greenback
208d545cfe Changed as suggested. 2020-12-15 10:05:04 +00:00
Greenback
dddcfa6dbb Suggested changes. 2020-12-15 09:30:19 +00:00
BaronGreenback
41466c430d Update Jellyfin.Api/Controllers/PluginsController.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-15 09:17:06 +00:00
cvium
5b4eef741a Convert from base64 when saving item images 2020-12-15 09:27:33 +01:00
Claus Vium
bc8f1bdcac Merge pull request #4789 from crobibero/provider-search
Fix get provider id extension
2020-12-15 09:10:12 +01:00
BaronGreenback
33385c1b8c Update Jellyfin.Api/Controllers/PluginsController.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-15 07:55:14 +00:00
BaronGreenback
1c6529c9eb Update Jellyfin.Api/Controllers/PluginsController.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-15 07:54:49 +00:00
cvium
9f6000d845 Add missing seasons during AfterMetadataRefresh 2020-12-15 08:18:36 +01:00
BaronGreenback
3cff64ee32 Delete disabled.png
Should have a capital letter
2020-12-15 01:32:43 +00:00
BaronGreenback
2bb12793b2 Add files via upload 2020-12-15 01:31:56 +00:00
Greenback
cddc87e2af Fixed gitmerge. 2020-12-15 01:23:52 +00:00
BaronGreenback
67c480ad53 Merge branch 'master' into PluginDowngrade 2020-12-15 01:15:54 +00:00
Greenback
0d4aa6bad6 Enable local file repositories 2020-12-15 01:13:11 +00:00
Greenback
356d92cd71 Fixed repository listing 2020-12-15 00:49:14 +00:00
Greenback
fbb20ebef6 Plugin setting migration to folders. 2020-12-15 00:42:59 +00:00
Greenback
494ace7984 Mark plugin failure on DI Loop. 2020-12-14 23:39:47 +00:00
Greenback
d2d45295fc Rollback change. 2020-12-14 23:13:29 +00:00
Greenback
a246a77ada Delete plugin working. 2020-12-14 23:08:04 +00:00
Greenback
7986465cf7 Initial upload 2020-12-14 16:14:39 +00:00
crobibero
e051090904 Use proper array setter 2020-12-14 09:03:36 -07:00
crobibero
a515ecbada Use range operator to get subarray 2020-12-14 07:53:56 -07:00
crobibero
ca5f87c7eb Fix get provider id extension 2020-12-14 07:20:16 -07:00
Joshua M. Boniface
4f6a585424 Merge pull request #4716 from OancaAndrei/syncplay-new-auth-policies 2020-12-13 16:58:28 -05:00
Joshua M. Boniface
e7ae712437 Merge pull request #4773 from Artiume/patch-10
Remove opf extension for book types
2020-12-13 16:57:50 -05:00
Joshua M. Boniface
7b5319bb07 Merge pull request #4750 from crobibero/skia
Fix blueberry
2020-12-13 16:56:23 -05:00
Joshua M. Boniface
adf3ee9eeb Merge pull request #4718 from jellyfin/dependabot/nuget/Microsoft.NET.Test.Sdk-16.8.3
Bump Microsoft.NET.Test.Sdk from 16.8.0 to 16.8.3
2020-12-13 16:55:47 -05:00
Joshua M. Boniface
d0ccea934f Merge pull request #4720 from MrTimscampi/activity-log-levels
Add overloaded constructor for ActivityLog levels
2020-12-13 16:55:34 -05:00
A Foley
a83a4f55d9 Translated using Weblate (French (Canada))
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fr_CA/
2020-12-13 16:46:42 -05:00
Claus Vium
a3a7467f49 Merge pull request #4713 from crobibero/robots 2020-12-13 20:12:07 +01:00
crobibero
c6b381db10 Use request body for mapping xml channels 2020-12-13 08:32:33 -07:00
crobibero
ee23d06154 Use a more descriptive function name 2020-12-13 08:15:26 -07:00
Claus Vium
8c00fbea9c Merge pull request #4675 from BaronGreenback/ProxyDNS 2020-12-13 14:22:27 +01:00
Claus Vium
4ecb30ef10 Merge pull request #4769 from crobibero/typo
Check correct fetcher list for provider name
2020-12-13 14:13:01 +01:00
Claus Vium
c5a5f77b9e Merge pull request #4726 from BaronGreenback/19.0RC--Fix-CertificateLoadError
Fix - Access Denied on using certificates in windows as user.
2020-12-13 13:35:02 +01:00
Claus Vium
13bb5e1ead Merge pull request #4761 from crobibero/playlist 2020-12-13 13:34:04 +01:00
Claus Vium
f8ef38c0ea Merge pull request #4758 from nyanmisaka/fix-landingScreen-options 2020-12-13 13:29:11 +01:00
Claus Vium
f9a78625b7 Merge pull request #4767 from nyanmisaka/fix-ssl-save 2020-12-13 13:25:21 +01:00
Bond-009
381341c83b Merge pull request #4774 from nyanmisaka/finetune-tonemap
Fine tune some tone mapping params
2020-12-13 11:57:32 +01:00
Bill Thornton
42beaddb45 Merge pull request #4731 from Sylk/readme-modification
Modified ReadMe with updated command line command
2020-12-12 23:34:45 -05:00
Bond-009
cb36feaa0f Merge pull request #4775 from barronpm/nullable-jellyfinserverimplementations
Enable Nullable for Jellyfin.Server.Implementations
2020-12-12 19:22:08 +01:00
crobibero
8f4a4a3cc5 Convert values without throwing exception 2020-12-12 10:36:17 -07:00
Patrick Barron
d9263dacd5 Enable nullable for Jellyfin.Server.Implementations 2020-12-12 11:20:48 -05:00
nyanmisaka
7be3276dff Fine tune some tone mapping params
*Set recommand algorithm to Hable
*Set recommand tone mapping peak to 100
2020-12-12 18:26:52 +08:00
artiume
297cb27ab6 remove opf extension for book types 2020-12-11 21:13:28 -05:00
crobibero
f5cce9e630 Use typed UserManager GetPreference 2020-12-11 15:04:14 -07:00
crobibero
b670937c3d Use typed UserManager GetPreference 2020-12-11 15:00:43 -07:00
Bond-009
b3caa51173 Merge pull request #4699 from crobibero/display_prefs_index
Fix CustomItemDisplayPreferences unique key collision in the migration
2020-12-11 22:29:07 +01:00
crobibero
7d24460fac Fix copy-paste error 2020-12-11 14:03:10 -07:00
Bond-009
04ba59ab40 Merge pull request #4766 from barronpm/usermanager-async
Convert DeleteUser to async
2020-12-11 21:29:20 +01:00
Nyanmisaka
d701b67de1 Apply suggestions from code review
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2020-12-12 02:36:31 +08:00
nyanmisaka
41218c5613 fix ssl certificate cannot be saved 2020-12-11 23:52:09 +08:00
Patrick Barron
76f61eb0d6 Convert DeleteUser to async 2020-12-11 10:15:43 -05:00
crobibero
ac2593e370 Set convolveAlpha to true 2020-12-11 08:06:04 -07:00
crobibero
69d581033b Use a more descriptive middleware name 2020-12-11 07:17:06 -07:00
Claus Vium
a57e465de9 Merge pull request #4710 from OancaAndrei/syncplay-fix-session-restore
Restore sessions in SyncPlay groups upon reconnection
2020-12-11 09:57:14 +01:00
Claus Vium
e6ea5a776d Merge pull request #4724 from BaronGreenback/17.0RC----DLNA_PlayTo_Fix 2020-12-11 09:56:39 +01:00
Claus Vium
c1bb29532f Merge pull request #4756 from crobibero/api-key-inverted-condition
Fix inverted condition when authenticating with an ApiKey
2020-12-11 09:54:15 +01:00
Claus Vium
f322866127 Merge pull request #4737 from crobibero/missing-ensure-success 2020-12-11 09:53:43 +01:00
Claus Vium
0cddfbcff5 Merge pull request #4757 from cvium/semi_revert_defer_image_loading 2020-12-11 08:11:38 +01:00
Claus Vium
b56feac841 Merge pull request #4762 from crobibero/api-file-return
Fix openapi file schema
2020-12-11 08:11:25 +01:00
Nyanmisaka
a79c210c76 fix typo
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2020-12-11 11:35:00 +08:00
crobibero
34029f860c Fix openapi file schema 2020-12-10 19:05:49 -07:00
kaboom83
abcbb9f156 Translated using Weblate (Slovenian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sl/
2020-12-10 16:47:20 -05:00
Bond-009
933e7fa159 Merge pull request #4749 from crobibero/guid-standard 2020-12-10 21:53:32 +01:00
crobibero
297b7ea6fa Fix empty body for PlaybackInfo 2020-12-10 11:36:58 -07:00
crobibero
0d2106a272 Allow playlist to be created by query string 2020-12-10 11:36:31 -07:00
cvium
15a3d8d626 Forgot to revert some other changes, dunno if needed 2020-12-10 18:02:12 +01:00
crobibero
a9aafbaf5a Don't throw exception unless needed 2020-12-10 08:25:05 -07:00
crobibero
b66abf0556 Add support back for /emby and /mediabrowser routes 2020-12-10 08:17:02 -07:00
nyanmisaka
0332b72502 fix landing screen options 2020-12-10 22:41:00 +08:00
cvium
3f6e6c4839 Simplify 2020-12-10 14:47:47 +01:00
dependabot[bot]
3e062bc0cd Bump Microsoft.NET.Test.Sdk from 16.8.0 to 16.8.3
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.8.0 to 16.8.3.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.8.0...v16.8.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-10 12:57:44 +00:00
Claus Vium
a56ac65449 Merge pull request #4753 from crobibero/5.0.1
Update to dotnet 5.0.1
2020-12-10 13:56:54 +01:00
Claus Vium
7455de1f85 Merge pull request #4701 from crobibero/plugin-version 2020-12-10 13:53:24 +01:00
cvium
dd238937f4 Remember to await the async task 2020-12-10 13:44:58 +01:00
cvium
3c5bbeb80c Remove ImageFetcherPostScanTask 2020-12-10 13:38:33 +01:00
crobibero
2478c8fa64 Fix inverted condition when authenticating with an ApiKey 2020-12-09 23:15:33 -07:00
crobibero
681a0f3e75 Add nullable guid test 2020-12-09 19:57:25 -07:00
crobibero
aa5fa7cb8f Update to dotnet 5.0.1 2020-12-09 07:36:31 -07:00
Bond-009
9e601ba731 Merge pull request #4751 from nyanmisaka/mpegts-batchsize 2020-12-09 14:37:44 +01:00
Nyanmisaka
060f6c194f Apply suggestions from code review
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2020-12-09 16:37:15 +08:00
Claus Vium
e85884ddb9 Merge pull request #4743 from crobibero/metadata-options
Actually use library options when filtering metadata providers
2020-12-09 08:34:01 +01:00
Claus Vium
31e8273795 Merge pull request #4741 from jellyfin/tests8
Add tests for HdHomerunHost.GetLineup
2020-12-09 08:16:40 +01:00
nyanmisaka
ebd9ab3ccc use larger batch size on mpegts to avoid corrupted thumbnails 2020-12-09 14:39:41 +08:00
crobibero
c955f19634 Serialize GUID without dashes 2020-12-08 19:33:26 -07:00
crobibero
75aa3718dc Actually use library options when filtering metadata providers 2020-12-08 17:47:13 -07:00
Bond_009
c0fde3496c Add tests for HdHomerunHost.TryGetTunerHostInfo 2020-12-09 01:24:30 +01:00
Bond_009
514d95e5aa Add tests for HdHomerunHost.GetLineup 2020-12-09 01:08:41 +01:00
Bond-009
87e13b858a Merge pull request #4733 from crobibero/omdb-null
Fix potential null reference in OMDB
2020-12-09 00:28:32 +01:00
Claus Vium
e6650651b3 Merge pull request #4738 from jellyfin/tests8
Add tests for HdHomerunHost.GetModelInfo
2020-12-08 20:20:33 +01:00
Bond_009
7027561e19 Add tests for HdHomerunHost.GetModelInfo 2020-12-08 18:53:38 +01:00
Claus Vium
b83bc0a589 Merge pull request #4736 from nyanmisaka/fix-custom-order
Fix custom library order
2020-12-08 18:22:43 +01:00
Claus Vium
b6ecaccf92 Merge pull request #4730 from crobibero/base-item-dto-guid-nullable
Don't serialize empty GUID to null
2020-12-08 18:22:18 +01:00
Anthony Lavado
94d805d03d Merge pull request #4735 from crobibero/json-recursion
Fix JsonConverter recursion
2020-12-08 12:08:24 -05:00
crobibero
e621244405 Add missing EnsureSuccessStatusCode 2020-12-08 08:28:19 -07:00
nyanmisaka
020fe37dfe fix custom library order 2020-12-08 22:33:52 +08:00
crobibero
26e5aacb90 Fix JsonConverter recursion 2020-12-08 07:18:25 -07:00
Claus Vium
80ff564143 Merge pull request #4722 from crobibero/forbid
Fix API forbidden response
2020-12-08 10:11:14 +01:00
Claus Vium
0aad17554c Merge pull request #4715 from crobibero/hdhr-json-bool
Add number to bool json converter
2020-12-08 08:58:01 +01:00
Claus Vium
0d5f651ae9 Merge pull request #4706 from cvium/fix_aspectratio_again
Only apply series image aspect ratio if episode/season has no primary image
2020-12-08 08:46:05 +01:00
Claus Vium
885d42cb65 Merge pull request #4678 from BaronGreenback/network_routing_fix_17.0rc
Change logging level and message in NetworkManager
2020-12-08 08:37:51 +01:00
Claus Vium
4c199ac9a5 Merge pull request #4711 from barronpm/api-fixes
Add required attributes to parameters
2020-12-08 08:36:32 +01:00
crobibero
d12fa01d7a Fix potential null reference 2020-12-07 19:10:35 -07:00
Matthew Bauer
2c947630a7 Modified ReadMe with updated command line command
Also removed old documentation about placing the built dist into the jellyfin-server directory
2020-12-07 16:04:20 -07:00
BaronGreenback
af37cc2339 Merge branch 'master' into ProxyDNS 2020-12-07 22:54:51 +00:00
BaronGreenback
acc45b7307 Update Jellyfin.Networking/Configuration/NetworkConfiguration.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-12-07 22:29:19 +00:00
crobibero
8517b28eba Make BaseItemDto Guids nullable 2020-12-07 15:23:40 -07:00
crobibero
6722fcec36 Revert #4568 2020-12-07 15:23:25 -07:00
Greenback
e34adc12d9 reverted change. 2020-12-07 22:16:25 +00:00
BaronGreenback
57cb3a67bc Update ApplicationHost.cs
Removed previous change, use for testing.
2020-12-07 22:12:43 +00:00
Greenback
d69f2d7d7f DNLA over HTTP only 2020-12-07 22:06:28 +00:00
crobibero
6e98378447 Simplify converter 2020-12-07 14:58:27 -07:00
BaronGreenback
b485520537 Update ApplicationHost.cs
Added X509KeyStorageFlags.UserKeySet
2020-12-07 20:25:41 +00:00
Greenback
8999871b68 cleaned change 2020-12-07 18:31:45 +00:00
Greenback
d14d8145d5 Fixed createPlayList 2020-12-07 18:27:22 +00:00
crobibero
5150598c6d Fix API forbidden response 2020-12-07 08:55:42 -07:00
Ionut Andrei Oanca
fbeb0228a2 Minor code style related change 2020-12-07 16:15:56 +01:00
MrTimscampi
f97182c768 Add log level parameter to ActivityLog constructor 2020-12-07 15:28:29 +01:00
Ionut Andrei Oanca
499f3ee950 Update authorization policies for SyncPlay 2020-12-07 10:33:15 +01:00
crobibero
66a1880a58 Add number to bool json converter 2020-12-06 20:26:21 -07:00
crobibero
d65e8d7044 Redirect robots.txt if hosting web content 2020-12-06 19:40:43 -07:00
Patrick Barron
391870ebae Add required attributes to parameters 2020-12-06 20:05:55 -05:00
Ionut Andrei Oanca
0825ce687d Add SessionControllerConnected event 2020-12-07 01:04:48 +01:00
cvium
a0fbf0f539 Only apply series image aspect ratio if episode/season has no primary image 2020-12-06 22:49:00 +01:00
crobibero
8df2213d6b Don't return plugin versions that target newer Jellyfin version 2020-12-06 10:13:08 -07:00
crobibero
eefe87f537 Remove CustomItemDisplayPreferences unique key collision 2020-12-06 09:11:00 -07:00
Artūrs Jānis Ņikitins
a7b461adb4 Translated using Weblate (Latvian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lv/
2020-12-06 09:38:27 -05:00
Artūrs Jānis Ņikitins
b9107e847a Translated using Weblate (Latvian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lv/
2020-12-05 19:15:09 -05:00
Saman Dadmand
34cd89058a Translated using Weblate (Persian)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fa/
2020-12-05 19:15:08 -05:00
rwctrjotovxqqqyqod
4d56afa712 Translated using Weblate (French (Canada))
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fr_CA/
2020-12-05 13:58:38 -05:00
BaronGreenback
abacae4520 Update NetworkManager.cs
Changed logging type.
2020-12-05 16:28:14 +00:00
BaronGreenback
1a44d34f50 Update ApiServiceCollectionExtensions.cs 2020-12-05 16:00:34 +00:00
Bond-009
804dd00425 Merge pull request #4671 from cvium/allow_proxy
Clear KnownNetworks and KnownProxies if none are configured explicitly
2020-12-05 16:22:11 +01:00
Bond-009
26919eed26 Merge pull request #4672 from cvium/fix_mergeversions_which_was_unrelated_to_my_bughunt
Fix MergeVersions endpoint
2020-12-05 15:06:41 +01:00
cvium
ba7a1c8b7b Fix MergeVersions endpoint 2020-12-05 13:54:19 +01:00
cvium
41cd4d0a39 Clear KnownNetworks and KnownProxies if none are configured explicitly 2020-12-05 10:18:56 +01:00
Joshua M. Boniface
f2c2beca0f Merge pull request #4667 from joshuaboniface/fix-nuget-ci
Remove obsolete erroring command
2020-12-05 01:34:49 -05:00
Joshua M. Boniface
8976b22ac4 Merge pull request #4669 from MrTimscampi/fix-npm-public
Fix NPM command in CI
2020-12-05 01:31:02 -05:00
MrTimscampi
048de2f3b7 Fix NPM command in CI 2020-12-05 07:25:41 +01:00
Joshua M. Boniface
599f36f57f Remove obsolete erroring command
This is not required for stable pushes.
2020-12-05 01:21:52 -05:00
Joshua M. Boniface
e3a1991fe9 Merge pull request #4662 from joshuaboniface/fix-bump-version
Fix bad do in bump_version
2020-12-05 01:12:18 -05:00
Joshua M. Boniface
1af0139ae7 Merge pull request #4665 from anthonylavado/ci-npm-fix
Fix the NPM publish scope to public
2020-12-05 01:08:14 -05:00
Anthony Lavado
c9832bb98a Fix the NPM publish scope to public 2020-12-04 22:36:11 -05:00
Anthony Lavado
8b55ff2e6e Merge pull request #4664 from joshuaboniface/codeown-ci
Make me codeowner of the .ci dir
2020-12-04 22:07:40 -05:00
Joshua M. Boniface
d838a27e6d Make me codeowner of the .ci dir
I need to know when stuff changes.
2020-12-04 22:05:37 -05:00
Joshua M. Boniface
5f2cd11199 Bump version to 10.8.0 for next release 2020-12-04 21:56:24 -05:00
Joshua M. Boniface
495c0ba1f1 Fix bad do in bump_version 2020-12-04 21:53:48 -05:00
Erwin de Haan
c5d900b164 Add initial management interface support. 2020-10-21 17:28:00 +02:00
1271 changed files with 32279 additions and 19193 deletions

View File

@@ -7,7 +7,7 @@ parameters:
default: "ubuntu-latest"
- name: DotNetSdkVersion
type: string
default: 5.0.100
default: 5.0.302
jobs:
- job: CompatibilityCheck

View File

@@ -1,58 +0,0 @@
parameters:
- name: LinuxImage
type: string
default: "ubuntu-latest"
- name: GeneratorVersion
type: string
default: "5.0.0-beta2"
jobs:
- job: GenerateApiClients
displayName: 'Generate Api Clients'
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
dependsOn: Test
pool:
vmImage: "${{ parameters.LinuxImage }}"
steps:
- task: DownloadPipelineArtifact@2
displayName: 'Download OpenAPI Spec Artifact'
inputs:
source: 'current'
artifact: "OpenAPI Spec"
path: "$(System.ArtifactsDirectory)/openapispec"
runVersion: "latest"
- task: CmdLine@2
displayName: 'Download OpenApi Generator'
inputs:
script: "wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/${{ parameters.GeneratorVersion }}/openapi-generator-cli-${{ parameters.GeneratorVersion }}.jar -O openapi-generator-cli.jar"
## Authenticate with npm registry
- task: npmAuthenticate@0
inputs:
workingFile: ./.npmrc
customEndpoint: 'jellyfin-bot for NPM'
## Generate npm api client
- task: CmdLine@2
displayName: 'Build stable typescript axios client'
inputs:
script: "bash ./apiclient/templates/typescript/axios/generate.sh $(System.ArtifactsDirectory)"
## Run npm install
- task: Npm@1
displayName: 'Install npm dependencies'
inputs:
command: install
workingDir: ./apiclient/generated/typescript/axios
## Publish npm packages
- task: Npm@1
displayName: 'Publish stable typescript axios client'
inputs:
command: publish
publishRegistry: useExternalRegistry
publishEndpoint: 'jellyfin-bot for NPM'
workingDir: ./apiclient/generated/typescript/axios

View File

@@ -1,7 +1,7 @@
parameters:
LinuxImage: 'ubuntu-latest'
RestoreBuildProjects: 'Jellyfin.Server/Jellyfin.Server.csproj'
DotNetSdkVersion: 5.0.100
DotNetSdkVersion: 5.0.302
jobs:
- job: Build

View File

@@ -22,6 +22,12 @@ jobs:
BuildConfiguration: ubuntu.armhf
Linux.amd64:
BuildConfiguration: linux.amd64
Linux.amd64-musl:
BuildConfiguration: linux.amd64-musl
Linux.arm64:
BuildConfiguration: linux.arm64
Linux.armhf:
BuildConfiguration: linux.armhf
Windows.amd64:
BuildConfiguration: windows.amd64
MacOS:
@@ -154,7 +160,6 @@ jobs:
dependsOn:
- BuildPackage
- BuildDocker
condition: and(succeeded('BuildPackage'), succeeded('BuildDocker'))
pool:
vmImage: 'ubuntu-latest'
@@ -180,13 +185,14 @@ jobs:
- job: PublishNuget
displayName: 'Publish NuGet packages'
dependsOn:
- BuildPackage
condition: succeeded('BuildPackage')
pool:
vmImage: 'ubuntu-latest'
variables:
- name: JellyfinVersion
value: $[replace(variables['Build.SourceBranch'],'refs/tags/v','')]
steps:
- task: UseDotNet@2
displayName: 'Use .NET 5.0 sdk'
@@ -198,12 +204,19 @@ jobs:
displayName: 'Build Stable Nuget packages'
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
inputs:
command: 'pack'
packagesToPack: 'Jellyfin.Data/Jellyfin.Data.csproj;MediaBrowser.Common/MediaBrowser.Common.csproj;MediaBrowser.Controller/MediaBrowser.Controller.csproj;MediaBrowser.Model/MediaBrowser.Model.csproj;Emby.Naming/Emby.Naming.csproj'
versioningScheme: 'off'
command: 'custom'
projects: |
Jellyfin.Data/Jellyfin.Data.csproj
MediaBrowser.Common/MediaBrowser.Common.csproj
MediaBrowser.Controller/MediaBrowser.Controller.csproj
MediaBrowser.Model/MediaBrowser.Model.csproj
Emby.Naming/Emby.Naming.csproj
custom: 'pack'
arguments: -o $(Build.ArtifactStagingDirectory) -p:Version=$(JellyfinVersion)
- task: DotNetCoreCLI@2
displayName: 'Build Unstable Nuget packages'
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/master')
inputs:
command: 'custom'
projects: |
@@ -221,18 +234,12 @@ jobs:
pathToPublish: $(Build.ArtifactStagingDirectory)
artifactName: Jellyfin Nuget Packages
- task: NuGetAuthenticate@0
displayName: 'Authenticate to stable Nuget feed'
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
inputs:
nuGetServiceConnections: 'NugetOrg'
- task: NuGetCommand@2
displayName: 'Push Nuget packages to stable feed'
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
inputs:
command: 'push'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;$(Build.ArtifactStagingDirectory)/**/*.snupkg'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg'
nuGetFeedType: 'external'
publishFeedCredentials: 'NugetOrg'
allowPackageConflicts: true # This ignores an error if the version already exists

View File

@@ -10,7 +10,7 @@ parameters:
default: "tests/**/*Tests.csproj"
- name: DotNetSdkVersion
type: string
default: 5.0.100
default: 5.0.302
jobs:
- job: Test
@@ -94,5 +94,5 @@ jobs:
displayName: 'Publish OpenAPI Artifact'
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
inputs:
targetPath: "tests/Jellyfin.Api.Tests/bin/Release/net5.0/openapi.json"
targetPath: "tests/Jellyfin.Server.Integration.Tests/bin/Release/net5.0/openapi.json"
artifactName: 'OpenAPI Spec'

View File

@@ -6,7 +6,7 @@ variables:
- name: RestoreBuildProjects
value: 'Jellyfin.Server/Jellyfin.Server.csproj'
- name: DotNetSdkVersion
value: 5.0.100
value: 5.0.302
pr:
autoCancel: true
@@ -61,6 +61,3 @@ jobs:
- ${{ if or(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master')) }}:
- template: azure-pipelines-package.yml
- ${{ if or(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master')) }}:
- template: azure-pipelines-api-client.yml

View File

@@ -1,30 +0,0 @@
---
kind: pipeline
name: build-debug
steps:
- name: submodules
image: docker:git
commands:
- git submodule update --init --recursive
- name: build
image: microsoft/dotnet:2-sdk
commands:
- dotnet publish "Jellyfin.Server" --configuration Debug --output "../ci/ci-debug"
---
kind: pipeline
name: build-release
steps:
- name: submodules
image: docker:git
commands:
- git submodule update --init --recursive
- name: build
image: microsoft/dotnet:2-sdk
commands:
- dotnet publish "Jellyfin.Server" --configuration Release --output "../ci/ci-release"

1
.github/CODEOWNERS vendored
View File

@@ -1,3 +1,4 @@
# Joshua must review all changes to deployment and build.sh
.ci/* @joshuaboniface
deployment/* @joshuaboniface
build.sh @joshuaboniface

View File

@@ -17,6 +17,7 @@ assignees: ''
- Browser: [e.g. Firefox 72, Chrome 80, Safari 13]
- Jellyfin Version: [e.g. 10.4.3, nightly 20191231]
- Playback: [Direct Play, Remux, Direct Stream, Transcode]
- Hardware Acceleration: [e.g. none, VAAPI, NVENC, etc.]
- Installed Plugins: [e.g. none, Fanart, Anime, etc.]
- Reverse Proxy: [e.g. none, nginx, apache, etc.]
- Base URL: [e.g. none, yes: /example]
@@ -33,7 +34,13 @@ assignees: ''
**Expected behavior**
<!-- A clear and concise description of what you expected to happen. -->
**Logs**
**Server Logs**
<!-- Please paste any log errors. -->
**FFmpeg Logs**
<!-- Please paste any log errors. -->
**Browser Console Logs**
<!-- Please paste any log errors. -->
**Screenshots**

View File

@@ -6,4 +6,10 @@ updates:
interval: weekly
time: '12:00'
open-pull-requests-limit: 10
- package-ecosystem: github-actions
directory: '/'
schedule:
interval: weekly
time: '12:00'
open-pull-requests-limit: 10

6
.github/stale.yml vendored
View File

@@ -17,9 +17,13 @@ staleLabel: stale
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.
If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or nightlies, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.
This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on [Matrix or Social Media](https://docs.jellyfin.org/general/getting-help.html).
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
# Disable automatic closing of pull requests
pulls:
daysUntilClose: false

76
.github/workflows/automation.yml vendored Normal file
View File

@@ -0,0 +1,76 @@
name: Automation
on:
push:
branches:
- master
pull_request_target:
issue_comment:
jobs:
label:
name: Labeling
runs-on: ubuntu-latest
if: ${{ github.repository == 'jellyfin/jellyfin' }}
steps:
- name: Apply label
uses: eps1lon/actions-label-merge-conflict@v2.0.1
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request_target'}}
with:
dirtyLabel: 'merge conflict'
repoToken: ${{ secrets.JF_BOT_TOKEN }}
project:
name: Project board
runs-on: ubuntu-latest
if: ${{ github.repository == 'jellyfin/jellyfin' }}
steps:
- name: Remove from 'Current Release' project
uses: alex-page/github-project-automation-plus@v0.8.1
if: (github.event.pull_request || github.event.issue.pull_request) && !contains(github.event.*.labels.*.name, 'stable backport')
continue-on-error: true
with:
project: Current Release
action: delete
repo-token: ${{ secrets.JF_BOT_TOKEN }}
- name: Add to 'Release Next' project
uses: alex-page/github-project-automation-plus@v0.8.1
if: (github.event.pull_request || github.event.issue.pull_request) && github.event.action == 'opened'
continue-on-error: true
with:
project: Release Next
column: In progress
repo-token: ${{ secrets.JF_BOT_TOKEN }}
- name: Add to 'Current Release' project
uses: alex-page/github-project-automation-plus@v0.8.1
if: (github.event.pull_request || github.event.issue.pull_request) && !contains(github.event.*.labels.*.name, 'stable backport')
continue-on-error: true
with:
project: Current Release
column: In progress
repo-token: ${{ secrets.JF_BOT_TOKEN }}
- name: Check number of comments from the team member
if: github.event.issue.pull_request == '' && github.event.comment.author_association == 'MEMBER'
id: member_comments
run: echo "::set-output name=number::$(curl -s ${{ github.event.issue.comments_url }} | jq '.[] | select(.author_association == "MEMBER") | .author_association' | wc -l)"
- name: Move issue to needs triage
uses: alex-page/github-project-automation-plus@v0.8.1
if: github.event.issue.pull_request == '' && github.event.comment.author_association == 'MEMBER' && steps.member_comments.outputs.number <= 1
continue-on-error: true
with:
project: Issue Triage for Main Repo
column: Needs triage
repo-token: ${{ secrets.JF_BOT_TOKEN }}
- name: Add issue to triage project
uses: alex-page/github-project-automation-plus@v0.8.1
if: github.event.issue.pull_request == '' && github.event.action == 'opened'
continue-on-error: true
with:
project: Issue Triage for Main Repo
column: Pending response
repo-token: ${{ secrets.JF_BOT_TOKEN }}

View File

@@ -24,7 +24,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.100'
dotnet-version: '5.0.x'
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:

119
.github/workflows/commands.yml vendored Normal file
View File

@@ -0,0 +1,119 @@
name: Commands
on:
issue_comment:
types:
- created
- edited
pull_request_target:
types:
- labeled
- synchronize
jobs:
rebase:
name: Rebase
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '@jellyfin-bot rebase') && github.event.comment.author_association == 'MEMBER'
runs-on: ubuntu-latest
steps:
- name: Notify as seen
uses: peter-evans/create-or-update-comment@v1.4.5
with:
token: ${{ secrets.JF_BOT_TOKEN }}
comment-id: ${{ github.event.comment.id }}
reactions: '+1'
- name: Checkout the latest code
uses: actions/checkout@v2
with:
token: ${{ secrets.JF_BOT_TOKEN }}
fetch-depth: 0
- name: Automatic Rebase
uses: cirrus-actions/rebase@1.4
env:
GITHUB_TOKEN: ${{ secrets.JF_BOT_TOKEN }}
check-backport:
name: Check Backport
if: ${{ ( github.event.issue.pull_request && contains(github.event.comment.body, '@jellyfin-bot check backport') ) || github.event.label.name == 'stable backport' || contains(github.event.pull_request.labels.*.name, 'stable backport' ) }}
runs-on: ubuntu-latest
steps:
- name: Notify as seen
uses: peter-evans/create-or-update-comment@v1.4.5
if: ${{ github.event.comment != null }}
with:
token: ${{ secrets.JF_BOT_TOKEN }}
comment-id: ${{ github.event.comment.id }}
reactions: eyes
- name: Checkout the latest code
uses: actions/checkout@v2
with:
token: ${{ secrets.JF_BOT_TOKEN }}
fetch-depth: 0
- name: Notify as running
id: comment_running
uses: peter-evans/create-or-update-comment@v1.4.5
if: ${{ github.event.comment != null }}
with:
token: ${{ secrets.JF_BOT_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Running backport tests...
- name: Perform test backport
id: run_tests
run: |
set +o errexit
git config --global user.name "Jellyfin Bot"
git config --global user.email "team@jellyfin.org"
CURRENT_BRANCH="origin/${GITHUB_HEAD_REF}"
git checkout master
git merge --no-ff ${CURRENT_BRANCH}
MERGE_COMMIT_HASH=$( git log -q -1 | head -1 | awk '{ print $2 }' )
git fetch --all
CURRENT_STABLE=$( git branch -r | grep 'origin/release' | sort -rV | head -1 | awk -F '/' '{ print $NF }' )
stable_branch="Current stable release branch: ${CURRENT_STABLE}"
echo ${stable_branch}
echo ::set-output name=branch::${stable_branch}
git checkout -t origin/${CURRENT_STABLE} -b ${CURRENT_STABLE}
git cherry-pick -sx -m1 ${MERGE_COMMIT_HASH} &>output.txt
retcode=$?
cat output.txt | grep -v 'hint:'
output="$( grep -v 'hint:' output.txt )"
output="${output//'%'/'%25'}"
output="${output//$'\n'/'%0A'}"
output="${output//$'\r'/'%0D'}"
echo ::set-output name=output::$output
exit ${retcode}
- name: Notify with result success
uses: peter-evans/create-or-update-comment@v1.4.5
if: ${{ github.event.comment != null && success() }}
with:
token: ${{ secrets.JF_BOT_TOKEN }}
comment-id: ${{ steps.comment_running.outputs.comment-id }}
body: |
${{ steps.run_tests.outputs.branch }}
Output from `git cherry-pick`:
---
${{ steps.run_tests.outputs.output }}
reactions: hooray
- name: Notify with result failure
uses: peter-evans/create-or-update-comment@v1.4.5
if: ${{ github.event.comment != null && failure() }}
with:
token: ${{ secrets.JF_BOT_TOKEN }}
comment-id: ${{ steps.comment_running.outputs.comment-id }}
body: |
${{ steps.run_tests.outputs.branch }}
Output from `git cherry-pick`:
---
${{ steps.run_tests.outputs.output }}
reactions: confused

1
.gitignore vendored
View File

@@ -268,6 +268,7 @@ doc/
# Deployment artifacts
dist
*.exe
*.dll
# BenchmarkDotNet artifacts
BenchmarkDotNet.Artifacts

View File

@@ -17,6 +17,7 @@
- [bugfixin](https://github.com/bugfixin)
- [chaosinnovator](https://github.com/chaosinnovator)
- [ckcr4lyf](https://github.com/ckcr4lyf)
- [cocool97](https://github.com/cocool97)
- [ConfusedPolarBear](https://github.com/ConfusedPolarBear)
- [crankdoofus](https://github.com/crankdoofus)
- [crobibero](https://github.com/crobibero)
@@ -49,6 +50,7 @@
- [h1nk](https://github.com/h1nk)
- [hawken93](https://github.com/hawken93)
- [HelloWorld017](https://github.com/HelloWorld017)
- [ikomhoog](https://github.com/ikomhoog)
- [jftuga](https://github.com/jftuga)
- [joern-h](https://github.com/joern-h)
- [joshuaboniface](https://github.com/joshuaboniface)
@@ -68,6 +70,7 @@
- [marius-luca-87](https://github.com/marius-luca-87)
- [mark-monteiro](https://github.com/mark-monteiro)
- [Matt07211](https://github.com/Matt07211)
- [Maxr1998](https://github.com/Maxr1998)
- [mcarlton00](https://github.com/mcarlton00)
- [mitchfizz05](https://github.com/mitchfizz05)
- [MrTimscampi](https://github.com/MrTimscampi)
@@ -80,6 +83,7 @@
- [nvllsvm](https://github.com/nvllsvm)
- [nyanmisaka](https://github.com/nyanmisaka)
- [OancaAndrei](https://github.com/OancaAndrei)
- [obradovichv](https://github.com/obradovichv)
- [oddstr13](https://github.com/oddstr13)
- [orryverducci](https://github.com/orryverducci)
- [petermcneil](https://github.com/petermcneil)
@@ -103,10 +107,11 @@
- [shemanaev](https://github.com/shemanaev)
- [skaro13](https://github.com/skaro13)
- [sl1288](https://github.com/sl1288)
- [Smith00101010](https://github.com/Smith00101010)
- [sorinyo2004](https://github.com/sorinyo2004)
- [sparky8251](https://github.com/sparky8251)
- [spookbits](https://github.com/spookbits)
- [ssenart] (https://github.com/ssenart)
- [ssenart](https://github.com/ssenart)
- [stanionascu](https://github.com/stanionascu)
- [stevehayles](https://github.com/stevehayles)
- [SuperSandro2000](https://github.com/SuperSandro2000)
@@ -141,6 +146,8 @@
- [Pusta](https://github.com/pusta)
- [nielsvanvelzen](https://github.com/nielsvanvelzen)
- [skyfrk](https://github.com/skyfrk)
- [ianjazz246](https://github.com/ianjazz246)
- [peterspenler](https://github.com/peterspenler)
# Emby Contributors
@@ -205,3 +212,4 @@
- [Tim Hobbs](https://github.com/timhobbs)
- [SvenVandenbrande](https://github.com/SvenVandenbrande)
- [olsh](https://github.com/olsh)
- [gnuyent](https://github.com/gnuyent)

14
Directory.Build.props Normal file
View File

@@ -0,0 +1,14 @@
<Project>
<!-- Sets defaults for all projects in the repo -->
<PropertyGroup>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)/jellyfin.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
</PropertyGroup>
</Project>

View File

@@ -1,22 +1,14 @@
ARG DOTNET_VERSION=5.0
FROM node:alpine as web-builder
FROM node:lts-alpine as web-builder
ARG JELLYFIN_WEB_VERSION=master
RUN apk add curl git zlib zlib-dev autoconf g++ make libpng-dev gifsicle alpine-sdk automake libtool make gcc musl-dev nasm python \
RUN apk add curl git zlib zlib-dev autoconf g++ make libpng-dev gifsicle alpine-sdk automake libtool make gcc musl-dev nasm python3 \
&& curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \
&& cd jellyfin-web-* \
&& yarn install \
&& npm ci --no-audit --unsafe-perm \
&& mv dist /dist
FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION}-buster-slim as builder
WORKDIR /repo
COPY . .
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
# because of changes in docker and systemd we need to not build in parallel at the moment
# see https://success.docker.com/article/how-to-reserve-resource-temporarily-unavailable-errors-due-to-tasksmax-setting
RUN dotnet publish Jellyfin.Server --disable-parallel --configuration Release --output="/jellyfin" --self-contained --runtime linux-x64 "-p:DebugSymbols=false;DebugType=none"
FROM debian:buster-slim
FROM debian:buster-slim as app
# https://askubuntu.com/questions/972516/debian-frontend-environment-variable
ARG DEBIAN_FRONTEND="noninteractive"
@@ -25,9 +17,6 @@ ARG APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn
# https://github.com/NVIDIA/nvidia-docker/wiki/Installation-(Native-GPU-Support)
ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
COPY --from=builder /jellyfin /jellyfin
COPY --from=web-builder /dist /jellyfin/jellyfin-web
# https://github.com/intel/compute-runtime/releases
ARG GMMLIB_VERSION=20.3.2
ARG IGC_VERSION=1.0.5435
@@ -73,6 +62,19 @@ ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION} as builder
WORKDIR /repo
COPY . .
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
# because of changes in docker and systemd we need to not build in parallel at the moment
# see https://success.docker.com/article/how-to-reserve-resource-temporarily-unavailable-errors-due-to-tasksmax-setting
RUN dotnet publish Jellyfin.Server --disable-parallel --configuration Release --output="/jellyfin" --self-contained --runtime linux-x64 "-p:DebugSymbols=false;DebugType=none"
FROM app
COPY --from=builder /jellyfin /jellyfin
COPY --from=web-builder /dist /jellyfin/jellyfin-web
EXPOSE 8096
VOLUME /cache /config /media
ENTRYPOINT ["./jellyfin/jellyfin", \

View File

@@ -5,27 +5,16 @@
ARG DOTNET_VERSION=5.0
FROM node:alpine as web-builder
FROM node:lts-alpine as web-builder
ARG JELLYFIN_WEB_VERSION=master
RUN apk add curl git zlib zlib-dev autoconf g++ make libpng-dev gifsicle alpine-sdk automake libtool make gcc musl-dev nasm python \
RUN apk add curl git zlib zlib-dev autoconf g++ make libpng-dev gifsicle alpine-sdk automake libtool make gcc musl-dev nasm python3 \
&& curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \
&& cd jellyfin-web-* \
&& yarn install \
&& npm ci --no-audit --unsafe-perm \
&& mv dist /dist
FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION} as builder
WORKDIR /repo
COPY . .
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
# Discard objs - may cause failures if exists
RUN find . -type d -name obj | xargs -r rm -r
# Build
RUN dotnet publish Jellyfin.Server --configuration Release --output="/jellyfin" --self-contained --runtime linux-arm "-p:DebugSymbols=false;DebugType=none"
FROM multiarch/qemu-user-static:x86_64-arm as qemu
FROM arm32v7/debian:buster-slim
FROM arm32v7/debian:buster-slim as app
# https://askubuntu.com/questions/972516/debian-frontend-environment-variable
ARG DEBIAN_FRONTEND="noninteractive"
@@ -61,14 +50,25 @@ RUN apt-get update \
&& chmod 777 /cache /config /media \
&& sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
COPY --from=builder /jellyfin /jellyfin
COPY --from=web-builder /dist /jellyfin/jellyfin-web
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION} as builder
WORKDIR /repo
COPY . .
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
# Discard objs - may cause failures if exists
RUN find . -type d -name obj | xargs -r rm -r
# Build
RUN dotnet publish Jellyfin.Server --configuration Release --output="/jellyfin" --self-contained --runtime linux-arm "-p:DebugSymbols=false;DebugType=none"
FROM app
COPY --from=builder /jellyfin /jellyfin
COPY --from=web-builder /dist /jellyfin/jellyfin-web
EXPOSE 8096
VOLUME /cache /config /media
ENTRYPOINT ["./jellyfin/jellyfin", \

View File

@@ -5,26 +5,16 @@
ARG DOTNET_VERSION=5.0
FROM node:alpine as web-builder
FROM node:lts-alpine as web-builder
ARG JELLYFIN_WEB_VERSION=master
RUN apk add curl git zlib zlib-dev autoconf g++ make libpng-dev gifsicle alpine-sdk automake libtool make gcc musl-dev nasm python \
RUN apk add curl git zlib zlib-dev autoconf g++ make libpng-dev gifsicle alpine-sdk automake libtool make gcc musl-dev nasm python3 \
&& curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \
&& cd jellyfin-web-* \
&& yarn install \
&& npm ci --no-audit --unsafe-perm \
&& mv dist /dist
FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION} as builder
WORKDIR /repo
COPY . .
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
# Discard objs - may cause failures if exists
RUN find . -type d -name obj | xargs -r rm -r
# Build
RUN dotnet publish Jellyfin.Server --configuration Release --output="/jellyfin" --self-contained --runtime linux-arm64 "-p:DebugSymbols=false;DebugType=none"
FROM multiarch/qemu-user-static:x86_64-aarch64 as qemu
FROM arm64v8/debian:buster-slim
FROM arm64v8/debian:buster-slim as app
# https://askubuntu.com/questions/972516/debian-frontend-environment-variable
ARG DEBIAN_FRONTEND="noninteractive"
@@ -50,14 +40,25 @@ RUN apt-get update && apt-get install --no-install-recommends --no-install-sugge
&& chmod 777 /cache /config /media \
&& sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
COPY --from=builder /jellyfin /jellyfin
COPY --from=web-builder /dist /jellyfin/jellyfin-web
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION} as builder
WORKDIR /repo
COPY . .
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
# Discard objs - may cause failures if exists
RUN find . -type d -name obj | xargs -r rm -r
# Build
RUN dotnet publish Jellyfin.Server --configuration Release --output="/jellyfin" --self-contained --runtime linux-arm64 "-p:DebugSymbols=false;DebugType=none"
FROM app
COPY --from=builder /jellyfin /jellyfin
COPY --from=web-builder /dist /jellyfin/jellyfin-web
EXPOSE 8096
VOLUME /cache /config /media
ENTRYPOINT ["./jellyfin/jellyfin", \

View File

@@ -13,7 +13,8 @@
<TargetFramework>net5.0</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AnalysisMode>AllDisabledByDefault</AnalysisMode>
<Nullable>disable</Nullable>
</PropertyGroup>
</Project>

View File

@@ -72,7 +72,7 @@ namespace Emby.Dlna.Configuration
/// <summary>
/// Gets or sets the default user account that the dlna server uses.
/// </summary>
public string DefaultUserId { get; set; }
public string? DefaultUserId { get; set; }
/// <summary>
/// Gets or sets a value indicating whether playTo device profiles should be created.

View File

@@ -1,4 +1,3 @@
#nullable enable
#pragma warning disable CS1591
using Emby.Dlna.Configuration;

View File

@@ -31,7 +31,7 @@ namespace Emby.Dlna.ConnectionManager
}
/// <inheritdoc />
protected override void WriteResult(string methodName, IDictionary<string, string> methodParams, XmlWriter xmlWriter)
protected override void WriteResult(string methodName, IReadOnlyDictionary<string, string> methodParams, XmlWriter xmlWriter)
{
if (string.Equals(methodName, "GetProtocolInfo", StringComparison.OrdinalIgnoreCase))
{

View File

@@ -138,7 +138,7 @@ namespace Emby.Dlna.ContentDirectory
/// </summary>
/// <param name="profile">The <see cref="DeviceProfile"/>.</param>
/// <returns>The <see cref="User"/>.</returns>
private User GetUser(DeviceProfile profile)
private User? GetUser(DeviceProfile profile)
{
if (!string.IsNullOrEmpty(profile.UserId))
{

View File

@@ -1,5 +1,6 @@
#nullable disable
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
@@ -7,7 +8,6 @@ using System.Linq;
using System.Text;
using System.Threading;
using System.Xml;
using Emby.Dlna.Configuration;
using Emby.Dlna.Didl;
using Emby.Dlna.Service;
using Jellyfin.Data.Entities;
@@ -121,7 +121,7 @@ namespace Emby.Dlna.ContentDirectory
}
/// <inheritdoc />
protected override void WriteResult(string methodName, IDictionary<string, string> methodParams, XmlWriter xmlWriter)
protected override void WriteResult(string methodName, IReadOnlyDictionary<string, string> methodParams, XmlWriter xmlWriter)
{
if (xmlWriter == null)
{
@@ -201,8 +201,8 @@ namespace Emby.Dlna.ContentDirectory
/// <summary>
/// Adds a "XSetBookmark" element to the xml document.
/// </summary>
/// <param name="sparams">The <see cref="IDictionary"/>.</param>
private void HandleXSetBookmark(IDictionary<string, string> sparams)
/// <param name="sparams">The method parameters.</param>
private void HandleXSetBookmark(IReadOnlyDictionary<string, string> sparams)
{
var id = sparams["ObjectID"];
@@ -288,52 +288,28 @@ namespace Emby.Dlna.ContentDirectory
/// <returns>The xml feature list.</returns>
private static string WriteFeatureListXml()
{
// TODO: clean this up
var builder = new StringBuilder();
builder.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
builder.Append("<Features xmlns=\"urn:schemas-upnp-org:av:avs\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"urn:schemas-upnp-org:av:avs http://www.upnp.org/schemas/av/avs.xsd\">");
builder.Append("<Feature name=\"samsung.com_BASICVIEW\" version=\"1\">");
builder.Append("<container id=\"I\" type=\"object.item.imageItem\"/>");
builder.Append("<container id=\"A\" type=\"object.item.audioItem\"/>");
builder.Append("<container id=\"V\" type=\"object.item.videoItem\"/>");
builder.Append("</Feature>");
builder.Append("</Features>");
return builder.ToString();
}
/// <summary>
/// Returns the value in the key of the dictionary, or defaultValue if it doesn't exist.
/// </summary>
/// <param name="sparams">The <see cref="IDictionary"/>.</param>
/// <param name="key">The key.</param>
/// <param name="defaultValue">The defaultValue.</param>
/// <returns>The <see cref="string"/>.</returns>
public static string GetValueOrDefault(IDictionary<string, string> sparams, string key, string defaultValue)
{
if (sparams != null && sparams.TryGetValue(key, out string val))
{
return val;
}
return defaultValue;
return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
+ "<Features xmlns=\"urn:schemas-upnp-org:av:avs\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"urn:schemas-upnp-org:av:avs http://www.upnp.org/schemas/av/avs.xsd\">"
+ "<Feature name=\"samsung.com_BASICVIEW\" version=\"1\">"
+ "<container id=\"I\" type=\"object.item.imageItem\"/>"
+ "<container id=\"A\" type=\"object.item.audioItem\"/>"
+ "<container id=\"V\" type=\"object.item.videoItem\"/>"
+ "</Feature>"
+ "</Features>";
}
/// <summary>
/// Builds the "Browse" xml response.
/// </summary>
/// <param name="xmlWriter">The <see cref="XmlWriter"/>.</param>
/// <param name="sparams">The <see cref="IDictionary"/>.</param>
/// <param name="sparams">The method parameters.</param>
/// <param name="deviceId">The device Id to use.</param>
private void HandleBrowse(XmlWriter xmlWriter, IDictionary<string, string> sparams, string deviceId)
private void HandleBrowse(XmlWriter xmlWriter, IReadOnlyDictionary<string, string> sparams, string deviceId)
{
var id = sparams["ObjectID"];
var flag = sparams["BrowseFlag"];
var filter = new Filter(GetValueOrDefault(sparams, "Filter", "*"));
var sortCriteria = new SortCriteria(GetValueOrDefault(sparams, "SortCriteria", string.Empty));
var filter = new Filter(sparams.GetValueOrDefault("Filter", "*"));
var sortCriteria = new SortCriteria(sparams.GetValueOrDefault("SortCriteria", string.Empty));
var provided = 0;
@@ -435,9 +411,9 @@ namespace Emby.Dlna.ContentDirectory
/// Builds the response to the "X_BrowseByLetter request.
/// </summary>
/// <param name="xmlWriter">The <see cref="XmlWriter"/>.</param>
/// <param name="sparams">The <see cref="IDictionary"/>.</param>
/// <param name="sparams">The method parameters.</param>
/// <param name="deviceId">The device id.</param>
private void HandleXBrowseByLetter(XmlWriter xmlWriter, IDictionary<string, string> sparams, string deviceId)
private void HandleXBrowseByLetter(XmlWriter xmlWriter, IReadOnlyDictionary<string, string> sparams, string deviceId)
{
// TODO: Implement this method
HandleSearch(xmlWriter, sparams, deviceId);
@@ -447,13 +423,13 @@ namespace Emby.Dlna.ContentDirectory
/// Builds a response to the "Search" request.
/// </summary>
/// <param name="xmlWriter">The xmlWriter<see cref="XmlWriter"/>.</param>
/// <param name="sparams">The sparams<see cref="IDictionary"/>.</param>
/// <param name="sparams">The method parameters.</param>
/// <param name="deviceId">The deviceId<see cref="string"/>.</param>
private void HandleSearch(XmlWriter xmlWriter, IDictionary<string, string> sparams, string deviceId)
private void HandleSearch(XmlWriter xmlWriter, IReadOnlyDictionary<string, string> sparams, string deviceId)
{
var searchCriteria = new SearchCriteria(GetValueOrDefault(sparams, "SearchCriteria", string.Empty));
var sortCriteria = new SortCriteria(GetValueOrDefault(sparams, "SortCriteria", string.Empty));
var filter = new Filter(GetValueOrDefault(sparams, "Filter", "*"));
var searchCriteria = new SearchCriteria(sparams.GetValueOrDefault("SearchCriteria", string.Empty));
var sortCriteria = new SortCriteria(sparams.GetValueOrDefault("SortCriteria", string.Empty));
var filter = new Filter(sparams.GetValueOrDefault("Filter", "*"));
// sort example: dc:title, dc:date

View File

@@ -1,5 +1,4 @@
#pragma warning disable CS1591
#pragma warning disable SA1602
namespace Emby.Dlna.ContentDirectory
{

View File

@@ -1,3 +1,5 @@
#nullable disable
#pragma warning disable CS1591
using System.IO;

View File

@@ -6,9 +6,11 @@ namespace Emby.Dlna
{
public class ControlResponse
{
public ControlResponse()
public ControlResponse(string xml, bool isSuccessful)
{
Headers = new Dictionary<string, string>();
Xml = xml;
IsSuccessful = isSuccessful;
}
public IDictionary<string, string> Headers { get; }

View File

@@ -1,3 +1,5 @@
#nullable disable
#pragma warning disable CS1591
using System;
@@ -96,6 +98,7 @@ namespace Emby.Dlna.Didl
using (StringWriter builder = new StringWriterWithEncoding(Encoding.UTF8))
{
// If this using are changed to single lines, then write.Flush needs to be appended before the return.
using (var writer = XmlWriter.Create(builder, settings))
{
// writer.WriteStartDocument();
@@ -207,7 +210,8 @@ namespace Emby.Dlna.Didl
var targetWidth = streamInfo.TargetWidth;
var targetHeight = streamInfo.TargetHeight;
var contentFeatureList = new ContentFeatureBuilder(_profile).BuildVideoHeader(
var contentFeatureList = ContentFeatureBuilder.BuildVideoHeader(
_profile,
streamInfo.Container,
streamInfo.TargetVideoCodec.FirstOrDefault(),
streamInfo.TargetAudioCodec.FirstOrDefault(),
@@ -598,7 +602,8 @@ namespace Emby.Dlna.Didl
? MimeTypes.GetMimeType(filename)
: mediaProfile.MimeType;
var contentFeatures = new ContentFeatureBuilder(_profile).BuildAudioHeader(
var contentFeatures = ContentFeatureBuilder.BuildAudioHeader(
_profile,
streamInfo.Container,
streamInfo.TargetAudioCodec.FirstOrDefault(),
targetAudioBitrate,
@@ -973,15 +978,28 @@ namespace Emby.Dlna.Didl
return;
}
var albumartUrlInfo = GetImageUrl(imageInfo, _profile.MaxAlbumArtWidth, _profile.MaxAlbumArtHeight, "jpg");
// TODO: Remove these default values
var albumArtUrlInfo = GetImageUrl(
imageInfo,
_profile.MaxAlbumArtWidth ?? 10000,
_profile.MaxAlbumArtHeight ?? 10000,
"jpg");
writer.WriteStartElement("upnp", "albumArtURI", NsUpnp);
writer.WriteAttributeString("dlna", "profileID", NsDlna, _profile.AlbumArtPn);
writer.WriteString(albumartUrlInfo.url);
if (!string.IsNullOrEmpty(_profile.AlbumArtPn))
{
writer.WriteAttributeString("dlna", "profileID", NsDlna, _profile.AlbumArtPn);
}
writer.WriteString(albumArtUrlInfo.url);
writer.WriteFullEndElement();
// TOOD: Remove these default values
var iconUrlInfo = GetImageUrl(imageInfo, _profile.MaxIconWidth ?? 48, _profile.MaxIconHeight ?? 48, "jpg");
// TODO: Remove these default values
var iconUrlInfo = GetImageUrl(
imageInfo,
_profile.MaxIconWidth ?? 48,
_profile.MaxIconHeight ?? 48,
"jpg");
writer.WriteElementString("upnp", "icon", NsUpnp, iconUrlInfo.url);
if (!_profile.EnableAlbumArtInDidl)
@@ -1032,8 +1050,7 @@ namespace Emby.Dlna.Didl
var width = albumartUrlInfo.width ?? maxWidth;
var height = albumartUrlInfo.height ?? maxHeight;
var contentFeatures = new ContentFeatureBuilder(_profile)
.BuildImageHeader(format, width, height, imageInfo.IsDirectStream, org_Pn);
var contentFeatures = ContentFeatureBuilder.BuildImageHeader(_profile, format, width, height, imageInfo.IsDirectStream, org_Pn);
writer.WriteAttributeString(
"protocolInfo",
@@ -1205,8 +1222,7 @@ namespace Emby.Dlna.Didl
if (width.HasValue && height.HasValue)
{
var newSize = DrawingUtils.Resize(
new ImageDimensions(width.Value, height.Value), 0, 0, maxWidth, maxHeight);
var newSize = DrawingUtils.Resize(new ImageDimensions(width.Value, height.Value), 0, 0, maxWidth, maxHeight);
width = newSize.Width;
height = newSize.Height;

View File

@@ -9,7 +9,7 @@ namespace Emby.Dlna.Didl
{
public class StringWriterWithEncoding : StringWriter
{
private readonly Encoding _encoding;
private readonly Encoding? _encoding;
public StringWriterWithEncoding()
{

View File

@@ -1,4 +1,3 @@
#nullable enable
#pragma warning disable CS1591
using System.Collections.Generic;

View File

@@ -1,5 +1,4 @@
#pragma warning disable CS1591
using System;
using System.Collections.Generic;
using System.Globalization;
@@ -7,10 +6,12 @@ using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Text.Json;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Emby.Dlna.Profiles;
using Emby.Dlna.Server;
using Jellyfin.Extensions.Json;
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Extensions;
using MediaBrowser.Controller;
@@ -32,9 +33,9 @@ namespace Emby.Dlna
private readonly IXmlSerializer _xmlSerializer;
private readonly IFileSystem _fileSystem;
private readonly ILogger<DlnaManager> _logger;
private readonly IJsonSerializer _jsonSerializer;
private readonly IServerApplicationHost _appHost;
private static readonly Assembly _assembly = typeof(DlnaManager).Assembly;
private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.Options;
private readonly Dictionary<string, Tuple<InternalProfileInfo, DeviceProfile>> _profiles = new Dictionary<string, Tuple<InternalProfileInfo, DeviceProfile>>(StringComparer.Ordinal);
@@ -43,14 +44,12 @@ namespace Emby.Dlna
IFileSystem fileSystem,
IApplicationPaths appPaths,
ILoggerFactory loggerFactory,
IJsonSerializer jsonSerializer,
IServerApplicationHost appHost)
{
_xmlSerializer = xmlSerializer;
_fileSystem = fileSystem;
_appPaths = appPaths;
_logger = loggerFactory.CreateLogger<DlnaManager>();
_jsonSerializer = jsonSerializer;
_appHost = appHost;
}
@@ -94,12 +93,14 @@ namespace Emby.Dlna
}
}
/// <inheritdoc />
public DeviceProfile GetDefaultProfile()
{
return new DefaultProfile();
}
public DeviceProfile GetProfile(DeviceIdentification deviceInfo)
/// <inheritdoc />
public DeviceProfile? GetProfile(DeviceIdentification deviceInfo)
{
if (deviceInfo == null)
{
@@ -109,13 +110,13 @@ namespace Emby.Dlna
var profile = GetProfiles()
.FirstOrDefault(i => i.Identification != null && IsMatch(deviceInfo, i.Identification));
if (profile != null)
if (profile == null)
{
_logger.LogDebug("Found matching device profile: {0}", profile.Name);
LogUnmatchedProfile(deviceInfo);
}
else
{
LogUnmatchedProfile(deviceInfo);
_logger.LogDebug("Found matching device profile: {ProfileName}", profile.Name);
}
return profile;
@@ -126,92 +127,57 @@ namespace Emby.Dlna
var builder = new StringBuilder();
builder.AppendLine("No matching device profile found. The default will need to be used.");
builder.Append("FriendlyName:").AppendLine(profile.FriendlyName);
builder.Append("Manufacturer:").AppendLine(profile.Manufacturer);
builder.Append("ManufacturerUrl:").AppendLine(profile.ManufacturerUrl);
builder.Append("ModelDescription:").AppendLine(profile.ModelDescription);
builder.Append("ModelName:").AppendLine(profile.ModelName);
builder.Append("ModelNumber:").AppendLine(profile.ModelNumber);
builder.Append("ModelUrl:").AppendLine(profile.ModelUrl);
builder.Append("SerialNumber:").AppendLine(profile.SerialNumber);
builder.Append("FriendlyName: ").AppendLine(profile.FriendlyName);
builder.Append("Manufacturer: ").AppendLine(profile.Manufacturer);
builder.Append("ManufacturerUrl: ").AppendLine(profile.ManufacturerUrl);
builder.Append("ModelDescription: ").AppendLine(profile.ModelDescription);
builder.Append("ModelName: ").AppendLine(profile.ModelName);
builder.Append("ModelNumber: ").AppendLine(profile.ModelNumber);
builder.Append("ModelUrl: ").AppendLine(profile.ModelUrl);
builder.Append("SerialNumber: ").AppendLine(profile.SerialNumber);
_logger.LogInformation(builder.ToString());
}
private bool IsMatch(DeviceIdentification deviceInfo, DeviceIdentification profileInfo)
/// <summary>
/// Attempts to match a device with a profile.
/// Rules:
/// - If the profile field has no value, the field matches irregardless of its contents.
/// - the profile field can be an exact match, or a reg exp.
/// </summary>
/// <param name="deviceInfo">The <see cref="DeviceIdentification"/> of the device.</param>
/// <param name="profileInfo">The <see cref="DeviceIdentification"/> of the profile.</param>
/// <returns><b>True</b> if they match.</returns>
public bool IsMatch(DeviceIdentification deviceInfo, DeviceIdentification profileInfo)
{
if (!string.IsNullOrEmpty(profileInfo.FriendlyName))
{
if (deviceInfo.FriendlyName == null || !IsRegexOrSubstringMatch(deviceInfo.FriendlyName, profileInfo.FriendlyName))
{
return false;
}
}
if (!string.IsNullOrEmpty(profileInfo.Manufacturer))
{
if (deviceInfo.Manufacturer == null || !IsRegexOrSubstringMatch(deviceInfo.Manufacturer, profileInfo.Manufacturer))
{
return false;
}
}
if (!string.IsNullOrEmpty(profileInfo.ManufacturerUrl))
{
if (deviceInfo.ManufacturerUrl == null || !IsRegexOrSubstringMatch(deviceInfo.ManufacturerUrl, profileInfo.ManufacturerUrl))
{
return false;
}
}
if (!string.IsNullOrEmpty(profileInfo.ModelDescription))
{
if (deviceInfo.ModelDescription == null || !IsRegexOrSubstringMatch(deviceInfo.ModelDescription, profileInfo.ModelDescription))
{
return false;
}
}
if (!string.IsNullOrEmpty(profileInfo.ModelName))
{
if (deviceInfo.ModelName == null || !IsRegexOrSubstringMatch(deviceInfo.ModelName, profileInfo.ModelName))
{
return false;
}
}
if (!string.IsNullOrEmpty(profileInfo.ModelNumber))
{
if (deviceInfo.ModelNumber == null || !IsRegexOrSubstringMatch(deviceInfo.ModelNumber, profileInfo.ModelNumber))
{
return false;
}
}
if (!string.IsNullOrEmpty(profileInfo.ModelUrl))
{
if (deviceInfo.ModelUrl == null || !IsRegexOrSubstringMatch(deviceInfo.ModelUrl, profileInfo.ModelUrl))
{
return false;
}
}
if (!string.IsNullOrEmpty(profileInfo.SerialNumber))
{
if (deviceInfo.SerialNumber == null || !IsRegexOrSubstringMatch(deviceInfo.SerialNumber, profileInfo.SerialNumber))
{
return false;
}
}
return true;
return IsRegexOrSubstringMatch(deviceInfo.FriendlyName, profileInfo.FriendlyName)
&& IsRegexOrSubstringMatch(deviceInfo.Manufacturer, profileInfo.Manufacturer)
&& IsRegexOrSubstringMatch(deviceInfo.ManufacturerUrl, profileInfo.ManufacturerUrl)
&& IsRegexOrSubstringMatch(deviceInfo.ModelDescription, profileInfo.ModelDescription)
&& IsRegexOrSubstringMatch(deviceInfo.ModelName, profileInfo.ModelName)
&& IsRegexOrSubstringMatch(deviceInfo.ModelNumber, profileInfo.ModelNumber)
&& IsRegexOrSubstringMatch(deviceInfo.ModelUrl, profileInfo.ModelUrl)
&& IsRegexOrSubstringMatch(deviceInfo.SerialNumber, profileInfo.SerialNumber);
}
private bool IsRegexOrSubstringMatch(string input, string pattern)
{
if (string.IsNullOrEmpty(pattern))
{
// In profile identification: An empty pattern matches anything.
return true;
}
if (string.IsNullOrEmpty(input))
{
// The profile contains a value, and the device doesn't.
return false;
}
try
{
return input.Contains(pattern, StringComparison.OrdinalIgnoreCase) || Regex.IsMatch(input, pattern, RegexOptions.IgnoreCase | RegexOptions.CultureInvariant);
return input.Equals(pattern, StringComparison.OrdinalIgnoreCase)
|| Regex.IsMatch(input, pattern, RegexOptions.IgnoreCase | RegexOptions.CultureInvariant);
}
catch (ArgumentException ex)
{
@@ -220,7 +186,8 @@ namespace Emby.Dlna
}
}
public DeviceProfile GetProfile(IHeaderDictionary headers)
/// <inheritdoc />
public DeviceProfile? GetProfile(IHeaderDictionary headers)
{
if (headers == null)
{
@@ -228,15 +195,13 @@ namespace Emby.Dlna
}
var profile = GetProfiles().FirstOrDefault(i => i.Identification != null && IsMatch(headers, i.Identification));
if (profile != null)
if (profile == null)
{
_logger.LogDebug("Found matching device profile: {0}", profile.Name);
_logger.LogDebug("No matching device profile found. {@Headers}", headers);
}
else
{
var headerString = string.Join(", ", headers.Select(i => string.Format(CultureInfo.InvariantCulture, "{0}={1}", i.Key, i.Value)));
_logger.LogDebug("No matching device profile found. {0}", headerString);
_logger.LogDebug("Found matching device profile: {0}", profile.Name);
}
return profile;
@@ -286,19 +251,19 @@ namespace Emby.Dlna
return xmlFies
.Select(i => ParseProfileFile(i, type))
.Where(i => i != null)
.ToList();
.ToList()!; // We just filtered out all the nulls
}
catch (IOException)
{
return new List<DeviceProfile>();
return Array.Empty<DeviceProfile>();
}
}
private DeviceProfile ParseProfileFile(string path, DeviceProfileType type)
private DeviceProfile? ParseProfileFile(string path, DeviceProfileType type)
{
lock (_profiles)
{
if (_profiles.TryGetValue(path, out Tuple<InternalProfileInfo, DeviceProfile> profileTuple))
if (_profiles.TryGetValue(path, out Tuple<InternalProfileInfo, DeviceProfile>? profileTuple))
{
return profileTuple.Item2;
}
@@ -326,14 +291,20 @@ namespace Emby.Dlna
}
}
public DeviceProfile GetProfile(string id)
/// <inheritdoc />
public DeviceProfile? GetProfile(string id)
{
if (string.IsNullOrEmpty(id))
{
throw new ArgumentNullException(nameof(id));
}
var info = GetProfileInfosInternal().First(i => string.Equals(i.Info.Id, id, StringComparison.OrdinalIgnoreCase));
var info = GetProfileInfosInternal().FirstOrDefault(i => string.Equals(i.Info.Id, id, StringComparison.OrdinalIgnoreCase));
if (info == null)
{
return null;
}
return ParseProfileFile(info.Path, info.Info.Type);
}
@@ -350,6 +321,7 @@ namespace Emby.Dlna
}
}
/// <inheritdoc />
public IEnumerable<DeviceProfileInfo> GetProfileInfos()
{
return GetProfileInfosInternal().Select(i => i.Info);
@@ -357,17 +329,14 @@ namespace Emby.Dlna
private InternalProfileInfo GetInternalProfileInfo(FileSystemMetadata file, DeviceProfileType type)
{
return new InternalProfileInfo
{
Path = file.FullName,
Info = new DeviceProfileInfo
return new InternalProfileInfo(
new DeviceProfileInfo
{
Id = file.FullName.ToLowerInvariant().GetMD5().ToString("N", CultureInfo.InvariantCulture),
Name = _fileSystem.GetFileNameWithoutExtension(file),
Type = type
}
};
},
file.FullName);
}
private async Task ExtractSystemProfilesAsync()
@@ -387,7 +356,8 @@ namespace Emby.Dlna
systemProfilesPath,
Path.GetFileName(name.AsSpan()).Slice(namespaceName.Length));
using (var stream = _assembly.GetManifestResourceStream(name))
// The stream should exist as we just got its name from GetManifestResourceNames
using (var stream = _assembly.GetManifestResourceStream(name)!)
{
var fileInfo = _fileSystem.GetFileInfo(path);
@@ -395,7 +365,8 @@ namespace Emby.Dlna
{
Directory.CreateDirectory(systemProfilesPath);
using (var fileStream = new FileStream(path, FileMode.Create, FileAccess.Write, FileShare.Read))
// use FileShare.None as this bypasses dotnet bug dotnet/runtime#42790 .
using (var fileStream = new FileStream(path, FileMode.Create, FileAccess.Write, FileShare.None))
{
await stream.CopyToAsync(fileStream).ConfigureAwait(false);
}
@@ -407,6 +378,7 @@ namespace Emby.Dlna
Directory.CreateDirectory(UserProfilesPath);
}
/// <inheritdoc />
public void DeleteProfile(string id)
{
var info = GetProfileInfosInternal().First(i => string.Equals(id, i.Info.Id, StringComparison.OrdinalIgnoreCase));
@@ -424,6 +396,7 @@ namespace Emby.Dlna
}
}
/// <inheritdoc />
public void CreateProfile(DeviceProfile profile)
{
profile = ReserializeProfile(profile);
@@ -439,6 +412,7 @@ namespace Emby.Dlna
SaveProfile(profile, path, DeviceProfileType.User);
}
/// <inheritdoc />
public void UpdateProfile(DeviceProfile profile)
{
profile = ReserializeProfile(profile);
@@ -495,11 +469,13 @@ namespace Emby.Dlna
return profile;
}
var json = _jsonSerializer.SerializeToString(profile);
var json = JsonSerializer.Serialize(profile, _jsonOptions);
return _jsonSerializer.DeserializeFromString<DeviceProfile>(json);
// Output can't be null if the input isn't null
return JsonSerializer.Deserialize<DeviceProfile>(json, _jsonOptions)!;
}
/// <inheritdoc />
public string GetServerDescriptionXml(IHeaderDictionary headers, string serverUuId, string serverAddress)
{
var profile = GetDefaultProfile();
@@ -509,6 +485,7 @@ namespace Emby.Dlna
return new DescriptionXmlBuilder(profile, serverUuId, serverAddress, _appHost.FriendlyName, serverId).GetXml();
}
/// <inheritdoc />
public ImageStream GetIcon(string filename)
{
var format = filename.EndsWith(".png", StringComparison.OrdinalIgnoreCase)
@@ -526,9 +503,15 @@ namespace Emby.Dlna
private class InternalProfileInfo
{
internal DeviceProfileInfo Info { get; set; }
internal InternalProfileInfo(DeviceProfileInfo info, string path)
{
Info = info;
Path = path;
}
internal string Path { get; set; }
internal DeviceProfileInfo Info { get; }
internal string Path { get; }
}
}
@@ -553,7 +536,7 @@ namespace Emby.Dlna
private void DumpProfiles()
{
DeviceProfile[] list = new []
DeviceProfile[] list = new[]
{
new SamsungSmartTvProfile(),
new XboxOneProfile(),

View File

@@ -20,21 +20,16 @@
<TargetFramework>net5.0</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AnalysisMode>AllDisabledByDefault</AnalysisMode>
</PropertyGroup>
<!-- Code Analyzers-->
<ItemGroup Condition=" '$(Configuration)' == 'Debug' ">
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.8" PrivateAssets="All" />
<PackageReference Include="SerilogAnalyzer" Version="0.15.0" PrivateAssets="All" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" PrivateAssets="All" />
<PackageReference Include="SmartAnalyzers.MultithreadingAnalyzer" Version="1.1.31" PrivateAssets="All" />
</ItemGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<CodeAnalysisRuleSet>../jellyfin.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="Images\logo120.jpg" />
<EmbeddedResource Include="Images\logo120.png" />
@@ -78,9 +73,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.2.2" />
<PackageReference Include="Microsoft.AspNetCore.WebUtilities" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="3.1.6" />
<PackageReference Include="Microsoft.Extensions.Http" Version="5.0.0" />
</ItemGroup>
</Project>

View File

@@ -6,8 +6,10 @@ namespace Emby.Dlna
{
public class EventSubscriptionResponse
{
public EventSubscriptionResponse()
public EventSubscriptionResponse(string content, string contentType)
{
Content = content;
ContentType = contentType;
Headers = new Dictionary<string, string>();
}

View File

@@ -1,3 +1,5 @@
#nullable disable
#pragma warning disable CS1591
using System;
@@ -49,11 +51,7 @@ namespace Emby.Dlna.Eventing
return GetEventSubscriptionResponse(subscriptionId, requestedTimeoutString, timeoutSeconds);
}
return new EventSubscriptionResponse
{
Content = string.Empty,
ContentType = "text/plain"
};
return new EventSubscriptionResponse(string.Empty, "text/plain");
}
public EventSubscriptionResponse CreateEventSubscription(string notificationType, string requestedTimeoutString, string callbackUrl)
@@ -101,20 +99,12 @@ namespace Emby.Dlna.Eventing
_subscriptions.TryRemove(subscriptionId, out _);
return new EventSubscriptionResponse
{
Content = string.Empty,
ContentType = "text/plain"
};
return new EventSubscriptionResponse(string.Empty, "text/plain");
}
private EventSubscriptionResponse GetEventSubscriptionResponse(string subscriptionId, string requestedTimeoutString, int timeoutSeconds)
{
var response = new EventSubscriptionResponse
{
Content = string.Empty,
ContentType = "text/plain"
};
var response = new EventSubscriptionResponse(string.Empty, "text/plain");
response.Headers["SID"] = subscriptionId;
response.Headers["TIMEOUT"] = string.IsNullOrEmpty(requestedTimeoutString) ? ("SECOND-" + timeoutSeconds.ToString(_usCulture)) : requestedTimeoutString;

View File

@@ -1,3 +1,5 @@
#nullable disable
#pragma warning disable CS1591
using System;

View File

@@ -1,3 +1,5 @@
#nullable disable
#pragma warning disable CS1591
using System;
@@ -5,10 +7,10 @@ using System.Globalization;
using System.Linq;
using System.Net.Http;
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
using Emby.Dlna.PlayTo;
using Emby.Dlna.Ssdp;
using Jellyfin.Networking.Configuration;
using Jellyfin.Networking.Manager;
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Extensions;
@@ -25,11 +27,9 @@ using MediaBrowser.Controller.TV;
using MediaBrowser.Model.Dlna;
using MediaBrowser.Model.Globalization;
using MediaBrowser.Model.Net;
using MediaBrowser.Model.System;
using Microsoft.Extensions.Logging;
using Rssdp;
using Rssdp.Infrastructure;
using OperatingSystem = MediaBrowser.Common.System.OperatingSystem;
namespace Emby.Dlna.Main
{
@@ -52,6 +52,8 @@ namespace Emby.Dlna.Main
private readonly ISocketFactory _socketFactory;
private readonly INetworkManager _networkManager;
private readonly object _syncLock = new object();
private readonly NetworkConfiguration _netConfig;
private readonly bool _disabled;
private PlayToManager _manager;
private SsdpDevicePublisher _publisher;
@@ -122,10 +124,23 @@ namespace Emby.Dlna.Main
httpClientFactory,
config);
Current = this;
_netConfig = config.GetConfiguration<NetworkConfiguration>("network");
_disabled = appHost.ListenWithHttps && _netConfig.RequireHttps;
if (_disabled && _config.GetDlnaConfiguration().EnableServer)
{
_logger.LogError("The DLNA specification does not support HTTPS.");
}
}
public static DlnaEntryPoint Current { get; private set; }
/// <summary>
/// Gets a value indicating whether the dlna server is enabled.
/// </summary>
public static bool Enabled { get; private set; }
public IContentDirectory ContentDirectory { get; private set; }
public IConnectionManager ConnectionManager { get; private set; }
@@ -136,6 +151,12 @@ namespace Emby.Dlna.Main
{
await ((DlnaManager)_dlnaManager).InitProfilesAsync().ConfigureAwait(false);
if (_disabled)
{
// No use starting as dlna won't work, as we're running purely on HTTPS.
return;
}
ReloadComponents();
_config.NamedConfigurationUpdated += OnNamedConfigurationUpdated;
@@ -152,6 +173,7 @@ namespace Emby.Dlna.Main
private void ReloadComponents()
{
var options = _config.GetDlnaConfiguration();
Enabled = options.EnableServer;
StartSsdpHandler();
@@ -180,8 +202,8 @@ namespace Emby.Dlna.Main
{
if (_communicationsServer == null)
{
var enableMultiSocketBinding = OperatingSystem.Id == OperatingSystemId.Windows ||
OperatingSystem.Id == OperatingSystemId.Linux;
var enableMultiSocketBinding = OperatingSystem.IsWindows() ||
OperatingSystem.IsLinux();
_communicationsServer = new SsdpCommunicationsServer(_socketFactory, _networkManager, _logger, enableMultiSocketBinding)
{
@@ -206,7 +228,10 @@ namespace Emby.Dlna.Main
{
try
{
((DeviceDiscovery)_deviceDiscovery).Start(communicationsServer);
if (communicationsServer != null)
{
((DeviceDiscovery)_deviceDiscovery).Start(communicationsServer);
}
}
catch (Exception ex)
{
@@ -241,7 +266,12 @@ namespace Emby.Dlna.Main
try
{
_publisher = new SsdpDevicePublisher(_communicationsServer, _networkManager, OperatingSystem.Name, Environment.OSVersion.VersionString, _config.GetDlnaConfiguration().SendOnlyMatchedHost)
_publisher = new SsdpDevicePublisher(
_communicationsServer,
_networkManager,
MediaBrowser.Common.System.OperatingSystem.Name,
Environment.OSVersion.VersionString,
_config.GetDlnaConfiguration().SendOnlyMatchedHost)
{
LogFunction = LogMessage,
SupportPnpRootDevice = false
@@ -290,12 +320,18 @@ namespace Emby.Dlna.Main
_logger.LogInformation("Registering publisher for {0} on {1}", fullService, address);
var uri = new Uri(_appHost.GetSmartApiUrl(address.Address) + descriptorUri);
var uri = new UriBuilder(_appHost.GetSmartApiUrl(address.Address) + descriptorUri);
if (!string.IsNullOrEmpty(_appHost.PublishedServerUrl))
{
// DLNA will only work over http, so we must reset to http:// : {port}.
uri.Scheme = "http";
uri.Port = _netConfig.HttpServerPortNumber;
}
var device = new SsdpRootDevice
{
CacheLifetime = TimeSpan.FromSeconds(1800), // How long SSDP clients can cache this info.
Location = uri, // Must point to the URL that serves your devices UPnP description document.
Location = uri.Uri, // Must point to the URL that serves your devices UPnP description document.
Address = address.Address,
PrefixLength = address.PrefixLength,
FriendlyName = "Jellyfin",

View File

@@ -24,7 +24,7 @@ namespace Emby.Dlna.MediaReceiverRegistrar
}
/// <inheritdoc />
protected override void WriteResult(string methodName, IDictionary<string, string> methodParams, XmlWriter xmlWriter)
protected override void WriteResult(string methodName, IReadOnlyDictionary<string, string> methodParams, XmlWriter xmlWriter)
{
if (string.Equals(methodName, "IsAuthorized", StringComparison.OrdinalIgnoreCase))
{

View File

@@ -1,7 +1,6 @@
using System.Collections.Generic;
using Emby.Dlna.Common;
using Emby.Dlna.Service;
using MediaBrowser.Model.Dlna;
namespace Emby.Dlna.MediaReceiverRegistrar
{

View File

@@ -1,3 +1,5 @@
#nullable disable
#pragma warning disable CS1591
using System;
@@ -219,7 +221,7 @@ namespace Emby.Dlna.PlayTo
{
var rendererCommands = await GetRenderingProtocolAsync(cancellationToken).ConfigureAwait(false);
var command = rendererCommands.ServiceActions.FirstOrDefault(c => c.Name == "SetMute");
var command = rendererCommands?.ServiceActions.FirstOrDefault(c => c.Name == "SetMute");
if (command == null)
{
return false;
@@ -235,7 +237,13 @@ namespace Emby.Dlna.PlayTo
_logger.LogDebug("Setting mute");
var value = mute ? 1 : 0;
await new SsdpHttpClient(_httpClientFactory).SendCommandAsync(Properties.BaseUrl, service, command.Name, rendererCommands.BuildPost(command, service.ServiceType, value))
await new SsdpHttpClient(_httpClientFactory)
.SendCommandAsync(
Properties.BaseUrl,
service,
command.Name,
rendererCommands.BuildPost(command, service.ServiceType, value),
cancellationToken: cancellationToken)
.ConfigureAwait(false);
IsMuted = mute;
@@ -253,7 +261,7 @@ namespace Emby.Dlna.PlayTo
{
var rendererCommands = await GetRenderingProtocolAsync(cancellationToken).ConfigureAwait(false);
var command = rendererCommands.ServiceActions.FirstOrDefault(c => c.Name == "SetVolume");
var command = rendererCommands?.ServiceActions.FirstOrDefault(c => c.Name == "SetVolume");
if (command == null)
{
return;
@@ -270,7 +278,13 @@ namespace Emby.Dlna.PlayTo
// Remote control will perform better
Volume = value;
await new SsdpHttpClient(_httpClientFactory).SendCommandAsync(Properties.BaseUrl, service, command.Name, rendererCommands.BuildPost(command, service.ServiceType, value))
await new SsdpHttpClient(_httpClientFactory)
.SendCommandAsync(
Properties.BaseUrl,
service,
command.Name,
rendererCommands.BuildPost(command, service.ServiceType, value),
cancellationToken: cancellationToken)
.ConfigureAwait(false);
}
@@ -278,7 +292,7 @@ namespace Emby.Dlna.PlayTo
{
var avCommands = await GetAVProtocolAsync(cancellationToken).ConfigureAwait(false);
var command = avCommands.ServiceActions.FirstOrDefault(c => c.Name == "Seek");
var command = avCommands?.ServiceActions.FirstOrDefault(c => c.Name == "Seek");
if (command == null)
{
return;
@@ -291,7 +305,13 @@ namespace Emby.Dlna.PlayTo
throw new InvalidOperationException("Unable to find service");
}
await new SsdpHttpClient(_httpClientFactory).SendCommandAsync(Properties.BaseUrl, service, command.Name, avCommands.BuildPost(command, service.ServiceType, string.Format(CultureInfo.InvariantCulture, "{0:hh}:{0:mm}:{0:ss}", value), "REL_TIME"))
await new SsdpHttpClient(_httpClientFactory)
.SendCommandAsync(
Properties.BaseUrl,
service,
command.Name,
avCommands.BuildPost(command, service.ServiceType, string.Format(CultureInfo.InvariantCulture, "{0:hh}:{0:mm}:{0:ss}", value), "REL_TIME"),
cancellationToken: cancellationToken)
.ConfigureAwait(false);
RestartTimer(true);
@@ -305,7 +325,7 @@ namespace Emby.Dlna.PlayTo
_logger.LogDebug("{0} - SetAvTransport Uri: {1} DlnaHeaders: {2}", Properties.Name, url, header);
var command = avCommands.ServiceActions.FirstOrDefault(c => c.Name == "SetAVTransportURI");
var command = avCommands?.ServiceActions.FirstOrDefault(c => c.Name == "SetAVTransportURI");
if (command == null)
{
return;
@@ -325,14 +345,21 @@ namespace Emby.Dlna.PlayTo
}
var post = avCommands.BuildPost(command, service.ServiceType, url, dictionary);
await new SsdpHttpClient(_httpClientFactory).SendCommandAsync(Properties.BaseUrl, service, command.Name, post, header: header)
await new SsdpHttpClient(_httpClientFactory)
.SendCommandAsync(
Properties.BaseUrl,
service,
command.Name,
post,
header: header,
cancellationToken: cancellationToken)
.ConfigureAwait(false);
await Task.Delay(50).ConfigureAwait(false);
await Task.Delay(50, cancellationToken).ConfigureAwait(false);
try
{
await SetPlay(avCommands, CancellationToken.None).ConfigureAwait(false);
await SetPlay(avCommands, cancellationToken).ConfigureAwait(false);
}
catch
{
@@ -343,6 +370,42 @@ namespace Emby.Dlna.PlayTo
RestartTimer(true);
}
/*
* SetNextAvTransport is used to specify to the DLNA device what is the next track to play.
* Without that information, the next track command on the device does not work.
*/
public async Task SetNextAvTransport(string url, string header, string metaData, CancellationToken cancellationToken = default)
{
var avCommands = await GetAVProtocolAsync(cancellationToken).ConfigureAwait(false);
url = url.Replace("&", "&amp;", StringComparison.Ordinal);
_logger.LogDebug("{PropertyName} - SetNextAvTransport Uri: {Url} DlnaHeaders: {Header}", Properties.Name, url, header);
var command = avCommands.ServiceActions.FirstOrDefault(c => string.Equals(c.Name, "SetNextAVTransportURI", StringComparison.OrdinalIgnoreCase));
if (command == null)
{
return;
}
var dictionary = new Dictionary<string, string>
{
{ "NextURI", url },
{ "NextURIMetaData", CreateDidlMeta(metaData) }
};
var service = GetAvTransportService();
if (service == null)
{
throw new InvalidOperationException("Unable to find service");
}
var post = avCommands.BuildPost(command, service.ServiceType, url, dictionary);
await new SsdpHttpClient(_httpClientFactory).SendCommandAsync(Properties.BaseUrl, service, command.Name, post, header: header, cancellationToken)
.ConfigureAwait(false);
}
private static string CreateDidlMeta(string value)
{
if (string.IsNullOrEmpty(value))
@@ -378,6 +441,10 @@ namespace Emby.Dlna.PlayTo
public async Task SetPlay(CancellationToken cancellationToken)
{
var avCommands = await GetAVProtocolAsync(cancellationToken).ConfigureAwait(false);
if (avCommands == null)
{
return;
}
await SetPlay(avCommands, cancellationToken).ConfigureAwait(false);
@@ -388,7 +455,7 @@ namespace Emby.Dlna.PlayTo
{
var avCommands = await GetAVProtocolAsync(cancellationToken).ConfigureAwait(false);
var command = avCommands.ServiceActions.FirstOrDefault(c => c.Name == "Stop");
var command = avCommands?.ServiceActions.FirstOrDefault(c => c.Name == "Stop");
if (command == null)
{
return;
@@ -396,7 +463,13 @@ namespace Emby.Dlna.PlayTo
var service = GetAvTransportService();
await new SsdpHttpClient(_httpClientFactory).SendCommandAsync(Properties.BaseUrl, service, command.Name, avCommands.BuildPost(command, service.ServiceType, 1))
await new SsdpHttpClient(_httpClientFactory)
.SendCommandAsync(
Properties.BaseUrl,
service,
command.Name,
avCommands.BuildPost(command, service.ServiceType, 1),
cancellationToken: cancellationToken)
.ConfigureAwait(false);
RestartTimer(true);
@@ -406,7 +479,7 @@ namespace Emby.Dlna.PlayTo
{
var avCommands = await GetAVProtocolAsync(cancellationToken).ConfigureAwait(false);
var command = avCommands.ServiceActions.FirstOrDefault(c => c.Name == "Pause");
var command = avCommands?.ServiceActions.FirstOrDefault(c => c.Name == "Pause");
if (command == null)
{
return;
@@ -414,7 +487,13 @@ namespace Emby.Dlna.PlayTo
var service = GetAvTransportService();
await new SsdpHttpClient(_httpClientFactory).SendCommandAsync(Properties.BaseUrl, service, command.Name, avCommands.BuildPost(command, service.ServiceType, 1))
await new SsdpHttpClient(_httpClientFactory)
.SendCommandAsync(
Properties.BaseUrl,
service,
command.Name,
avCommands.BuildPost(command, service.ServiceType, 1),
cancellationToken: cancellationToken)
.ConfigureAwait(false);
TransportState = TransportState.Paused;
@@ -528,7 +607,7 @@ namespace Emby.Dlna.PlayTo
var rendererCommands = await GetRenderingProtocolAsync(cancellationToken).ConfigureAwait(false);
var command = rendererCommands.ServiceActions.FirstOrDefault(c => c.Name == "GetVolume");
var command = rendererCommands?.ServiceActions.FirstOrDefault(c => c.Name == "GetVolume");
if (command == null)
{
return;
@@ -578,7 +657,7 @@ namespace Emby.Dlna.PlayTo
var rendererCommands = await GetRenderingProtocolAsync(cancellationToken).ConfigureAwait(false);
var command = rendererCommands.ServiceActions.FirstOrDefault(c => c.Name == "GetMute");
var command = rendererCommands?.ServiceActions.FirstOrDefault(c => c.Name == "GetMute");
if (command == null)
{
return;
@@ -665,6 +744,10 @@ namespace Emby.Dlna.PlayTo
}
var rendererCommands = await GetRenderingProtocolAsync(cancellationToken).ConfigureAwait(false);
if (rendererCommands == null)
{
return null;
}
var result = await new SsdpHttpClient(_httpClientFactory).SendCommandAsync(
Properties.BaseUrl,
@@ -733,6 +816,11 @@ namespace Emby.Dlna.PlayTo
var rendererCommands = await GetRenderingProtocolAsync(cancellationToken).ConfigureAwait(false);
if (rendererCommands == null)
{
return (false, null);
}
var result = await new SsdpHttpClient(_httpClientFactory).SendCommandAsync(
Properties.BaseUrl,
service,
@@ -914,6 +1002,10 @@ namespace Emby.Dlna.PlayTo
var httpClient = new SsdpHttpClient(_httpClientFactory);
var document = await httpClient.GetDataAsync(url, cancellationToken).ConfigureAwait(false);
if (document == null)
{
return null;
}
AvCommands = TransportCommands.Create(document);
return AvCommands;
@@ -942,6 +1034,10 @@ namespace Emby.Dlna.PlayTo
var httpClient = new SsdpHttpClient(_httpClientFactory);
_logger.LogDebug("Dlna Device.GetRenderingProtocolAsync");
var document = await httpClient.GetDataAsync(url, cancellationToken).ConfigureAwait(false);
if (document == null)
{
return null;
}
RendererCommands = TransportCommands.Create(document);
return RendererCommands;
@@ -973,6 +1069,10 @@ namespace Emby.Dlna.PlayTo
var ssdpHttpClient = new SsdpHttpClient(httpClientFactory);
var document = await ssdpHttpClient.GetDataAsync(url.ToString(), cancellationToken).ConfigureAwait(false);
if (document == null)
{
return null;
}
var friendlyNames = new List<string>();
@@ -990,7 +1090,7 @@ namespace Emby.Dlna.PlayTo
var deviceProperties = new DeviceInfo()
{
Name = string.Join(" ", friendlyNames),
Name = string.Join(' ', friendlyNames),
BaseUrl = string.Format(CultureInfo.InvariantCulture, "http://{0}:{1}", url.Host, url.Port)
};
@@ -1160,10 +1260,7 @@ namespace Emby.Dlna.PlayTo
return;
}
PlaybackStart?.Invoke(this, new PlaybackStartEventArgs
{
MediaInfo = mediaInfo
});
PlaybackStart?.Invoke(this, new PlaybackStartEventArgs(mediaInfo));
}
private void OnPlaybackProgress(UBaseObject mediaInfo)
@@ -1173,27 +1270,17 @@ namespace Emby.Dlna.PlayTo
return;
}
PlaybackProgress?.Invoke(this, new PlaybackProgressEventArgs
{
MediaInfo = mediaInfo
});
PlaybackProgress?.Invoke(this, new PlaybackProgressEventArgs(mediaInfo));
}
private void OnPlaybackStop(UBaseObject mediaInfo)
{
PlaybackStopped?.Invoke(this, new PlaybackStoppedEventArgs
{
MediaInfo = mediaInfo
});
PlaybackStopped?.Invoke(this, new PlaybackStoppedEventArgs(mediaInfo));
}
private void OnMediaChanged(UBaseObject old, UBaseObject newMedia)
{
MediaChanged?.Invoke(this, new MediaChangedEventArgs
{
OldMediaInfo = old,
NewMediaInfo = newMedia
});
MediaChanged?.Invoke(this, new MediaChangedEventArgs(old, newMedia));
}
/// <inheritdoc />

View File

@@ -1,3 +1,5 @@
#nullable disable
#pragma warning disable CS1591
using System.Collections.Generic;

View File

@@ -1,4 +1,4 @@
#pragma warning disable CS1591
#pragma warning disable CS1591
using System;
@@ -6,6 +6,12 @@ namespace Emby.Dlna.PlayTo
{
public class MediaChangedEventArgs : EventArgs
{
public MediaChangedEventArgs(UBaseObject oldMediaInfo, UBaseObject newMediaInfo)
{
OldMediaInfo = oldMediaInfo;
NewMediaInfo = newMediaInfo;
}
public UBaseObject OldMediaInfo { get; set; }
public UBaseObject NewMediaInfo { get; set; }

View File

@@ -1,3 +1,5 @@
#nullable disable
#pragma warning disable CS1591
using System;
@@ -102,6 +104,22 @@ namespace Emby.Dlna.PlayTo
_deviceDiscovery.DeviceLeft += OnDeviceDiscoveryDeviceLeft;
}
/*
* Send a message to the DLNA device to notify what is the next track in the playlist.
*/
private async Task SendNextTrackMessage(int currentPlayListItemIndex, CancellationToken cancellationToken)
{
if (currentPlayListItemIndex >= 0 && currentPlayListItemIndex < _playlist.Count - 1)
{
// The current playing item is indeed in the play list and we are not yet at the end of the playlist.
var nextItemIndex = currentPlayListItemIndex + 1;
var nextItem = _playlist[nextItemIndex];
// Send the SetNextAvTransport message.
await _device.SetNextAvTransport(nextItem.StreamUrl, GetDlnaHeaders(nextItem), nextItem.Didl, cancellationToken).ConfigureAwait(false);
}
}
private void OnDeviceUnavailable()
{
try
@@ -132,7 +150,7 @@ namespace Emby.Dlna.PlayTo
private async void OnDeviceMediaChanged(object sender, MediaChangedEventArgs e)
{
if (_disposed)
if (_disposed || string.IsNullOrEmpty(e.OldMediaInfo.Url))
{
return;
}
@@ -156,6 +174,15 @@ namespace Emby.Dlna.PlayTo
var newItemProgress = GetProgressInfo(streamInfo);
await _sessionManager.OnPlaybackStart(newItemProgress).ConfigureAwait(false);
// Send a message to the DLNA device to notify what is the next track in the playlist.
var currentItemIndex = _playlist.FindIndex(item => item.StreamInfo.ItemId == streamInfo.ItemId);
if (currentItemIndex >= 0)
{
_currentPlaylistIndex = currentItemIndex;
}
await SendNextTrackMessage(currentItemIndex, CancellationToken.None);
}
catch (Exception ex)
{
@@ -340,10 +367,19 @@ namespace Emby.Dlna.PlayTo
}
var playlist = new PlaylistItem[len];
playlist[0] = CreatePlaylistItem(items[0], user, command.StartPositionTicks.Value, command.MediaSourceId, command.AudioStreamIndex, command.SubtitleStreamIndex);
// Not nullable enabled - so this is required.
playlist[0] = CreatePlaylistItem(
items[0],
user,
command.StartPositionTicks ?? 0,
command.MediaSourceId ?? string.Empty,
command.AudioStreamIndex,
command.SubtitleStreamIndex);
for (int i = 1; i < len; i++)
{
playlist[i] = CreatePlaylistItem(items[i], user, 0, null, null, null);
playlist[i] = CreatePlaylistItem(items[i], user, 0, string.Empty, null, null);
}
_logger.LogDebug("{0} - Playlist created", _session.DeviceName);
@@ -416,6 +452,11 @@ namespace Emby.Dlna.PlayTo
var newItem = CreatePlaylistItem(info.Item, user, newPosition, info.MediaSourceId, info.AudioStreamIndex, info.SubtitleStreamIndex);
await _device.SetAvTransport(newItem.StreamUrl, GetDlnaHeaders(newItem), newItem.Didl, CancellationToken.None).ConfigureAwait(false);
// Send a message to the DLNA device to notify what is the next track in the play list.
var newItemIndex = _playlist.FindIndex(item => item.StreamUrl == newItem.StreamUrl);
await SendNextTrackMessage(newItemIndex, CancellationToken.None);
return;
}
@@ -490,8 +531,8 @@ namespace Emby.Dlna.PlayTo
if (streamInfo.MediaType == DlnaProfileType.Audio)
{
return new ContentFeatureBuilder(profile)
.BuildAudioHeader(
return ContentFeatureBuilder.BuildAudioHeader(
profile,
streamInfo.Container,
streamInfo.TargetAudioCodec.FirstOrDefault(),
streamInfo.TargetAudioBitrate,
@@ -505,8 +546,8 @@ namespace Emby.Dlna.PlayTo
if (streamInfo.MediaType == DlnaProfileType.Video)
{
var list = new ContentFeatureBuilder(profile)
.BuildVideoHeader(
var list = ContentFeatureBuilder.BuildVideoHeader(
profile,
streamInfo.Container,
streamInfo.TargetVideoCodec.FirstOrDefault(),
streamInfo.TargetAudioCodec.FirstOrDefault(),
@@ -614,6 +655,9 @@ namespace Emby.Dlna.PlayTo
await _device.SetAvTransport(currentitem.StreamUrl, GetDlnaHeaders(currentitem), currentitem.Didl, cancellationToken).ConfigureAwait(false);
// Send a message to the DLNA device to notify what is the next track in the play list.
await SendNextTrackMessage(index, cancellationToken);
var streamInfo = currentitem.StreamInfo;
if (streamInfo.StartPositionTicks > 0 && EnableClientSideSeek(streamInfo))
{
@@ -727,6 +771,10 @@ namespace Emby.Dlna.PlayTo
await _device.SetAvTransport(newItem.StreamUrl, GetDlnaHeaders(newItem), newItem.Didl, CancellationToken.None).ConfigureAwait(false);
// Send a message to the DLNA device to notify what is the next track in the play list.
var newItemIndex = _playlist.FindIndex(item => item.StreamUrl == newItem.StreamUrl);
await SendNextTrackMessage(newItemIndex, CancellationToken.None);
if (EnableClientSideSeek(newItem.StreamInfo))
{
await SeekAfterTransportChange(newPosition, CancellationToken.None).ConfigureAwait(false);
@@ -752,6 +800,10 @@ namespace Emby.Dlna.PlayTo
await _device.SetAvTransport(newItem.StreamUrl, GetDlnaHeaders(newItem), newItem.Didl, CancellationToken.None).ConfigureAwait(false);
// Send a message to the DLNA device to notify what is the next track in the play list.
var newItemIndex = _playlist.FindIndex(item => item.StreamUrl == newItem.StreamUrl);
await SendNextTrackMessage(newItemIndex, CancellationToken.None);
if (EnableClientSideSeek(newItem.StreamInfo) && newPosition > 0)
{
await SeekAfterTransportChange(newPosition, CancellationToken.None).ConfigureAwait(false);
@@ -768,7 +820,7 @@ namespace Emby.Dlna.PlayTo
var currentWait = 0;
while (_device.TransportState != TransportState.Playing && currentWait < MaxWait)
{
await Task.Delay(Interval).ConfigureAwait(false);
await Task.Delay(Interval, cancellationToken).ConfigureAwait(false);
currentWait += Interval;
}
@@ -817,7 +869,7 @@ namespace Emby.Dlna.PlayTo
return SendPlayCommand(data as PlayRequest, cancellationToken);
}
if (name == SessionMessageType.PlayState)
if (name == SessionMessageType.Playstate)
{
return SendPlaystateCommand(data as PlaystateRequest, cancellationToken);
}
@@ -887,16 +939,16 @@ namespace Emby.Dlna.PlayTo
var parts = url.Split('/');
for (var i = 0; i < parts.Length; i++)
for (var i = 0; i < parts.Length - 1; i++)
{
var part = parts[i];
if (string.Equals(part, "audio", StringComparison.OrdinalIgnoreCase) ||
string.Equals(part, "videos", StringComparison.OrdinalIgnoreCase))
{
if (parts.Length > i + 1)
if (Guid.TryParse(parts[i + 1], out var result))
{
return Guid.Parse(parts[i + 1]);
return result;
}
}
}
@@ -934,11 +986,7 @@ namespace Emby.Dlna.PlayTo
request.DeviceId = values.GetValueOrDefault("DeviceId");
request.MediaSourceId = values.GetValueOrDefault("MediaSourceId");
request.LiveStreamId = values.GetValueOrDefault("LiveStreamId");
// Be careful, IsDirectStream==true by default (Static != false or not in query).
// See initialization of StreamingRequestDto in AudioController.GetAudioStream() method : Static = @static ?? true.
request.IsDirectStream = !string.Equals("false", values.GetValueOrDefault("Static"), StringComparison.OrdinalIgnoreCase);
request.IsDirectStream = string.Equals("true", values.GetValueOrDefault("Static"), StringComparison.OrdinalIgnoreCase);
request.AudioStreamIndex = GetIntValue(values, "AudioStreamIndex");
request.SubtitleStreamIndex = GetIntValue(values, "SubtitleStreamIndex");
request.StartPositionTicks = GetLongValue(values, "StartPositionTicks");

View File

@@ -1,3 +1,5 @@
#nullable disable
#pragma warning disable CS1591
using System;
@@ -178,12 +180,17 @@ namespace Emby.Dlna.PlayTo
if (controller == null)
{
var device = await Device.CreateuPnpDeviceAsync(uri, _httpClientFactory, _logger, cancellationToken).ConfigureAwait(false);
if (device == null)
{
_logger.LogError("Ignoring device as xml response is invalid.");
return;
}
string deviceName = device.Properties.Name;
_sessionManager.UpdateDeviceName(sessionInfo.Id, deviceName);
string serverAddress = _appHost.GetSmartApiUrl(info.LocalIpAddress);
string serverAddress = _appHost.GetSmartApiUrl(info.RemoteIpAddress);
controller = new PlayToController(
sessionInfo,

View File

@@ -6,6 +6,11 @@ namespace Emby.Dlna.PlayTo
{
public class PlaybackProgressEventArgs : EventArgs
{
public PlaybackProgressEventArgs(UBaseObject mediaInfo)
{
MediaInfo = mediaInfo;
}
public UBaseObject MediaInfo { get; set; }
}
}

View File

@@ -6,6 +6,11 @@ namespace Emby.Dlna.PlayTo
{
public class PlaybackStartEventArgs : EventArgs
{
public PlaybackStartEventArgs(UBaseObject mediaInfo)
{
MediaInfo = mediaInfo;
}
public UBaseObject MediaInfo { get; set; }
}
}

View File

@@ -6,6 +6,11 @@ namespace Emby.Dlna.PlayTo
{
public class PlaybackStoppedEventArgs : EventArgs
{
public PlaybackStoppedEventArgs(UBaseObject mediaInfo)
{
MediaInfo = mediaInfo;
}
public UBaseObject MediaInfo { get; set; }
}
}

View File

@@ -1,3 +1,5 @@
#nullable disable
#pragma warning disable CS1591
using MediaBrowser.Model.Dlna;

View File

@@ -1,3 +1,5 @@
#nullable disable
#pragma warning disable CS1591
using System.IO;

View File

@@ -1,8 +1,9 @@
#nullable disable
#pragma warning disable CS1591
using System;
using System.Globalization;
using System.IO;
using System.Net.Http;
using System.Net.Mime;
using System.Text;
@@ -45,10 +46,10 @@ namespace Emby.Dlna.PlayTo
cancellationToken)
.ConfigureAwait(false);
await using var stream = await response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var reader = new StreamReader(stream, Encoding.UTF8);
return XDocument.Parse(
await reader.ReadToEndAsync().ConfigureAwait(false),
LoadOptions.PreserveWhitespace);
return await XDocument.LoadAsync(
stream,
LoadOptions.PreserveWhitespace,
cancellationToken).ConfigureAwait(false);
}
private static string NormalizeServiceUrl(string baseUrl, string serviceUrl)
@@ -94,10 +95,17 @@ namespace Emby.Dlna.PlayTo
options.Headers.TryAddWithoutValidation("FriendlyName.DLNA.ORG", FriendlyName);
using var response = await _httpClientFactory.CreateClient(NamedClient.Default).SendAsync(options, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
await using var stream = await response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var reader = new StreamReader(stream, Encoding.UTF8);
return XDocument.Parse(
await reader.ReadToEndAsync().ConfigureAwait(false),
LoadOptions.PreserveWhitespace);
try
{
return await XDocument.LoadAsync(
stream,
LoadOptions.PreserveWhitespace,
cancellationToken).ConfigureAwait(false);
}
catch
{
return null;
}
}
private async Task<HttpResponseMessage> PostSoapDataAsync(

View File

@@ -13,12 +13,10 @@ namespace Emby.Dlna.PlayTo
public class TransportCommands
{
private const string CommandBase = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n" + "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">" + "<SOAP-ENV:Body>" + "<m:{0} xmlns:m=\"{1}\">" + "{2}" + "</m:{0}>" + "</SOAP-ENV:Body></SOAP-ENV:Envelope>";
private List<StateVariable> _stateVariables = new List<StateVariable>();
private List<ServiceAction> _serviceActions = new List<ServiceAction>();
public List<StateVariable> StateVariables => _stateVariables;
public List<StateVariable> StateVariables { get; } = new List<StateVariable>();
public List<ServiceAction> ServiceActions => _serviceActions;
public List<ServiceAction> ServiceActions { get; } = new List<ServiceAction>();
public static TransportCommands Create(XDocument document)
{
@@ -48,7 +46,7 @@ namespace Emby.Dlna.PlayTo
{
var serviceAction = new ServiceAction
{
Name = container.GetValue(UPnpNamespaces.Svc + "name"),
Name = container.GetValue(UPnpNamespaces.Svc + "name") ?? string.Empty,
};
var argumentList = serviceAction.ArgumentList;
@@ -70,9 +68,9 @@ namespace Emby.Dlna.PlayTo
return new Argument
{
Name = container.GetValue(UPnpNamespaces.Svc + "name"),
Direction = container.GetValue(UPnpNamespaces.Svc + "direction"),
RelatedStateVariable = container.GetValue(UPnpNamespaces.Svc + "relatedStateVariable")
Name = container.GetValue(UPnpNamespaces.Svc + "name") ?? string.Empty,
Direction = container.GetValue(UPnpNamespaces.Svc + "direction") ?? string.Empty,
RelatedStateVariable = container.GetValue(UPnpNamespaces.Svc + "relatedStateVariable") ?? string.Empty
};
}
@@ -91,8 +89,8 @@ namespace Emby.Dlna.PlayTo
return new StateVariable
{
Name = container.GetValue(UPnpNamespaces.Svc + "name"),
DataType = container.GetValue(UPnpNamespaces.Svc + "dataType"),
Name = container.GetValue(UPnpNamespaces.Svc + "name") ?? string.Empty,
DataType = container.GetValue(UPnpNamespaces.Svc + "dataType") ?? string.Empty,
AllowedValues = allowedValues
};
}
@@ -168,7 +166,7 @@ namespace Emby.Dlna.PlayTo
return string.Format(CultureInfo.InvariantCulture, CommandBase, action.Name, xmlNamesapce, stateString);
}
private string BuildArgumentXml(Argument argument, string value, string commandParameter = "")
private string BuildArgumentXml(Argument argument, string? value, string commandParameter = "")
{
var state = StateVariables.FirstOrDefault(a => string.Equals(a.Name, argument.RelatedStateVariable, StringComparison.OrdinalIgnoreCase));

View File

@@ -1,5 +1,4 @@
#pragma warning disable CS1591
#pragma warning disable SA1602
namespace Emby.Dlna.PlayTo
{

View File

@@ -1,3 +1,5 @@
#nullable disable
#pragma warning disable CS1591
using System;

View File

@@ -1,5 +1,7 @@
#pragma warning disable CS1591
using System;
using System.Globalization;
using System.Linq;
using MediaBrowser.Model.Dlna;
@@ -10,6 +12,7 @@ namespace Emby.Dlna.Profiles
{
public DefaultProfile()
{
Id = Guid.NewGuid().ToString("N", CultureInfo.InvariantCulture);
Name = "Generic Device";
ProtocolInfo = "http-get:*:video/mpeg:*,http-get:*:video/mp4:*,http-get:*:video/vnd.dlna.mpeg-tts:*,http-get:*:video/avi:*,http-get:*:video/x-matroska:*,http-get:*:video/x-ms-wmv:*,http-get:*:video/wtv:*,http-get:*:audio/mpeg:*,http-get:*:audio/mp3:*,http-get:*:audio/mp4:*,http-get:*:audio/x-ms-wma:*,http-get:*:audio/wav:*,http-get:*:audio/L16:*,http-get:*:image/jpeg:*,http-get:*:image/png:*,http-get:*:image/gif:*,http-get:*:image/tiff:*";

View File

@@ -13,7 +13,7 @@ namespace Emby.Dlna.Profiles
Identification = new DeviceIdentification
{
FriendlyName = @"KDL-\d{2}[EHLNPB]X\d[01]\d.*",
FriendlyName = @"KDL-[0-9]{2}[EHLNPB]X[0-9][01][0-9].*",
Manufacturer = "Sony",
Headers = new[]
@@ -21,7 +21,7 @@ namespace Emby.Dlna.Profiles
new HttpHeaderInfo
{
Name = "X-AV-Client-Info",
Value = @".*KDL-\d{2}[EHLNPB]X\d[01]\d.*",
Value = @".*KDL-[0-9]{2}[EHLNPB]X[0-9][01][0-9].*",
Match = HeaderMatchType.Regex
}
}

View File

@@ -13,7 +13,7 @@ namespace Emby.Dlna.Profiles
Identification = new DeviceIdentification
{
FriendlyName = @"KDL-\d{2}([A-Z]X\d2\d|CX400).*",
FriendlyName = @"KDL-[0-9]{2}([A-Z]X[0-9]2[0-9]|CX400).*",
Manufacturer = "Sony",
Headers = new[]
@@ -21,7 +21,7 @@ namespace Emby.Dlna.Profiles
new HttpHeaderInfo
{
Name = "X-AV-Client-Info",
Value = @".*KDL-\d{2}([A-Z]X\d2\d|CX400).*",
Value = @".*KDL-[0-9]{2}([A-Z]X[0-9]2[0-9]|CX400).*",
Match = HeaderMatchType.Regex
}
}

View File

@@ -13,7 +13,7 @@ namespace Emby.Dlna.Profiles
Identification = new DeviceIdentification
{
FriendlyName = @"KDL-\d{2}[A-Z]X\d5(\d|G).*",
FriendlyName = @"KDL-[0-9]{2}[A-Z]X[0-9]5([0-9]|G).*",
Manufacturer = "Sony",
Headers = new[]
@@ -21,7 +21,7 @@ namespace Emby.Dlna.Profiles
new HttpHeaderInfo
{
Name = "X-AV-Client-Info",
Value = @".*KDL-\d{2}[A-Z]X\d5(\d|G).*",
Value = @".*KDL-[0-9]{2}[A-Z]X[0-9]5([0-9]|G).*",
Match = HeaderMatchType.Regex
}
}

View File

@@ -13,7 +13,7 @@ namespace Emby.Dlna.Profiles
Identification = new DeviceIdentification
{
FriendlyName = @"KDL-\d{2}[WR][5689]\d{2}A.*",
FriendlyName = @"KDL-[0-9]{2}[WR][5689][0-9]{2}A.*",
Manufacturer = "Sony",
Headers = new[]
@@ -21,7 +21,7 @@ namespace Emby.Dlna.Profiles
new HttpHeaderInfo
{
Name = "X-AV-Client-Info",
Value = @".*KDL-\d{2}[WR][5689]\d{2}A.*",
Value = @".*KDL-[0-9]{2}[WR][5689][0-9]{2}A.*",
Match = HeaderMatchType.Regex
}
}

View File

@@ -13,7 +13,7 @@ namespace Emby.Dlna.Profiles
Identification = new DeviceIdentification
{
FriendlyName = @"(KDL-\d{2}W[5-9]\d{2}B|KDL-\d{2}R480|XBR-\d{2}X[89]\d{2}B|KD-\d{2}[SX][89]\d{3}B).*",
FriendlyName = @"(KDL-[0-9]{2}W[5-9][0-9]{2}B|KDL-[0-9]{2}R480|XBR-[0-9]{2}X[89][0-9]{2}B|KD-[0-9]{2}[SX][89][0-9]{3}B).*",
Manufacturer = "Sony",
Headers = new[]
@@ -21,7 +21,7 @@ namespace Emby.Dlna.Profiles
new HttpHeaderInfo
{
Name = "X-AV-Client-Info",
Value = @".*(KDL-\d{2}W[5-9]\d{2}B|KDL-\d{2}R480|XBR-\d{2}X[89]\d{2}B|KD-\d{2}[SX][89]\d{3}B).*",
Value = @".*(KDL-[0-9]{2}W[5-9][0-9]{2}B|KDL-[0-9]{2}R480|XBR-[0-9]{2}X[89][0-9]{2}B|KD-[0-9]{2}[SX][89][0-9]{3}B).*",
Match = HeaderMatchType.Regex
}
}

View File

@@ -52,7 +52,7 @@ namespace Emby.Dlna.Profiles
Container = "ts,mpegts",
Type = DlnaProfileType.Video,
VideoCodec = "mpeg1video,mpeg2video,h264",
AudioCodec = "ac3,mp2,mp3,aac"
AudioCodec = "aac,ac3,mp2"
},
new DirectPlayProfile
{
@@ -92,7 +92,7 @@ namespace Emby.Dlna.Profiles
{
Container = "ts",
VideoCodec = "h264",
AudioCodec = "ac3,aac,mp3",
AudioCodec = "aac,ac3,mp2",
Type = DlnaProfileType.Video
},
new TranscodingProfile

View File

@@ -52,7 +52,7 @@ namespace Emby.Dlna.Profiles
Container = "ts,mpegts",
Type = DlnaProfileType.Video,
VideoCodec = "mpeg1video,mpeg2video,h264",
AudioCodec = "ac3,mp2,mp3,aac"
AudioCodec = "aac,ac3,mp2"
},
new DirectPlayProfile
{
@@ -94,7 +94,7 @@ namespace Emby.Dlna.Profiles
{
Container = "ts",
VideoCodec = "h264",
AudioCodec = "mp3",
AudioCodec = "aac,ac3,mp2",
Type = DlnaProfileType.Video
},
new TranscodingProfile

View File

@@ -3,10 +3,10 @@
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Name>Sony Bravia (2010)</Name>
<Identification>
<FriendlyName>KDL-\d{2}[EHLNPB]X\d[01]\d.*</FriendlyName>
<FriendlyName>KDL-[0-9]{2}[EHLNPB]X[0-9][01][0-9].*</FriendlyName>
<Manufacturer>Sony</Manufacturer>
<Headers>
<HttpHeaderInfo name="X-AV-Client-Info" value=".*KDL-\d{2}[EHLNPB]X\d[01]\d.*" match="Regex" />
<HttpHeaderInfo name="X-AV-Client-Info" value=".*KDL-[0-9]{2}[EHLNPB]X[0-9][01][0-9].*" match="Regex" />
</Headers>
</Identification>
<Manufacturer>Microsoft Corporation</Manufacturer>

View File

@@ -3,10 +3,10 @@
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Name>Sony Bravia (2011)</Name>
<Identification>
<FriendlyName>KDL-\d{2}([A-Z]X\d2\d|CX400).*</FriendlyName>
<FriendlyName>KDL-[0-9]{2}([A-Z]X[0-9]2[0-9]|CX400).*</FriendlyName>
<Manufacturer>Sony</Manufacturer>
<Headers>
<HttpHeaderInfo name="X-AV-Client-Info" value=".*KDL-\d{2}([A-Z]X\d2\d|CX400).*" match="Regex" />
<HttpHeaderInfo name="X-AV-Client-Info" value=".*KDL-[0-9]{2}([A-Z]X[0-9]2[0-9]|CX400).*" match="Regex" />
</Headers>
</Identification>
<Manufacturer>Microsoft Corporation</Manufacturer>

View File

@@ -3,10 +3,10 @@
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Name>Sony Bravia (2012)</Name>
<Identification>
<FriendlyName>KDL-\d{2}[A-Z]X\d5(\d|G).*</FriendlyName>
<FriendlyName>KDL-[0-9]{2}[A-Z]X[0-9]5([0-9]|G).*</FriendlyName>
<Manufacturer>Sony</Manufacturer>
<Headers>
<HttpHeaderInfo name="X-AV-Client-Info" value=".*KDL-\d{2}[A-Z]X\d5(\d|G).*" match="Regex" />
<HttpHeaderInfo name="X-AV-Client-Info" value=".*KDL-[0-9]{2}[A-Z]X[0-9]5([0-9]|G).*" match="Regex" />
</Headers>
</Identification>
<Manufacturer>Microsoft Corporation</Manufacturer>

View File

@@ -3,10 +3,10 @@
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Name>Sony Bravia (2013)</Name>
<Identification>
<FriendlyName>KDL-\d{2}[WR][5689]\d{2}A.*</FriendlyName>
<FriendlyName>KDL-[0-9]{2}[WR][5689][0-9]{2}A.*</FriendlyName>
<Manufacturer>Sony</Manufacturer>
<Headers>
<HttpHeaderInfo name="X-AV-Client-Info" value=".*KDL-\d{2}[WR][5689]\d{2}A.*" match="Regex" />
<HttpHeaderInfo name="X-AV-Client-Info" value=".*KDL-[0-9]{2}[WR][5689][0-9]{2}A.*" match="Regex" />
</Headers>
</Identification>
<Manufacturer>Microsoft Corporation</Manufacturer>

View File

@@ -3,10 +3,10 @@
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Name>Sony Bravia (2014)</Name>
<Identification>
<FriendlyName>(KDL-\d{2}W[5-9]\d{2}B|KDL-\d{2}R480|XBR-\d{2}X[89]\d{2}B|KD-\d{2}[SX][89]\d{3}B).*</FriendlyName>
<FriendlyName>(KDL-[0-9]{2}W[5-9][0-9]{2}B|KDL-[0-9]{2}R480|XBR-[0-9]{2}X[89][0-9]{2}B|KD-[0-9]{2}[SX][89][0-9]{3}B).*</FriendlyName>
<Manufacturer>Sony</Manufacturer>
<Headers>
<HttpHeaderInfo name="X-AV-Client-Info" value=".*(KDL-\d{2}W[5-9]\d{2}B|KDL-\d{2}R480|XBR-\d{2}X[89]\d{2}B|KD-\d{2}[SX][89]\d{3}B).*" match="Regex" />
<HttpHeaderInfo name="X-AV-Client-Info" value=".*(KDL-[0-9]{2}W[5-9][0-9]{2}B|KDL-[0-9]{2}R480|XBR-[0-9]{2}X[89][0-9]{2}B|KD-[0-9]{2}[SX][89][0-9]{3}B).*" match="Regex" />
</Headers>
</Identification>
<Manufacturer>Microsoft Corporation</Manufacturer>

View File

@@ -38,7 +38,7 @@
<XmlRootAttributes />
<DirectPlayProfiles>
<DirectPlayProfile container="avi" audioCodec="mp2,mp3" videoCodec="mpeg4" type="Video" />
<DirectPlayProfile container="ts,mpegts" audioCodec="ac3,mp2,mp3,aac" videoCodec="mpeg1video,mpeg2video,h264" type="Video" />
<DirectPlayProfile container="ts,mpegts" audioCodec="aac,ac3,mp2" videoCodec="mpeg1video,mpeg2video,h264" type="Video" />
<DirectPlayProfile container="mpeg" audioCodec="mp2" videoCodec="mpeg1video,mpeg2video" type="Video" />
<DirectPlayProfile container="mp4" audioCodec="aac,ac3" videoCodec="h264,mpeg4" type="Video" />
<DirectPlayProfile container="aac,mp3,wav" type="Audio" />
@@ -46,7 +46,7 @@
</DirectPlayProfiles>
<TranscodingProfiles>
<TranscodingProfile container="mp3" type="Audio" audioCodec="mp3" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" minSegments="0" segmentLength="0" breakOnNonKeyFrames="false" />
<TranscodingProfile container="ts" type="Video" videoCodec="h264" audioCodec="ac3,aac,mp3" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" minSegments="0" segmentLength="0" breakOnNonKeyFrames="false" />
<TranscodingProfile container="ts" type="Video" videoCodec="h264" audioCodec="aac,ac3,mp2" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" minSegments="0" segmentLength="0" breakOnNonKeyFrames="false" />
<TranscodingProfile container="jpeg" type="Photo" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" minSegments="0" segmentLength="0" breakOnNonKeyFrames="false" />
</TranscodingProfiles>
<ContainerProfiles>

View File

@@ -38,7 +38,7 @@
<XmlRootAttributes />
<DirectPlayProfiles>
<DirectPlayProfile container="avi" audioCodec="mp2,mp3" videoCodec="mpeg4" type="Video" />
<DirectPlayProfile container="ts,mpegts" audioCodec="ac3,mp2,mp3,aac" videoCodec="mpeg1video,mpeg2video,h264" type="Video" />
<DirectPlayProfile container="ts,mpegts" audioCodec="aac,ac3,mp2" videoCodec="mpeg1video,mpeg2video,h264" type="Video" />
<DirectPlayProfile container="mpeg" audioCodec="mp2" videoCodec="mpeg1video,mpeg2video" type="Video" />
<DirectPlayProfile container="mp4,mkv,m4v" audioCodec="aac,ac3" videoCodec="h264,mpeg4" type="Video" />
<DirectPlayProfile container="aac,mp3,wav" type="Audio" />
@@ -46,7 +46,7 @@
</DirectPlayProfiles>
<TranscodingProfiles>
<TranscodingProfile container="mp3" type="Audio" audioCodec="mp3" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Bytes" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" minSegments="0" segmentLength="0" breakOnNonKeyFrames="false" />
<TranscodingProfile container="ts" type="Video" videoCodec="h264" audioCodec="mp3" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" minSegments="0" segmentLength="0" breakOnNonKeyFrames="false" />
<TranscodingProfile container="ts" type="Video" videoCodec="h264" audioCodec="aac,ac3,mp2" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" minSegments="0" segmentLength="0" breakOnNonKeyFrames="false" />
<TranscodingProfile container="jpeg" type="Photo" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" minSegments="0" segmentLength="0" breakOnNonKeyFrames="false" />
</TranscodingProfiles>
<ContainerProfiles>

View File

@@ -250,7 +250,8 @@ namespace Emby.Dlna.Server
url = _serverAddress.TrimEnd('/') + "/dlna/" + _serverUdn + "/" + url.TrimStart('/');
return SecurityElement.Escape(url);
// TODO: @bond remove null-coalescing operator when https://github.com/dotnet/runtime/pull/52442 is merged/released
return SecurityElement.Escape(url) ?? string.Empty;
}
private IEnumerable<DeviceIcon> GetIcons()

View File

@@ -6,9 +6,9 @@ using System.IO;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using Diacritics.Extensions;
using Emby.Dlna.Didl;
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Extensions;
using Microsoft.Extensions.Logging;
namespace Emby.Dlna.Service
@@ -47,9 +47,9 @@ namespace Emby.Dlna.Service
private async Task<ControlResponse> ProcessControlRequestInternalAsync(ControlRequest request)
{
ControlRequestInfo requestInfo = null;
ControlRequestInfo? requestInfo = null;
using (var streamReader = new StreamReader(request.InputXml))
using (var streamReader = new StreamReader(request.InputXml, Encoding.UTF8))
{
var readerSettings = new XmlReaderSettings()
{
@@ -95,11 +95,7 @@ namespace Emby.Dlna.Service
var xml = builder.ToString().Replace("xmlns:m=", "xmlns:u=", StringComparison.Ordinal);
var controlResponse = new ControlResponse
{
Xml = xml,
IsSuccessful = true
};
var controlResponse = new ControlResponse(xml, true);
controlResponse.Headers.Add("EXT", string.Empty);
@@ -151,7 +147,7 @@ namespace Emby.Dlna.Service
private async Task<ControlRequestInfo> ParseBodyTagAsync(XmlReader reader)
{
string namespaceURI = null, localName = null;
string? namespaceURI = null, localName = null;
await reader.MoveToContentAsync().ConfigureAwait(false);
await reader.ReadAsync().ConfigureAwait(false);
@@ -210,7 +206,7 @@ namespace Emby.Dlna.Service
}
}
protected abstract void WriteResult(string methodName, IDictionary<string, string> methodParams, XmlWriter xmlWriter);
protected abstract void WriteResult(string methodName, IReadOnlyDictionary<string, string> methodParams, XmlWriter xmlWriter);
private void LogRequest(ControlRequest request)
{

View File

@@ -46,11 +46,7 @@ namespace Emby.Dlna.Service
writer.WriteEndDocument();
}
return new ControlResponse
{
Xml = builder.ToString(),
IsSuccessful = false
};
return new ControlResponse(builder.ToString(), false);
}
}
}

View File

@@ -1,3 +1,5 @@
#nullable disable
#pragma warning disable CS1591
using System;
@@ -69,7 +71,7 @@ namespace Emby.Dlna.Ssdp
{
lock (_syncLock)
{
if (_listenerCount > 0 && _deviceLocator == null)
if (_listenerCount > 0 && _deviceLocator == null && _commsServer != null)
{
_deviceLocator = new SsdpDeviceLocator(_commsServer);
@@ -104,7 +106,7 @@ namespace Emby.Dlna.Ssdp
{
Location = e.DiscoveredDevice.DescriptionLocation,
Headers = headers,
LocalIpAddress = e.LocalIpAddress
RemoteIpAddress = e.RemoteIpAddress
});
DeviceDiscoveredInternal?.Invoke(this, args);

View File

@@ -7,21 +7,21 @@ namespace Emby.Dlna.Ssdp
{
public static class SsdpExtensions
{
public static string GetValue(this XElement container, XName name)
public static string? GetValue(this XElement container, XName name)
{
var node = container.Element(name);
return node?.Value;
}
public static string GetAttributeValue(this XElement container, XName name)
public static string? GetAttributeValue(this XElement container, XName name)
{
var node = container.Attribute(name);
return node?.Value;
}
public static string GetDescendantValue(this XElement container, XName name)
public static string? GetDescendantValue(this XElement container, XName name)
=> container.Descendants(name).FirstOrDefault()?.Value;
}
}

View File

@@ -9,8 +9,7 @@
<TargetFramework>net5.0</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Nullable>enable</Nullable>
<AnalysisMode>AllDisabledByDefault</AnalysisMode>
</PropertyGroup>
<ItemGroup>
@@ -25,14 +24,9 @@
<!-- Code analysers-->
<ItemGroup Condition=" '$(Configuration)' == 'Debug' ">
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.8" PrivateAssets="All" />
<PackageReference Include="SerilogAnalyzer" Version="0.15.0" PrivateAssets="All" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" PrivateAssets="All" />
<PackageReference Include="SmartAnalyzers.MultithreadingAnalyzer" Version="1.1.31" PrivateAssets="All" />
</ItemGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<CodeAnalysisRuleSet>../jellyfin.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
</Project>

View File

@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Jellyfin.Data.Entities;
using MediaBrowser.Common.Extensions;
@@ -171,21 +172,31 @@ namespace Emby.Drawing
return (originalImagePath, MimeTypes.GetMimeType(originalImagePath), dateModified);
}
ImageDimensions newSize = ImageHelper.GetNewImageSize(options, null);
int quality = options.Quality;
ImageFormat outputFormat = GetOutputFormat(options.SupportedOutputFormats, requiresTransparency);
string cacheFilePath = GetCacheFilePath(originalImagePath, newSize, quality, dateModified, outputFormat, options.AddPlayedIndicator, options.PercentPlayed, options.UnplayedCount, options.Blur, options.BackgroundColor, options.ForegroundLayer);
string cacheFilePath = GetCacheFilePath(
originalImagePath,
options.Width,
options.Height,
options.MaxWidth,
options.MaxHeight,
options.FillWidth,
options.FillHeight,
quality,
dateModified,
outputFormat,
options.AddPlayedIndicator,
options.PercentPlayed,
options.UnplayedCount,
options.Blur,
options.BackgroundColor,
options.ForegroundLayer);
try
{
if (!File.Exists(cacheFilePath))
{
if (options.CropWhiteSpace && !SupportsTransparency(originalImagePath))
{
options.CropWhiteSpace = false;
}
string resultPath = _imageEncoder.EncodeImage(originalImagePath, dateModified, cacheFilePath, autoOrient, orientation, quality, options, outputFormat);
if (string.Equals(resultPath, originalImagePath, StringComparison.OrdinalIgnoreCase))
@@ -246,48 +257,111 @@ namespace Emby.Drawing
/// <summary>
/// Gets the cache file path based on a set of parameters.
/// </summary>
private string GetCacheFilePath(string originalPath, ImageDimensions outputSize, int quality, DateTime dateModified, ImageFormat format, bool addPlayedIndicator, double percentPlayed, int? unwatchedCount, int? blur, string backgroundColor, string foregroundLayer)
private string GetCacheFilePath(
string originalPath,
int? width,
int? height,
int? maxWidth,
int? maxHeight,
int? fillWidth,
int? fillHeight,
int quality,
DateTime dateModified,
ImageFormat format,
bool addPlayedIndicator,
double percentPlayed,
int? unwatchedCount,
int? blur,
string backgroundColor,
string foregroundLayer)
{
var filename = originalPath
+ "width=" + outputSize.Width
+ "height=" + outputSize.Height
+ "quality=" + quality
+ "datemodified=" + dateModified.Ticks
+ "f=" + format;
var filename = new StringBuilder(256);
filename.Append(originalPath);
filename.Append(",quality=");
filename.Append(quality);
filename.Append(",datemodified=");
filename.Append(dateModified.Ticks);
filename.Append(",f=");
filename.Append(format);
if (width.HasValue)
{
filename.Append(",width=");
filename.Append(width.Value);
}
if (height.HasValue)
{
filename.Append(",height=");
filename.Append(height.Value);
}
if (maxWidth.HasValue)
{
filename.Append(",maxwidth=");
filename.Append(maxWidth.Value);
}
if (maxHeight.HasValue)
{
filename.Append(",maxheight=");
filename.Append(maxHeight.Value);
}
if (fillWidth.HasValue)
{
filename.Append(",fillwidth=");
filename.Append(fillWidth.Value);
}
if (fillHeight.HasValue)
{
filename.Append(",fillheight=");
filename.Append(fillHeight.Value);
}
if (addPlayedIndicator)
{
filename += "pl=true";
filename.Append(",pl=true");
}
if (percentPlayed > 0)
{
filename += "p=" + percentPlayed;
filename.Append(",p=");
filename.Append(percentPlayed);
}
if (unwatchedCount.HasValue)
{
filename += "p=" + unwatchedCount.Value;
filename.Append(",p=");
filename.Append(unwatchedCount.Value);
}
if (blur.HasValue)
{
filename += "blur=" + blur.Value;
filename.Append(",blur=");
filename.Append(blur.Value);
}
if (!string.IsNullOrEmpty(backgroundColor))
{
filename += "b=" + backgroundColor;
filename.Append(",b=");
filename.Append(backgroundColor);
}
if (!string.IsNullOrEmpty(foregroundLayer))
{
filename += "fl=" + foregroundLayer;
filename.Append(",fl=");
filename.Append(foregroundLayer);
}
filename += "v=" + Version;
filename.Append(",v=");
filename.Append(Version);
return GetCachePath(ResizedImageCachePath, filename, "." + format.ToString().ToLowerInvariant());
return GetCachePath(ResizedImageCachePath, filename.ToString(), "." + format.ToString().ToLowerInvariant());
}
/// <inheritdoc />
@@ -352,8 +426,13 @@ namespace Emby.Drawing
}
/// <inheritdoc />
public string GetImageCacheTag(User user)
public string? GetImageCacheTag(User user)
{
if (user.ProfileImage == null)
{
return null;
}
return (user.ProfileImage.Path + user.ProfileImage.LastModified.Ticks).GetMD5()
.ToString("N", CultureInfo.InvariantCulture);
}

View File

@@ -32,7 +32,7 @@ namespace Emby.Drawing
=> throw new NotImplementedException();
/// <inheritdoc />
public string EncodeImage(string inputPath, DateTime dateModified, string outputPath, bool autoOrient, ImageOrientation? orientation, int quality, ImageProcessingOptions options, ImageFormat selectedOutputFormat)
public string EncodeImage(string inputPath, DateTime dateModified, string outputPath, bool autoOrient, ImageOrientation? orientation, int quality, ImageProcessingOptions options, ImageFormat outputFormat)
{
throw new NotImplementedException();
}

View File

@@ -1,7 +1,7 @@
using System;
using System.IO;
using System.Linq;
using Emby.Naming.Common;
using Jellyfin.Extensions;
namespace Emby.Naming.Audio
{
@@ -18,8 +18,8 @@ namespace Emby.Naming.Audio
/// <returns>True if file at path is audio file.</returns>
public static bool IsAudioFile(string path, NamingOptions options)
{
var extension = Path.GetExtension(path);
return options.AudioFileExtensions.Contains(extension, StringComparer.OrdinalIgnoreCase);
var extension = Path.GetExtension(path.AsSpan());
return options.AudioFileExtensions.Contains(extension, StringComparison.OrdinalIgnoreCase);
}
}
}

View File

@@ -15,13 +15,13 @@ namespace Emby.Naming.AudioBook
/// <param name="files">List of files composing the actual audiobook.</param>
/// <param name="extras">List of extra files.</param>
/// <param name="alternateVersions">Alternative version of files.</param>
public AudioBookInfo(string name, int? year, List<AudioBookFileInfo>? files, List<AudioBookFileInfo>? extras, List<AudioBookFileInfo>? alternateVersions)
public AudioBookInfo(string name, int? year, IReadOnlyList<AudioBookFileInfo> files, IReadOnlyList<AudioBookFileInfo> extras, IReadOnlyList<AudioBookFileInfo> alternateVersions)
{
Name = name;
Year = year;
Files = files ?? new List<AudioBookFileInfo>();
Extras = extras ?? new List<AudioBookFileInfo>();
AlternateVersions = alternateVersions ?? new List<AudioBookFileInfo>();
Files = files;
Extras = extras;
AlternateVersions = alternateVersions;
}
/// <summary>
@@ -39,18 +39,18 @@ namespace Emby.Naming.AudioBook
/// Gets or sets the files.
/// </summary>
/// <value>The files.</value>
public List<AudioBookFileInfo> Files { get; set; }
public IReadOnlyList<AudioBookFileInfo> Files { get; set; }
/// <summary>
/// Gets or sets the extras.
/// </summary>
/// <value>The extras.</value>
public List<AudioBookFileInfo> Extras { get; set; }
public IReadOnlyList<AudioBookFileInfo> Extras { get; set; }
/// <summary>
/// Gets or sets the alternate versions.
/// </summary>
/// <value>The alternate versions.</value>
public List<AudioBookFileInfo> AlternateVersions { get; set; }
public IReadOnlyList<AudioBookFileInfo> AlternateVersions { get; set; }
}
}

View File

@@ -73,7 +73,7 @@ namespace Emby.Naming.AudioBook
var haveChaptersOrPages = stackFiles.Any(x => x.ChapterNumber != null || x.PartNumber != null);
var groupedBy = stackFiles.GroupBy(file => new { file.ChapterNumber, file.PartNumber });
var nameWithReplacedDots = nameParserResult.Name.Replace(" ", ".");
var nameWithReplacedDots = nameParserResult.Name.Replace(' ', '.');
foreach (var group in groupedBy)
{
@@ -87,7 +87,7 @@ namespace Emby.Naming.AudioBook
foreach (var audioFile in group)
{
var name = Path.GetFileNameWithoutExtension(audioFile.Path);
if (name.Equals("audiobook") ||
if (name.Equals("audiobook", StringComparison.OrdinalIgnoreCase) ||
name.Contains(nameParserResult.Name, StringComparison.OrdinalIgnoreCase) ||
name.Contains(nameWithReplacedDots, StringComparison.OrdinalIgnoreCase))
{

View File

@@ -137,7 +137,7 @@ namespace Emby.Naming.Common
CleanStrings = new[]
{
@"[ _\,\.\(\)\[\]\-](3d|sbs|tab|hsbs|htab|mvc|HDR|HDC|UHD|UltraHD|4k|ac3|dts|custom|dc|divx|divx5|dsr|dsrip|dutch|dvd|dvdrip|dvdscr|dvdscreener|screener|dvdivx|cam|fragment|fs|hdtv|hdrip|hdtvrip|internal|limited|multisubs|ntsc|ogg|ogm|pal|pdtv|proper|repack|rerip|retail|cd[1-9]|r3|r5|bd5|bd|se|svcd|swedish|german|read.nfo|nfofix|unrated|ws|telesync|ts|telecine|tc|brrip|bdrip|480p|480i|576p|576i|720p|720i|1080p|1080i|2160p|hrhd|hrhdtv|hddvd|bluray|blu-ray|x264|x265|h264|xvid|xvidvd|xxx|www.www|AAC|DTS|\[.*\])([ _\,\.\(\)\[\]\-]|$)",
@"[ _\,\.\(\)\[\]\-](3d|sbs|tab|hsbs|htab|mvc|HDR|HDC|UHD|UltraHD|4k|ac3|dts|custom|dc|divx|divx5|dsr|dsrip|dutch|dvd|dvdrip|dvdscr|dvdscreener|screener|dvdivx|cam|fragment|fs|hdtv|hdrip|hdtvrip|internal|limited|multisubs|ntsc|ogg|ogm|pal|pdtv|proper|repack|rerip|retail|cd[1-9]|r3|r5|bd5|bd|se|svcd|swedish|german|read.nfo|nfofix|unrated|ws|telesync|ts|telecine|tc|brrip|bdrip|480p|480i|576p|576i|720p|720i|1080p|1080i|2160p|hrhd|hrhdtv|hddvd|bluray|blu-ray|x264|x265|h264|h265|xvid|xvidvd|xxx|www.www|AAC|DTS|\[.*\])([ _\,\.\(\)\[\]\-]|$)",
@"(\[.*\])"
};
@@ -277,12 +277,18 @@ namespace Emby.Naming.Common
IsNamed = true
},
new EpisodeExpression("[\\\\/\\._ \\[\\(-]([0-9]+)x([0-9]+(?:(?:[a-i]|\\.[1-9])(?![0-9]))?)([^\\\\/]*)$")
new EpisodeExpression(@"[\\\/\._ \[\(-]([0-9]+)x([0-9]+(?:(?:[a-i]|\.[1-9])(?![0-9]))?)([^\\\/]*)$")
{
SupportsAbsoluteEpisodeNumbers = true
},
// Case Closed (1996-2007)/Case Closed - 317.mkv
// Not a Kodi rule as well, but below rule also causes false positives for triple-digit episode names
// [bar] Foo - 1 [baz] special case of below expression to prevent false positives with digits in the series name
new EpisodeExpression(@".*[\\\/]?.*?(\[.*?\])+.*?(?<seriesname>[-\w\s]+?)[\s_]*-[\s_]*(?<epnumber>[0-9]+).*$")
{
IsNamed = true
},
// /server/anything_102.mp4
// /server/james.corden.2017.04.20.anne.hathaway.720p.hdtv.x264-crooks.mkv
// /server/anything_1996.11.14.mp4
@@ -299,11 +305,12 @@ namespace Emby.Naming.Common
// *** End Kodi Standard Naming
// [bar] Foo - 1 [baz]
new EpisodeExpression(@".*?(\[.*?\])+.*?(?<seriesname>[\w\s]+?)[-\s_]+(?<epnumber>[0-9]+).*$")
// "Episode 16", "Episode 16 - Title"
new EpisodeExpression(@"[Ee]pisode (?<epnumber>[0-9]+)(-(?<endingepnumber>[0-9]+))?[^\\\/]*$")
{
IsNamed = true
},
new EpisodeExpression(@".*(\\|\/)[sS]?(?<seasonnumber>[0-9]+)[xX](?<epnumber>[0-9]+)[^\\\/]*$")
{
IsNamed = true
@@ -361,12 +368,6 @@ namespace Emby.Naming.Common
IsOptimistic = true,
IsNamed = true
},
// "Episode 16", "Episode 16 - Title"
new EpisodeExpression(@".*[\\\/][^\\\/]* (?<epnumber>[0-9]{1,3})(-(?<endingepnumber>[0-9]{2,3}))*[^\\\/]*$")
{
IsOptimistic = true,
IsNamed = true
}
};
EpisodeWithoutSeasonExpressions = new[]
@@ -587,7 +588,7 @@ namespace Emby.Naming.Common
AudioBookNamesExpressions = new[]
{
// Detect year usually in brackets after name Batman (2020)
@"^(?<name>.+?)\s*\(\s*(?<year>\d{4})\s*\)\s*$",
@"^(?<name>.+?)\s*\(\s*(?<year>[0-9]{4})\s*\)\s*$",
@"^\s*(?<name>[^ ].*?)\s*$"
};

View File

@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<!-- ProjectGuid is only included as a requirement for SonarQube analysis -->
<PropertyGroup>
@@ -9,12 +9,11 @@
<TargetFramework>net5.0</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Nullable>enable</Nullable>
<AnalysisMode>AllDisabledByDefault</AnalysisMode>
</PropertyGroup>
<PropertyGroup Condition=" '$(Stability)'=='Unstable'">
@@ -23,17 +22,18 @@
</PropertyGroup>
<ItemGroup>
<Compile Include="..\SharedVersion.cs" />
<Compile Include="../SharedVersion.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MediaBrowser.Model\MediaBrowser.Model.csproj" />
<ProjectReference Include="../MediaBrowser.Common/MediaBrowser.Common.csproj" />
<ProjectReference Include="../MediaBrowser.Model/MediaBrowser.Model.csproj" />
</ItemGroup>
<PropertyGroup>
<Authors>Jellyfin Contributors</Authors>
<PackageId>Jellyfin.Naming</PackageId>
<VersionPrefix>10.7.0</VersionPrefix>
<VersionPrefix>10.8.0</VersionPrefix>
<RepositoryUrl>https://github.com/jellyfin/jellyfin</RepositoryUrl>
<PackageLicenseExpression>GPL-3.0-only</PackageLicenseExpression>
</PropertyGroup>
@@ -44,14 +44,9 @@
<!-- Code Analyzers-->
<ItemGroup Condition=" '$(Configuration)' == 'Debug' ">
<!-- TODO: <PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.8" PrivateAssets="All" /> -->
<PackageReference Include="SerilogAnalyzer" Version="0.15.0" PrivateAssets="All" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" PrivateAssets="All" />
<PackageReference Include="SmartAnalyzers.MultithreadingAnalyzer" Version="1.1.31" PrivateAssets="All" />
</ItemGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<CodeAnalysisRuleSet>../jellyfin.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
</Project>

View File

@@ -16,7 +16,7 @@ namespace Emby.Naming.TV
/// <summary>
/// Initializes a new instance of the <see cref="EpisodeResolver"/> class.
/// </summary>
/// <param name="options"><see cref="NamingOptions"/> object containing VideoFileExtensions and passed to <see cref="StubResolver"/>, <see cref="FlagParser"/>, <see cref="Format3DParser"/> and <see cref="EpisodePathParser"/>.</param>
/// <param name="options"><see cref="NamingOptions"/> object containing VideoFileExtensions and passed to <see cref="StubResolver"/>, <see cref="Format3DParser"/> and <see cref="EpisodePathParser"/>.</param>
public EpisodeResolver(NamingOptions options)
{
_options = options;
@@ -62,12 +62,16 @@ namespace Emby.Naming.TV
container = extension.TrimStart('.');
}
var flags = new FlagParser(_options).GetFlags(path);
var format3DResult = new Format3DParser(_options).Parse(flags);
var format3DResult = Format3DParser.Parse(path, _options);
var parsingResult = new EpisodePathParser(_options)
.Parse(path, isDirectory, isNamed, isOptimistic, supportsAbsoluteNumbers, fillExtendedInfo);
if (!parsingResult.Success && !isStub)
{
return null;
}
return new EpisodeInfo(path)
{
Container = container,

View File

@@ -60,7 +60,7 @@ namespace Emby.Naming.TV
bool supportSpecialAliases,
bool supportNumericSeasonFolders)
{
var filename = Path.GetFileName(path) ?? string.Empty;
string filename = Path.GetFileName(path);
if (supportSpecialAliases)
{

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Text.RegularExpressions;
namespace Emby.Naming.Video
@@ -16,8 +17,14 @@ namespace Emby.Naming.Video
/// <param name="expressions">List of regex to parse name and year from.</param>
/// <param name="newName">Parsing result string.</param>
/// <returns>True if parsing was successful.</returns>
public static bool TryClean(string name, IReadOnlyList<Regex> expressions, out ReadOnlySpan<char> newName)
public static bool TryClean([NotNullWhen(true)] string? name, IReadOnlyList<Regex> expressions, out ReadOnlySpan<char> newName)
{
if (string.IsNullOrEmpty(name))
{
newName = ReadOnlySpan<char>.Empty;
return false;
}
var len = expressions.Count;
for (int i = 0; i < len; i++)
{
@@ -41,7 +48,7 @@ namespace Emby.Naming.Video
return true;
}
newName = string.Empty;
newName = ReadOnlySpan<char>.Empty;
return false;
}
}

View File

@@ -1,6 +1,5 @@
using System;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using Emby.Naming.Audio;
using Emby.Naming.Common;
@@ -29,72 +28,75 @@ namespace Emby.Naming.Video
/// <param name="path">Path to file.</param>
/// <returns>Returns <see cref="ExtraResult"/> object.</returns>
public ExtraResult GetExtraInfo(string path)
{
return _options.VideoExtraRules
.Select(i => GetExtraInfo(path, i))
.FirstOrDefault(i => i.ExtraType != null) ?? new ExtraResult();
}
private ExtraResult GetExtraInfo(string path, ExtraRule rule)
{
var result = new ExtraResult();
if (rule.MediaType == MediaType.Audio)
for (var i = 0; i < _options.VideoExtraRules.Length; i++)
{
if (!AudioFileParser.IsAudioFile(path, _options))
var rule = _options.VideoExtraRules[i];
if (rule.MediaType == MediaType.Audio)
{
if (!AudioFileParser.IsAudioFile(path, _options))
{
continue;
}
}
else if (rule.MediaType == MediaType.Video)
{
if (!VideoResolver.IsVideoFile(path, _options))
{
continue;
}
}
var pathSpan = path.AsSpan();
if (rule.RuleType == ExtraRuleType.Filename)
{
var filename = Path.GetFileNameWithoutExtension(pathSpan);
if (filename.Equals(rule.Token, StringComparison.OrdinalIgnoreCase))
{
result.ExtraType = rule.ExtraType;
result.Rule = rule;
}
}
else if (rule.RuleType == ExtraRuleType.Suffix)
{
var filename = Path.GetFileNameWithoutExtension(pathSpan);
if (filename.Contains(rule.Token, StringComparison.OrdinalIgnoreCase))
{
result.ExtraType = rule.ExtraType;
result.Rule = rule;
}
}
else if (rule.RuleType == ExtraRuleType.Regex)
{
var filename = Path.GetFileName(path);
var regex = new Regex(rule.Token, RegexOptions.IgnoreCase);
if (regex.IsMatch(filename))
{
result.ExtraType = rule.ExtraType;
result.Rule = rule;
}
}
else if (rule.RuleType == ExtraRuleType.DirectoryName)
{
var directoryName = Path.GetFileName(Path.GetDirectoryName(pathSpan));
if (directoryName.Equals(rule.Token, StringComparison.OrdinalIgnoreCase))
{
result.ExtraType = rule.ExtraType;
result.Rule = rule;
}
}
if (result.ExtraType != null)
{
return result;
}
}
else if (rule.MediaType == MediaType.Video)
{
if (!new VideoResolver(_options).IsVideoFile(path))
{
return result;
}
}
if (rule.RuleType == ExtraRuleType.Filename)
{
var filename = Path.GetFileNameWithoutExtension(path);
if (string.Equals(filename, rule.Token, StringComparison.OrdinalIgnoreCase))
{
result.ExtraType = rule.ExtraType;
result.Rule = rule;
}
}
else if (rule.RuleType == ExtraRuleType.Suffix)
{
var filename = Path.GetFileNameWithoutExtension(path);
if (filename.IndexOf(rule.Token, StringComparison.OrdinalIgnoreCase) > 0)
{
result.ExtraType = rule.ExtraType;
result.Rule = rule;
}
}
else if (rule.RuleType == ExtraRuleType.Regex)
{
var filename = Path.GetFileName(path);
var regex = new Regex(rule.Token, RegexOptions.IgnoreCase);
if (regex.IsMatch(filename))
{
result.ExtraType = rule.ExtraType;
result.Rule = rule;
}
}
else if (rule.RuleType == ExtraRuleType.DirectoryName)
{
var directoryName = Path.GetFileName(Path.GetDirectoryName(path));
if (string.Equals(directoryName, rule.Token, StringComparison.OrdinalIgnoreCase))
{
result.ExtraType = rule.ExtraType;
result.Rule = rule;
}
}
return result;
}

View File

@@ -1,53 +0,0 @@
using System;
using System.IO;
using Emby.Naming.Common;
namespace Emby.Naming.Video
{
/// <summary>
/// Parses list of flags from filename based on delimiters.
/// </summary>
public class FlagParser
{
private readonly NamingOptions _options;
/// <summary>
/// Initializes a new instance of the <see cref="FlagParser"/> class.
/// </summary>
/// <param name="options"><see cref="NamingOptions"/> object containing VideoFlagDelimiters.</param>
public FlagParser(NamingOptions options)
{
_options = options;
}
/// <summary>
/// Calls GetFlags function with _options.VideoFlagDelimiters parameter.
/// </summary>
/// <param name="path">Path to file.</param>
/// <returns>List of found flags.</returns>
public string[] GetFlags(string path)
{
return GetFlags(path, _options.VideoFlagDelimiters);
}
/// <summary>
/// Parses flags from filename based on delimiters.
/// </summary>
/// <param name="path">Path to file.</param>
/// <param name="delimiters">Delimiters used to extract flags.</param>
/// <returns>List of found flags.</returns>
public string[] GetFlags(string path, char[] delimiters)
{
if (string.IsNullOrEmpty(path))
{
return Array.Empty<string>();
}
// Note: the tags need be be surrounded be either a space ( ), hyphen -, dot . or underscore _.
var file = Path.GetFileName(path);
return file.Split(delimiters, StringSplitOptions.RemoveEmptyEntries);
}
}
}

View File

@@ -1,45 +1,37 @@
using System;
using System.Linq;
using Emby.Naming.Common;
namespace Emby.Naming.Video
{
/// <summary>
/// Parste 3D format related flags.
/// Parse 3D format related flags.
/// </summary>
public class Format3DParser
public static class Format3DParser
{
private readonly NamingOptions _options;
/// <summary>
/// Initializes a new instance of the <see cref="Format3DParser"/> class.
/// </summary>
/// <param name="options"><see cref="NamingOptions"/> object containing VideoFlagDelimiters and passes options to <see cref="FlagParser"/>.</param>
public Format3DParser(NamingOptions options)
{
_options = options;
}
// Static default result to save on allocation costs.
private static readonly Format3DResult _defaultResult = new (false, null);
/// <summary>
/// Parse 3D format related flags.
/// </summary>
/// <param name="path">Path to file.</param>
/// <param name="namingOptions">The naming options.</param>
/// <returns>Returns <see cref="Format3DResult"/> object.</returns>
public Format3DResult Parse(string path)
public static Format3DResult Parse(ReadOnlySpan<char> path, NamingOptions namingOptions)
{
int oldLen = _options.VideoFlagDelimiters.Length;
var delimiters = new char[oldLen + 1];
_options.VideoFlagDelimiters.CopyTo(delimiters, 0);
int oldLen = namingOptions.VideoFlagDelimiters.Length;
Span<char> delimiters = stackalloc char[oldLen + 1];
namingOptions.VideoFlagDelimiters.AsSpan().CopyTo(delimiters);
delimiters[oldLen] = ' ';
return Parse(new FlagParser(_options).GetFlags(path, delimiters));
return Parse(path, delimiters, namingOptions);
}
internal Format3DResult Parse(string[] videoFlags)
private static Format3DResult Parse(ReadOnlySpan<char> path, ReadOnlySpan<char> delimiters, NamingOptions namingOptions)
{
foreach (var rule in _options.Format3DRules)
foreach (var rule in namingOptions.Format3DRules)
{
var result = Parse(videoFlags, rule);
var result = Parse(path, rule, delimiters);
if (result.Is3D)
{
@@ -47,51 +39,43 @@ namespace Emby.Naming.Video
}
}
return new Format3DResult();
return _defaultResult;
}
private static Format3DResult Parse(string[] videoFlags, Format3DRule rule)
private static Format3DResult Parse(ReadOnlySpan<char> path, Format3DRule rule, ReadOnlySpan<char> delimiters)
{
var result = new Format3DResult();
bool is3D = false;
string? format3D = null;
if (string.IsNullOrEmpty(rule.PrecedingToken))
// If there's no preceding token we just consider it found
var foundPrefix = string.IsNullOrEmpty(rule.PrecedingToken);
while (path.Length > 0)
{
result.Format3D = new[] { rule.Token }.FirstOrDefault(i => videoFlags.Contains(i, StringComparer.OrdinalIgnoreCase));
result.Is3D = !string.IsNullOrEmpty(result.Format3D);
if (result.Is3D)
var index = path.IndexOfAny(delimiters);
if (index == -1)
{
result.Tokens.Add(rule.Token);
}
}
else
{
var foundPrefix = false;
string? format = null;
foreach (var flag in videoFlags)
{
if (foundPrefix)
{
result.Tokens.Add(rule.PrecedingToken);
if (string.Equals(rule.Token, flag, StringComparison.OrdinalIgnoreCase))
{
format = flag;
result.Tokens.Add(rule.Token);
}
break;
}
foundPrefix = string.Equals(flag, rule.PrecedingToken, StringComparison.OrdinalIgnoreCase);
index = path.Length - 1;
}
result.Is3D = foundPrefix && !string.IsNullOrEmpty(format);
result.Format3D = format;
var currentSlice = path[..index];
path = path[(index + 1)..];
if (!foundPrefix)
{
foundPrefix = currentSlice.Equals(rule.PrecedingToken, StringComparison.OrdinalIgnoreCase);
continue;
}
is3D = foundPrefix && currentSlice.Equals(rule.Token, StringComparison.OrdinalIgnoreCase);
if (is3D)
{
format3D = rule.Token;
break;
}
}
return result;
return is3D ? new Format3DResult(true, format3D) : _defaultResult;
}
}
}

View File

@@ -1,5 +1,3 @@
using System.Collections.Generic;
namespace Emby.Naming.Video
{
/// <summary>
@@ -10,27 +8,24 @@ namespace Emby.Naming.Video
/// <summary>
/// Initializes a new instance of the <see cref="Format3DResult"/> class.
/// </summary>
public Format3DResult()
/// <param name="is3D">A value indicating whether the parsed string contains 3D tokens.</param>
/// <param name="format3D">The 3D format. Value might be null if [is3D] is <c>false</c>.</param>
public Format3DResult(bool is3D, string? format3D)
{
Tokens = new List<string>();
Is3D = is3D;
Format3D = format3D;
}
/// <summary>
/// Gets or sets a value indicating whether [is3 d].
/// Gets a value indicating whether [is3 d].
/// </summary>
/// <value><c>true</c> if [is3 d]; otherwise, <c>false</c>.</value>
public bool Is3D { get; set; }
public bool Is3D { get; }
/// <summary>
/// Gets or sets the format3 d.
/// Gets the format3 d.
/// </summary>
/// <value>The format3 d.</value>
public string? Format3D { get; set; }
/// <summary>
/// Gets or sets the tokens.
/// </summary>
/// <value>The tokens.</value>
public List<string> Tokens { get; set; }
public string? Format3D { get; }
}
}

View File

@@ -85,10 +85,8 @@ namespace Emby.Naming.Video
/// <returns>Enumerable <see cref="FileStack"/> of videos.</returns>
public IEnumerable<FileStack> Resolve(IEnumerable<FileSystemMetadata> files)
{
var resolver = new VideoResolver(_options);
var list = files
.Where(i => i.IsDirectory || resolver.IsVideoFile(i.FullName) || resolver.IsStubFile(i.FullName))
.Where(i => i.IsDirectory || VideoResolver.IsVideoFile(i.FullName, _options) || VideoResolver.IsStubFile(i.FullName, _options))
.OrderBy(i => i.FullName)
.ToList();

View File

@@ -1,3 +1,4 @@
using System;
using MediaBrowser.Model.Entities;
namespace Emby.Naming.Video
@@ -106,9 +107,9 @@ namespace Emby.Naming.Video
/// Gets the file name without extension.
/// </summary>
/// <value>The file name without extension.</value>
public string FileNameWithoutExtension => !IsDirectory
? System.IO.Path.GetFileNameWithoutExtension(Path)
: System.IO.Path.GetFileName(Path);
public ReadOnlySpan<char> FileNameWithoutExtension => !IsDirectory
? System.IO.Path.GetFileNameWithoutExtension(Path.AsSpan())
: System.IO.Path.GetFileName(Path.AsSpan());
/// <inheritdoc />
public override string ToString()

View File

@@ -12,31 +12,19 @@ namespace Emby.Naming.Video
/// <summary>
/// Resolves alternative versions and extras from list of video files.
/// </summary>
public class VideoListResolver
public static class VideoListResolver
{
private readonly NamingOptions _options;
/// <summary>
/// Initializes a new instance of the <see cref="VideoListResolver"/> class.
/// </summary>
/// <param name="options"><see cref="NamingOptions"/> object containing CleanStringRegexes and VideoFlagDelimiters and passes options to <see cref="StackResolver"/> and <see cref="VideoResolver"/>.</param>
public VideoListResolver(NamingOptions options)
{
_options = options;
}
/// <summary>
/// Resolves alternative versions and extras from list of video files.
/// </summary>
/// <param name="files">List of related video files.</param>
/// <param name="namingOptions">The naming options.</param>
/// <param name="supportMultiVersion">Indication we should consider multi-versions of content.</param>
/// <returns>Returns enumerable of <see cref="VideoInfo"/> which groups files together when related.</returns>
public IEnumerable<VideoInfo> Resolve(List<FileSystemMetadata> files, bool supportMultiVersion = true)
public static IEnumerable<VideoInfo> Resolve(IEnumerable<FileSystemMetadata> files, NamingOptions namingOptions, bool supportMultiVersion = true)
{
var videoResolver = new VideoResolver(_options);
var videoInfos = files
.Select(i => videoResolver.Resolve(i.FullName, i.IsDirectory))
.Select(i => VideoResolver.Resolve(i.FullName, i.IsDirectory, namingOptions))
.OfType<VideoFileInfo>()
.ToList();
@@ -46,7 +34,7 @@ namespace Emby.Naming.Video
.Where(i => i.ExtraType == null)
.Select(i => new FileSystemMetadata { FullName = i.Path, IsDirectory = i.IsDirectory });
var stackResult = new StackResolver(_options)
var stackResult = new StackResolver(namingOptions)
.Resolve(nonExtras).ToList();
var remainingFiles = videoInfos
@@ -59,23 +47,17 @@ namespace Emby.Naming.Video
{
var info = new VideoInfo(stack.Name)
{
Files = stack.Files.Select(i => videoResolver.Resolve(i, stack.IsDirectoryStack))
Files = stack.Files.Select(i => VideoResolver.Resolve(i, stack.IsDirectoryStack, namingOptions))
.OfType<VideoFileInfo>()
.ToList()
};
info.Year = info.Files[0].Year;
var extraBaseNames = new List<string> { stack.Name, Path.GetFileNameWithoutExtension(stack.Files[0]) };
var extras = GetExtras(remainingFiles, extraBaseNames);
var extras = ExtractExtras(remainingFiles, stack.Name, Path.GetFileNameWithoutExtension(stack.Files[0].AsSpan()), namingOptions.VideoFlagDelimiters);
if (extras.Count > 0)
{
remainingFiles = remainingFiles
.Except(extras)
.ToList();
info.Extras = extras;
}
@@ -88,15 +70,12 @@ namespace Emby.Naming.Video
foreach (var media in standaloneMedia)
{
var info = new VideoInfo(media.Name) { Files = new List<VideoFileInfo> { media } };
var info = new VideoInfo(media.Name) { Files = new[] { media } };
info.Year = info.Files[0].Year;
var extras = GetExtras(remainingFiles, new List<string> { media.FileNameWithoutExtension });
remainingFiles = remainingFiles
.Except(extras.Concat(new[] { media }))
.ToList();
remainingFiles.Remove(media);
var extras = ExtractExtras(remainingFiles, media.FileNameWithoutExtension, namingOptions.VideoFlagDelimiters);
info.Extras = extras;
@@ -105,8 +84,7 @@ namespace Emby.Naming.Video
if (supportMultiVersion)
{
list = GetVideosGroupedByVersion(list)
.ToList();
list = GetVideosGroupedByVersion(list, namingOptions);
}
// If there's only one resolved video, use the folder name as well to find extras
@@ -114,19 +92,14 @@ namespace Emby.Naming.Video
{
var info = list[0];
var videoPath = list[0].Files[0].Path;
var parentPath = Path.GetDirectoryName(videoPath);
var parentPath = Path.GetDirectoryName(videoPath.AsSpan());
if (!string.IsNullOrEmpty(parentPath))
if (!parentPath.IsEmpty)
{
var folderName = Path.GetFileName(parentPath);
if (!string.IsNullOrEmpty(folderName))
if (!folderName.IsEmpty)
{
var extras = GetExtras(remainingFiles, new List<string> { folderName });
remainingFiles = remainingFiles
.Except(extras)
.ToList();
var extras = ExtractExtras(remainingFiles, folderName, namingOptions.VideoFlagDelimiters);
extras.AddRange(info.Extras);
info.Extras = extras;
}
@@ -164,96 +137,168 @@ namespace Emby.Naming.Video
// Whatever files are left, just add them
list.AddRange(remainingFiles.Select(i => new VideoInfo(i.Name)
{
Files = new List<VideoFileInfo> { i },
Files = new[] { i },
Year = i.Year
}));
return list;
}
private IEnumerable<VideoInfo> GetVideosGroupedByVersion(List<VideoInfo> videos)
private static List<VideoInfo> GetVideosGroupedByVersion(List<VideoInfo> videos, NamingOptions namingOptions)
{
if (videos.Count == 0)
{
return videos;
}
var list = new List<VideoInfo>();
var folderName = Path.GetFileName(Path.GetDirectoryName(videos[0].Files[0].Path.AsSpan()));
var folderName = Path.GetFileName(Path.GetDirectoryName(videos[0].Files[0].Path));
if (!string.IsNullOrEmpty(folderName)
&& folderName.Length > 1
&& videos.All(i => i.Files.Count == 1
&& IsEligibleForMultiVersion(folderName, i.Files[0].Path))
&& HaveSameYear(videos))
if (folderName.Length <= 1 || !HaveSameYear(videos))
{
var ordered = videos.OrderBy(i => i.Name).ToList();
list.Add(ordered[0]);
var alternateVersionsLen = ordered.Count - 1;
var alternateVersions = new VideoFileInfo[alternateVersionsLen];
for (int i = 0; i < alternateVersionsLen; i++)
{
alternateVersions[i] = ordered[i + 1].Files[0];
}
list[0].AlternateVersions = alternateVersions;
list[0].Name = folderName;
var extras = ordered.Skip(1).SelectMany(i => i.Extras).ToList();
extras.AddRange(list[0].Extras);
list[0].Extras = extras;
return list;
return videos;
}
return videos;
}
private bool HaveSameYear(List<VideoInfo> videos)
{
return videos.Select(i => i.Year ?? -1).Distinct().Count() < 2;
}
private bool IsEligibleForMultiVersion(string folderName, string? testFilename)
{
testFilename = Path.GetFileNameWithoutExtension(testFilename) ?? string.Empty;
if (testFilename.StartsWith(folderName, StringComparison.OrdinalIgnoreCase))
// Cannot use Span inside local functions and delegates thus we cannot use LINQ here nor merge with the above [if]
for (var i = 0; i < videos.Count; i++)
{
if (CleanStringParser.TryClean(testFilename, _options.CleanStringRegexes, out var cleanName))
var video = videos[i];
if (!IsEligibleForMultiVersion(folderName, video.Files[0].Path, namingOptions))
{
testFilename = cleanName.ToString();
return videos;
}
if (folderName.Length <= testFilename.Length)
{
testFilename = testFilename.Substring(folderName.Length).Trim();
}
return string.IsNullOrEmpty(testFilename)
|| testFilename[0].Equals('-')
|| testFilename[0].Equals('_')
|| string.IsNullOrWhiteSpace(Regex.Replace(testFilename, @"\[([^]]*)\]", string.Empty));
}
return false;
}
// The list is created and overwritten in the caller, so we are allowed to do in-place sorting
videos.Sort((x, y) => string.Compare(x.Name, y.Name, StringComparison.Ordinal));
private List<VideoFileInfo> GetExtras(IEnumerable<VideoFileInfo> remainingFiles, List<string> baseNames)
{
foreach (var name in baseNames.ToList())
var list = new List<VideoInfo>
{
var trimmedName = name.TrimEnd().TrimEnd(_options.VideoFlagDelimiters).TrimEnd();
baseNames.Add(trimmedName);
videos[0]
};
var alternateVersionsLen = videos.Count - 1;
var alternateVersions = new VideoFileInfo[alternateVersionsLen];
var extras = new List<VideoFileInfo>(list[0].Extras);
for (int i = 0; i < alternateVersionsLen; i++)
{
var video = videos[i + 1];
alternateVersions[i] = video.Files[0];
extras.AddRange(video.Extras);
}
return remainingFiles
.Where(i => i.ExtraType != null)
.Where(i => baseNames.Any(b =>
i.FileNameWithoutExtension.StartsWith(b, StringComparison.OrdinalIgnoreCase)))
.ToList();
list[0].AlternateVersions = alternateVersions;
list[0].Name = folderName.ToString();
list[0].Extras = extras;
return list;
}
private static bool HaveSameYear(IReadOnlyList<VideoInfo> videos)
{
if (videos.Count == 1)
{
return true;
}
var firstYear = videos[0].Year ?? -1;
for (var i = 1; i < videos.Count; i++)
{
if ((videos[i].Year ?? -1) != firstYear)
{
return false;
}
}
return true;
}
private static bool IsEligibleForMultiVersion(ReadOnlySpan<char> folderName, string testFilePath, NamingOptions namingOptions)
{
var testFilename = Path.GetFileNameWithoutExtension(testFilePath.AsSpan());
if (!testFilename.StartsWith(folderName, StringComparison.OrdinalIgnoreCase))
{
return false;
}
// Remove the folder name before cleaning as we don't care about cleaning that part
if (folderName.Length <= testFilename.Length)
{
testFilename = testFilename[folderName.Length..].Trim();
}
// There are no span overloads for regex unfortunately
var tmpTestFilename = testFilename.ToString();
if (CleanStringParser.TryClean(tmpTestFilename, namingOptions.CleanStringRegexes, out var cleanName))
{
tmpTestFilename = cleanName.Trim().ToString();
}
// The CleanStringParser should have removed common keywords etc.
return string.IsNullOrEmpty(tmpTestFilename)
|| testFilename[0] == '-'
|| Regex.IsMatch(tmpTestFilename, @"^\[([^]]*)\]", RegexOptions.Compiled);
}
private static ReadOnlySpan<char> TrimFilenameDelimiters(ReadOnlySpan<char> name, ReadOnlySpan<char> videoFlagDelimiters)
{
return name.IsEmpty ? name : name.TrimEnd().TrimEnd(videoFlagDelimiters).TrimEnd();
}
private static bool StartsWith(ReadOnlySpan<char> fileName, ReadOnlySpan<char> baseName, ReadOnlySpan<char> trimmedBaseName)
{
if (baseName.IsEmpty)
{
return false;
}
return fileName.StartsWith(baseName, StringComparison.OrdinalIgnoreCase)
|| (!trimmedBaseName.IsEmpty && fileName.StartsWith(trimmedBaseName, StringComparison.OrdinalIgnoreCase));
}
/// <summary>
/// Finds similar filenames to that of [baseName] and removes any matches from [remainingFiles].
/// </summary>
/// <param name="remainingFiles">The list of remaining filenames.</param>
/// <param name="baseName">The base name to use for the comparison.</param>
/// <param name="videoFlagDelimiters">The video flag delimiters.</param>
/// <returns>A list of video extras for [baseName].</returns>
private static List<VideoFileInfo> ExtractExtras(IList<VideoFileInfo> remainingFiles, ReadOnlySpan<char> baseName, ReadOnlySpan<char> videoFlagDelimiters)
{
return ExtractExtras(remainingFiles, baseName, ReadOnlySpan<char>.Empty, videoFlagDelimiters);
}
/// <summary>
/// Finds similar filenames to that of [firstBaseName] and [secondBaseName] and removes any matches from [remainingFiles].
/// </summary>
/// <param name="remainingFiles">The list of remaining filenames.</param>
/// <param name="firstBaseName">The first base name to use for the comparison.</param>
/// <param name="secondBaseName">The second base name to use for the comparison.</param>
/// <param name="videoFlagDelimiters">The video flag delimiters.</param>
/// <returns>A list of video extras for [firstBaseName] and [secondBaseName].</returns>
private static List<VideoFileInfo> ExtractExtras(IList<VideoFileInfo> remainingFiles, ReadOnlySpan<char> firstBaseName, ReadOnlySpan<char> secondBaseName, ReadOnlySpan<char> videoFlagDelimiters)
{
var trimmedFirstBaseName = TrimFilenameDelimiters(firstBaseName, videoFlagDelimiters);
var trimmedSecondBaseName = TrimFilenameDelimiters(secondBaseName, videoFlagDelimiters);
var result = new List<VideoFileInfo>();
for (var pos = remainingFiles.Count - 1; pos >= 0; pos--)
{
var file = remainingFiles[pos];
if (file.ExtraType == null)
{
continue;
}
var filename = file.FileNameWithoutExtension;
if (StartsWith(filename, firstBaseName, trimmedFirstBaseName)
|| StartsWith(filename, secondBaseName, trimmedSecondBaseName))
{
result.Add(file);
remainingFiles.RemoveAt(pos);
}
}
return result;
}
}
}

View File

@@ -1,45 +1,36 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Linq;
using Emby.Naming.Common;
using Jellyfin.Extensions;
namespace Emby.Naming.Video
{
/// <summary>
/// Resolves <see cref="VideoFileInfo"/> from file path.
/// </summary>
public class VideoResolver
public static class VideoResolver
{
private readonly NamingOptions _options;
/// <summary>
/// Initializes a new instance of the <see cref="VideoResolver"/> class.
/// </summary>
/// <param name="options"><see cref="NamingOptions"/> object containing VideoFileExtensions, StubFileExtensions, CleanStringRegexes and CleanDateTimeRegexes
/// and passes options in <see cref="StubResolver"/>, <see cref="FlagParser"/>, <see cref="Format3DParser"/> and <see cref="ExtraResolver"/>.</param>
public VideoResolver(NamingOptions options)
{
_options = options;
}
/// <summary>
/// Resolves the directory.
/// </summary>
/// <param name="path">The path.</param>
/// <param name="namingOptions">The naming options.</param>
/// <returns>VideoFileInfo.</returns>
public VideoFileInfo? ResolveDirectory(string? path)
public static VideoFileInfo? ResolveDirectory(string? path, NamingOptions namingOptions)
{
return Resolve(path, true);
return Resolve(path, true, namingOptions);
}
/// <summary>
/// Resolves the file.
/// </summary>
/// <param name="path">The path.</param>
/// <param name="namingOptions">The naming options.</param>
/// <returns>VideoFileInfo.</returns>
public VideoFileInfo? ResolveFile(string? path)
public static VideoFileInfo? ResolveFile(string? path, NamingOptions namingOptions)
{
return Resolve(path, false);
return Resolve(path, false, namingOptions);
}
/// <summary>
@@ -47,10 +38,11 @@ namespace Emby.Naming.Video
/// </summary>
/// <param name="path">The path.</param>
/// <param name="isDirectory">if set to <c>true</c> [is folder].</param>
/// <param name="namingOptions">The naming options.</param>
/// <param name="parseName">Whether or not the name should be parsed for info.</param>
/// <returns>VideoFileInfo.</returns>
/// <exception cref="ArgumentNullException"><c>path</c> is <c>null</c>.</exception>
public VideoFileInfo? Resolve(string? path, bool isDirectory, bool parseName = true)
public static VideoFileInfo? Resolve(string? path, bool isDirectory, NamingOptions namingOptions, bool parseName = true)
{
if (string.IsNullOrEmpty(path))
{
@@ -58,18 +50,18 @@ namespace Emby.Naming.Video
}
bool isStub = false;
string? container = null;
ReadOnlySpan<char> container = ReadOnlySpan<char>.Empty;
string? stubType = null;
if (!isDirectory)
{
var extension = Path.GetExtension(path);
var extension = Path.GetExtension(path.AsSpan());
// Check supported extensions
if (!_options.VideoFileExtensions.Contains(extension, StringComparer.OrdinalIgnoreCase))
if (!namingOptions.VideoFileExtensions.Contains(extension, StringComparison.OrdinalIgnoreCase))
{
// It's not supported. Check stub extensions
if (!StubResolver.TryResolveFile(path, _options, out stubType))
if (!StubResolver.TryResolveFile(path, namingOptions, out stubType))
{
return null;
}
@@ -80,25 +72,22 @@ namespace Emby.Naming.Video
container = extension.TrimStart('.');
}
var flags = new FlagParser(_options).GetFlags(path);
var format3DResult = new Format3DParser(_options).Parse(flags);
var format3DResult = Format3DParser.Parse(path, namingOptions);
var extraResult = new ExtraResolver(_options).GetExtraInfo(path);
var extraResult = new ExtraResolver(namingOptions).GetExtraInfo(path);
var name = isDirectory
? Path.GetFileName(path)
: Path.GetFileNameWithoutExtension(path);
var name = Path.GetFileNameWithoutExtension(path);
int? year = null;
if (parseName)
{
var cleanDateTimeResult = CleanDateTime(name);
var cleanDateTimeResult = CleanDateTime(name, namingOptions);
name = cleanDateTimeResult.Name;
year = cleanDateTimeResult.Year;
if (extraResult.ExtraType == null
&& TryCleanString(name, out ReadOnlySpan<char> newName))
&& TryCleanString(name, namingOptions, out ReadOnlySpan<char> newName))
{
name = newName.ToString();
}
@@ -106,7 +95,7 @@ namespace Emby.Naming.Video
return new VideoFileInfo(
path: path,
container: container,
container: container.IsEmpty ? null : container.ToString(),
isStub: isStub,
name: name,
year: year,
@@ -122,43 +111,47 @@ namespace Emby.Naming.Video
/// Determines if path is video file based on extension.
/// </summary>
/// <param name="path">Path to file.</param>
/// <param name="namingOptions">The naming options.</param>
/// <returns>True if is video file.</returns>
public bool IsVideoFile(string path)
public static bool IsVideoFile(string path, NamingOptions namingOptions)
{
var extension = Path.GetExtension(path) ?? string.Empty;
return _options.VideoFileExtensions.Contains(extension, StringComparer.OrdinalIgnoreCase);
var extension = Path.GetExtension(path.AsSpan());
return namingOptions.VideoFileExtensions.Contains(extension, StringComparison.OrdinalIgnoreCase);
}
/// <summary>
/// Determines if path is video file stub based on extension.
/// </summary>
/// <param name="path">Path to file.</param>
/// <param name="namingOptions">The naming options.</param>
/// <returns>True if is video file stub.</returns>
public bool IsStubFile(string path)
public static bool IsStubFile(string path, NamingOptions namingOptions)
{
var extension = Path.GetExtension(path) ?? string.Empty;
return _options.StubFileExtensions.Contains(extension, StringComparer.OrdinalIgnoreCase);
var extension = Path.GetExtension(path.AsSpan());
return namingOptions.StubFileExtensions.Contains(extension, StringComparison.OrdinalIgnoreCase);
}
/// <summary>
/// Tries to clean name of clutter.
/// </summary>
/// <param name="name">Raw name.</param>
/// <param name="namingOptions">The naming options.</param>
/// <param name="newName">Clean name.</param>
/// <returns>True if cleaning of name was successful.</returns>
public bool TryCleanString(string name, out ReadOnlySpan<char> newName)
public static bool TryCleanString([NotNullWhen(true)] string? name, NamingOptions namingOptions, out ReadOnlySpan<char> newName)
{
return CleanStringParser.TryClean(name, _options.CleanStringRegexes, out newName);
return CleanStringParser.TryClean(name, namingOptions.CleanStringRegexes, out newName);
}
/// <summary>
/// Tries to get name and year from raw name.
/// </summary>
/// <param name="name">Raw name.</param>
/// <param name="namingOptions">The naming options.</param>
/// <returns>Returns <see cref="CleanDateTimeResult"/> with name and optional year.</returns>
public CleanDateTimeResult CleanDateTime(string name)
public static CleanDateTimeResult CleanDateTime(string name, NamingOptions namingOptions)
{
return CleanDateTimeParser.Clean(name, _options.CleanDateTimeRegexes);
return CleanDateTimeParser.Clean(name, namingOptions.CleanDateTimeRegexes);
}
}
}

View File

@@ -75,10 +75,6 @@ namespace Emby.Notifications
Type = NotificationType.VideoPlaybackStopped.ToString()
},
new NotificationTypeInfo
{
Type = NotificationType.CameraImageUploaded.ToString()
},
new NotificationTypeInfo
{
Type = NotificationType.UserLockedOut.ToString()
},
@@ -114,10 +110,6 @@ namespace Emby.Notifications
{
note.Category = _localization.GetLocalizedString("Plugin");
}
else if (note.Type.IndexOf("CameraImageUploaded", StringComparison.OrdinalIgnoreCase) != -1)
{
note.Category = _localization.GetLocalizedString("Sync");
}
else if (note.Type.IndexOf("UserLockedOut", StringComparison.OrdinalIgnoreCase) != -1)
{
note.Category = _localization.GetLocalizedString("User");

View File

@@ -9,8 +9,6 @@
<TargetFramework>net5.0</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
@@ -25,14 +23,9 @@
<!-- Code analyzers-->
<ItemGroup Condition=" '$(Configuration)' == 'Debug' ">
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.8" PrivateAssets="All" />
<PackageReference Include="SerilogAnalyzer" Version="0.15.0" PrivateAssets="All" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" PrivateAssets="All" />
<PackageReference Include="SmartAnalyzers.MultithreadingAnalyzer" Version="1.1.31" PrivateAssets="All" />
</ItemGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<CodeAnalysisRuleSet>../jellyfin.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
</Project>

View File

@@ -77,7 +77,6 @@ namespace Emby.Notifications
{
_libraryManager.ItemAdded += OnLibraryManagerItemAdded;
_appHost.HasPendingRestartChanged += OnAppHostHasPendingRestartChanged;
_appHost.HasUpdateAvailableChanged += OnAppHostHasUpdateAvailableChanged;
_activityManager.EntryCreated += OnActivityManagerEntryCreated;
return Task.CompletedTask;
@@ -132,25 +131,6 @@ namespace Emby.Notifications
return _config.GetConfiguration<NotificationOptions>("notifications");
}
private async void OnAppHostHasUpdateAvailableChanged(object? sender, EventArgs e)
{
if (!_appHost.HasUpdateAvailable)
{
return;
}
var type = NotificationType.ApplicationUpdateAvailable.ToString();
var notification = new NotificationRequest
{
Description = "Please see jellyfin.org for details.",
NotificationType = type,
Name = _localization.GetLocalizedString("NewVersionIsAvailable")
};
await SendNotification(notification, null).ConfigureAwait(false);
}
private void OnLibraryManagerItemAdded(object? sender, ItemChangeEventArgs e)
{
if (!FilterItem(e.Item))
@@ -325,7 +305,6 @@ namespace Emby.Notifications
_libraryManager.ItemAdded -= OnLibraryManagerItemAdded;
_appHost.HasPendingRestartChanged -= OnAppHostHasPendingRestartChanged;
_appHost.HasUpdateAvailableChanged -= OnAppHostHasUpdateAvailableChanged;
_activityManager.EntryCreated -= OnActivityManagerEntryCreated;
_disposed = true;

View File

@@ -22,20 +22,13 @@
<TargetFramework>net5.0</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Nullable>enable</Nullable>
</PropertyGroup>
<!-- Code Analyzers-->
<ItemGroup Condition=" '$(Configuration)' == 'Debug' ">
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.8" PrivateAssets="All" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" PrivateAssets="All" />
<PackageReference Include="SerilogAnalyzer" Version="0.15.0" PrivateAssets="All" />
<PackageReference Include="SmartAnalyzers.MultithreadingAnalyzer" Version="1.1.31" PrivateAssets="All" />
</ItemGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<CodeAnalysisRuleSet>../jellyfin.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
</Project>

View File

@@ -33,7 +33,7 @@ namespace Emby.Server.Implementations.AppBase
CachePath = cacheDirectoryPath;
WebPath = webDirectoryPath;
DataPath = Path.Combine(ProgramDataPath, "data");
_dataPath = Directory.CreateDirectory(Path.Combine(ProgramDataPath, "data")).FullName;
}
/// <summary>
@@ -55,11 +55,7 @@ namespace Emby.Server.Implementations.AppBase
/// Gets the folder path to the data directory.
/// </summary>
/// <value>The data directory.</value>
public string DataPath
{
get => _dataPath;
private set => _dataPath = Directory.CreateDirectory(value).FullName;
}
public string DataPath => _dataPath;
/// <inheritdoc />
public string VirtualDataPath => "%AppDataPath%";

View File

@@ -1,3 +1,5 @@
#nullable disable
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
@@ -23,6 +25,11 @@ namespace Emby.Server.Implementations.AppBase
private readonly ConcurrentDictionary<string, object> _configurations = new ConcurrentDictionary<string, object>();
/// <summary>
/// The _configuration sync lock.
/// </summary>
private readonly object _configurationSyncLock = new object();
private ConfigurationStore[] _configurationStores = Array.Empty<ConfigurationStore>();
private IConfigurationFactory[] _configurationFactories = Array.Empty<IConfigurationFactory>();
@@ -31,11 +38,6 @@ namespace Emby.Server.Implementations.AppBase
/// </summary>
private bool _configurationLoaded;
/// <summary>
/// The _configuration sync lock.
/// </summary>
private readonly object _configurationSyncLock = new object();
/// <summary>
/// The _configuration.
/// </summary>
@@ -297,25 +299,29 @@ namespace Emby.Server.Implementations.AppBase
/// <inheritdoc />
public object GetConfiguration(string key)
{
return _configurations.GetOrAdd(key, k =>
{
var file = GetConfigurationFile(key);
var configurationInfo = _configurationStores
.FirstOrDefault(i => string.Equals(i.Key, key, StringComparison.OrdinalIgnoreCase));
if (configurationInfo == null)
return _configurations.GetOrAdd(
key,
(k, configurationManager) =>
{
throw new ResourceNotFoundException("Configuration with key " + key + " not found.");
}
var file = configurationManager.GetConfigurationFile(k);
var configurationType = configurationInfo.ConfigurationType;
var configurationInfo = Array.Find(
configurationManager._configurationStores,
i => string.Equals(i.Key, k, StringComparison.OrdinalIgnoreCase));
lock (_configurationSyncLock)
{
return LoadConfiguration(file, configurationType);
}
});
if (configurationInfo == null)
{
throw new ResourceNotFoundException("Configuration with key " + k + " not found.");
}
var configurationType = configurationInfo.ConfigurationType;
lock (configurationManager._configurationSyncLock)
{
return configurationManager.LoadConfiguration(file, configurationType);
}
},
this);
}
private object LoadConfiguration(string path, Type configurationType)

View File

@@ -1,9 +1,6 @@
#nullable enable
using System;
using System.IO;
using System.Linq;
using MediaBrowser.Common.Extensions;
using MediaBrowser.Model.Serialization;
namespace Emby.Server.Implementations.AppBase
@@ -36,7 +33,8 @@ namespace Emby.Server.Implementations.AppBase
}
catch (Exception)
{
configuration = Activator.CreateInstance(type) ?? throw new ArgumentException($"Provided path ({type}) is not valid.", nameof(type));
// Note: CreateInstance returns null for Nullable<T>, e.g. CreateInstance(typeof(int?)) returns null.
configuration = Activator.CreateInstance(type)!;
}
using var stream = new MemoryStream(buffer?.Length ?? 0);
@@ -53,7 +51,8 @@ namespace Emby.Server.Implementations.AppBase
Directory.CreateDirectory(directory);
// Save it after load in case we got new items
using (var fs = new FileStream(path, FileMode.Create, FileAccess.Write, FileShare.Read))
// use FileShare.None as this bypasses dotnet bug dotnet/runtime#42790 .
using (var fs = new FileStream(path, FileMode.Create, FileAccess.Write, FileShare.None))
{
fs.Write(newBytes, 0, newBytesLen);
}

Some files were not shown because too many files have changed in this diff Show More