Commit 20f3aca
authored
Fix movie wrongly shown as available when a series shares its TMDB ID (#5432)
TheMovieDb uses separate ID namespaces for movies and TV shows, so the
same id can refer to both a movie and a series. The Emby/Jellyfin
availability lookups matched content purely by provider id without
checking the media type, so a movie was marked as available (and linked
to "Watch on ...") whenever a series with the same TMDB id existed on the
server. Plex already disambiguated by media type, which is why it was
unaffected.
Only accept media server content whose type matches the item being
searched for, both in the shared search availability rule and in the
background Emby/Jellyfin availability checkers.
Fixes #54301 parent 6ebfab4 commit 20f3aca
4 files changed
Lines changed: 43 additions & 12 deletions
File tree
- src
- Ombi.Core.Tests/Rule/Search
- Ombi.Core/Rule/Rules/Search
- Ombi.Schedule/Jobs
- Emby
- Jellyfin
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
120 | 140 | | |
121 | 141 | | |
Lines changed: 19 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
169 | 176 | | |
170 | 177 | | |
171 | | - | |
172 | | - | |
| 178 | + | |
| 179 | + | |
173 | 180 | | |
| 181 | + | |
174 | 182 | | |
175 | 183 | | |
176 | 184 | | |
| |||
179 | 187 | | |
180 | 188 | | |
181 | 189 | | |
182 | | - | |
183 | | - | |
| 190 | + | |
| 191 | + | |
184 | 192 | | |
| 193 | + | |
185 | 194 | | |
186 | 195 | | |
187 | 196 | | |
188 | 197 | | |
189 | 198 | | |
190 | 199 | | |
191 | 200 | | |
192 | | - | |
193 | | - | |
| 201 | + | |
| 202 | + | |
194 | 203 | | |
| 204 | + | |
195 | 205 | | |
196 | 206 | | |
197 | 207 | | |
198 | 208 | | |
199 | 209 | | |
200 | 210 | | |
201 | | - | |
202 | | - | |
| 211 | + | |
| 212 | + | |
203 | 213 | | |
| 214 | + | |
204 | 215 | | |
205 | 216 | | |
206 | 217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
0 commit comments