Commit Graph

344 Commits

Author SHA1 Message Date
h3llrais3r
336f8af169 Only match on show/season/name if no common id 2023-03-04 07:27:04 +01:00
h3llrais3r
6bd9964779 Revert last 3 commits 2023-03-04 07:06:10 +01:00
h3llrais3r
096a5c94de Only match by id when episode & trakt have ids 2023-03-03 23:14:11 +01:00
h3llrais3r
c1b9779786 Some refactoring 2023-03-03 22:42:13 +01:00
h3llrais3r
470e1e1819 Only match on show/season/name if no provider id's 2023-03-03 22:34:37 +01:00
h3llrais3r
43fd88dbda Fix playcount log statement 2023-03-03 18:23:39 +01:00
h3llrais3r
0c90a46a24 Move code back inside SyncTraktDataForUser 2023-03-03 18:21:59 +01:00
h3llrais3r
ddb189b8ed Simplify IsMatch 2023-03-03 18:18:26 +01:00
h3llrais3r
371bd34caf Fix match by season and number (include show match as well)
This also fixes the play count
2023-03-03 17:11:42 +01:00
h3llrais3r
7995ea6820 Remove unused variable matchedWatchedSeason 2023-03-03 16:15:05 +01:00
h3llrais3r
7b1481d921 Remove fallback logic with watched api 2023-03-03 16:14:11 +01:00
h3llrais3r
e1e77d97c6 Check for season/number in IsMatch for TraktEpisode 2023-03-03 16:07:19 +01:00
h3llrais3r
ea50ff0bdf Change logging for testing purposes
Make distinction between logging for history match and legacy match.
2023-03-02 18:09:02 +01:00
h3llrais3r
3972ae3ad2 Implement requested changes 2023-03-02 17:32:29 +01:00
h3llrais3r
7b692c510e Rename variable 2023-03-01 20:27:29 +01:00
h3llrais3r
b90028ba0b Use history api for importing episodes from trakt
The history api includes more details (i.e. indexer id) which can be used to properly match episodes (i.e. when jellyfin is using other indexer than trakt).
Matching by indexer id is a lot more accurate than matching by season and number.
This is a rework of https://github.com/jellyfin/jellyfin-plugin-trakt/pull/191 where we are now using the history by default for episode sync.
2023-03-01 19:46:36 +01:00
veloute
f3ca422d82
small correction to trakt.html (#202) 2023-02-17 16:59:57 -07:00
jellyfin-bot
34dcd8ffb7
Prepare for release v23 (#200) 2023-02-10 16:20:38 -07:00
addamanth
b32f33a7af
Added config parameter Don't remove items from trakt (#196) 2023-02-10 16:19:57 -07:00
blackwind
8d3c1a5727
Sync LastPlayedDate if not set locally (#201) 2023-02-10 12:40:15 -07:00
Shadowghost
8b68bc3e02
Fix episode last played date syncing (#199) 2023-02-03 05:43:20 -07:00
jellyfin-bot
ad6e2ab54a
Bump version to 22 (#189) 2022-12-28 09:23:44 -07:00
Cody Robibero
61db58836f
Merge pull request #191 from h3llrais3r/fix-episode-matching
Fix episode matching for sync from trakt task
2022-12-04 10:53:45 -07:00
h3llrais3r
7c013522c8 Replace type check by null check 2022-12-04 18:48:37 +01:00
h3llrais3r
7c6e0027aa Add fallback to match episode when it belongs to another season
When an episode is not matched with the season, let's find it in any season.
This happens when an episode of the next season in tvdb appears in the previous season in tmdb. (F.e. Hunter X Hunter S02E01 tvdb = S01E59 tmdb)
2022-11-28 21:43:51 +01:00
h3llrais3r
560c17bdf4 Fix episode matching for sync from trakt task
- Trakt has switched from tvdb to tmdb as indexer
- Episodes are often not aligned between tvdb and tmdb
- Watched shows api does not contain episodes ids
- History api does contain episode ids
- If no matching is found by season and number (from shows api), fallback to history api to determine a match by episode ids
2022-11-28 19:42:33 +01:00
Cody Robibero
3f7a6cca29
Merge pull request #188 from methbkts/patch-1
Update README.md
2022-11-25 07:12:56 -07:00
methbkts
d618e787ce
Update README.md 2022-11-25 14:15:53 +01:00
Cody Robibero
d72153c196
Merge pull request #173 from jellyfin/prepare-21 2022-10-20 08:19:47 -06:00
jellyfin-bot
651d457f9e Bump version to 21 2022-10-20 14:19:05 +00:00
Cody Robibero
9e63261630
Merge pull request #175 from Shadowghost/fixes 2022-10-20 08:18:42 -06:00
Shadowghost
4800589209 Switch to new API key 2022-10-20 11:26:03 +02:00
Shadowghost
a861d7240a Apply review suggestions 2022-10-20 11:25:56 +02:00
Shadowghost
51ef1ca84b Fix playback events hammering the trakt.tv API 2022-10-18 08:37:00 +02:00
Cody Robibero
1ed81ff257
Merge pull request #169 from Shadowghost/fixes
Prevent setting local item as unwatched on sync
2022-10-14 06:13:52 -06:00
Cody Robibero
7af59ab8ed
Merge pull request #171 from sambartik/enhance-debug-logs
Add more info to debug logs
2022-10-14 06:13:32 -06:00
Samuel Bartík
31dd41ec9e
Add more info to debug logs 2022-10-11 18:11:11 +02:00
Shadowghost
1803f9f708 Prevent setting local item as unwatched on sync 2022-10-03 14:18:24 +02:00
Cody Robibero
08b43b248e
Merge pull request #159 from jellyfin/prepare-20 2022-09-02 07:11:02 -06:00
Cody Robibero
1ebead5d8d
Update build.yaml 2022-09-02 07:10:09 -06:00
jellyfin-bot
ec9fa03b7e Bump version to 20 2022-07-30 13:34:11 +00:00
Cody Robibero
70a3c3aa41
Merge pull request #154 from Shadowghost/fixes 2022-07-30 07:33:46 -06:00
Shadowghost
734b7dd018 Switch to proper GUID handling in the API 2022-07-10 08:41:40 +02:00
Shadowghost
3838427a3b Move resolution boundaries to consts, comment where those values come from 2022-07-08 18:17:17 +02:00
Shadowghost
f98abd1cf6 Apply review suggestions 2022-07-08 17:09:09 +02:00
Shadowghost
8a263fbb70 Fix try-catch scope for library event handling 2022-07-08 16:20:07 +02:00
Shadowghost
7f4505dc87 Reduce database access 2022-07-08 16:20:07 +02:00
Shadowghost
51ad50583e Add 480p fallback for lower resolutions 2022-07-08 16:20:07 +02:00
Shadowghost
9b93cbf5e7 Properly handle 4:3 resolutions 2022-07-08 16:20:07 +02:00
Shadowghost
cacc3b2dd6 Apply review suggestions 2022-07-08 16:20:07 +02:00