Commit graph

76 commits

Author SHA1 Message Date
Cody Robibero e7b8d45bbb
Use helper function to compare guid (#10825) 2024-01-17 08:51:39 -07:00
Bill Thornton 9c64f94458 Add option to include resumable items in next up requests 2023-09-06 00:35:32 -04:00
Bond_009 cb85fc688f Enable nullable for more files 2023-02-15 23:41:28 +01:00
Bond_009 52194f56b5 Replace != null with is not null 2022-12-05 15:01:13 +01:00
Bond_009 c7d50d640e Replace == null with is null 2022-12-05 15:00:20 +01:00
cvium 08d2acba20 Backport pull request #8662 from jellyfin/release-10.8.z
fix: use a combination of ParentIndexNumber and IndexNumber to determine next up episodes

Original-merge: 45f3fb1cfc

Merged-by: Joshua M. Boniface <joshua@boniface.me>

Backported-by: Joshua M. Boniface <joshua@boniface.me>
2022-10-31 23:08:42 -04:00
cvium 812a4170ee Backport pull request #8501 from jellyfin/release-10.8.z
fix: set MinIndexNumber for the next up query

Original-merge: 679e83082f

Merged-by: Claus Vium <cvium@users.noreply.github.com>

Backported-by: Joshua M. Boniface <joshua@boniface.me>
2022-10-28 22:38:58 -04:00
Claus Vium 4a261a3ec0 Backport pull request #8348 from jellyfin/release-10.8.z
Revert "Revert "refactor: use season number and episode number for NextUp ordering instead of SortName""

Original-merge: 88d5230bab

Merged-by: Bond-009 <bond.009@outlook.com>

Backported-by: Joshua M. Boniface <joshua@boniface.me>
2022-09-23 23:09:37 -04:00
Niels van Velzen bef4256d47 Use guid for seriesId API parameter 2022-08-14 13:03:48 +02:00
Claus Vium 53209830e7
Merge pull request #7346 from Bond-009/guid
Optimize Guid comparisons
2022-03-11 08:15:12 +01:00
Bill Thornton df70d7bdf1 Use IReadOnlyList for seriesKeys 2022-03-02 10:17:24 -05:00
Bill Thornton 055c63bdee Include played and unplayed results in the same next up request 2022-03-01 00:50:16 -05:00
Bond_009 f50a250cd9 Optimize Guid comparisons
* Use Guid.Equals(Guid) instead of the == override
* Ban the usage of Guid.Equals(Object) to prevent accidental boxing
* Compare to default(Guid) instead of Guid.Empty
2022-02-21 14:15:09 +01:00
SenorSmartyPants bbac59c6d6
Rewatching next up (#7253) 2022-02-20 18:05:57 +01:00
Cody Robibero a60cb280a3 Properly populate QueryResult 2022-01-20 08:53:06 -07:00
Cody Robibero 7bfc6b5679 Remove more warnings 2021-12-27 07:38:06 -07:00
Bond_009 cbfa355e31 Update StyleCop 2021-12-24 18:28:27 +01:00
Cody Robibero 32629cd7da Use BaseItemKind where possible 2021-12-12 06:11:27 -07:00
Bond_009 637e86478f Fix some warnings 2021-09-03 19:32:11 +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 e3ff473bd4 Review notes to set value to Datetime min value instead of null 2021-05-25 20:46:29 -04:00
Bond_009 7e8428e588 Enable nullable reference types for Emby.Server.Implementations 2021-05-20 22:48:53 +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
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
Smith00101010 6293629d32
Apply suggested formatting changes
Co-authored-by: BaronGreenback <jimcartlidge@yahoo.co.uk>
2021-03-05 22:51:08 +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
crobibero 1455c2aa10 Remove commented code 2021-01-18 06:47:18 -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
crobibero ee23d06154 Use a more descriptive function name 2020-12-13 08:15:26 -07:00
crobibero b670937c3d Use typed UserManager GetPreference 2020-12-11 15:00:43 -07:00
Claus Vium e042572588
Merge pull request #4633 from crobibero/guid-params
Use Guid as API parameter type where possible
2020-12-03 07:51:02 +01:00
Claus Vium 673d2c0d26
Update Emby.Server.Implementations/TV/TVSeriesManager.cs 2020-12-01 22:31:55 +01:00
MrTimscampi 371092cf62 Fix possible nullref 2020-12-01 19:33:18 +01:00
MrTimscampi 7ba9ba4780 Fix typo 2020-12-01 19:26:51 +01:00
crobibero c083b29e29 Use Guid as API parameter type where possible 2020-12-01 11:07:41 -07:00
MrTimscampi 21a67a66d2 Prevent GetUpNext from returning episodes in progress 2020-12-01 14:23:24 +01:00
MrTimscampi 0dda909a60 Fix suggestion 2020-11-27 19:06:18 +01:00
MrTimscampi c196ad3351 Don't return first episodes in next up 2020-11-27 10:25:43 +01:00
Bond_009 49569ca0a0 Use nameof where possible 2020-10-17 16:19:57 +02:00
Claus Vium 90fa1149fa Fix warnings 2020-07-15 19:04:36 +02:00
Claus Vium a23920e2ad Only fetch Next Up for episodes that have been fully matched 2020-07-15 13:18:02 +02:00
telans 247f9c61e6
fix SA1513/SA1516 2020-06-16 16:11:30 +12:00
telans 3d9049ef08
fix SA1508 2020-06-15 10:45:55 +12:00
telans acd4389653
fix SA1005 2020-06-15 10:41:00 +12:00
Patrick Barron 06f9cde22f Merge branch 'master' into userdb-efcore
# Conflicts:
#	Emby.Server.Implementations/EntryPoints/ServerEventNotifier.cs
#	Emby.Server.Implementations/Library/UserManager.cs
#	Emby.Server.Implementations/Sorting/IsFavoriteOrLikeComparer.cs
#	Emby.Server.Implementations/Sorting/IsPlayedComparer.cs
#	Emby.Server.Implementations/Sorting/IsUnplayedComparer.cs
#	Emby.Server.Implementations/TV/TVSeriesManager.cs
#	Jellyfin.Server.Implementations/Users/DefaultAuthenticationProvider.cs
2020-06-04 16:52:23 -04:00
Bond_009 4748105dce Enable TreatWarningsAsErrors for Jellyfin.Server.Implementations in Release mode 2020-05-29 11:28:19 +02:00
Patrick Barron c464f700db Remove redundant qualifiers 2020-05-20 13:07:53 -04:00
Patrick Barron 9ad839c776 Initial migration code 2020-05-12 22:10:35 -04:00