Fix: Generate Ombi links directly from TMDB ID; show on downloads and history for all users
Build and Push Docker Image / build (push) Successful in 49s
Licence Check / Licence compatibility and copyright header verification (push) Successful in 2m3s
CI / Security audit (push) Successful in 2m27s
CI / Swagger Validation & Coverage (push) Successful in 2m47s
CI / Tests & coverage (push) Failing after 2m49s
CI / Security audit (pull_request) Successful in 1m53s
CI / Swagger Validation & Coverage (pull_request) Successful in 2m36s
CI / Tests & coverage (pull_request) Failing after 2m46s
Build and Push Docker Image / build (push) Successful in 49s
Licence Check / Licence compatibility and copyright header verification (push) Successful in 2m3s
CI / Security audit (push) Successful in 2m27s
CI / Swagger Validation & Coverage (push) Successful in 2m47s
CI / Tests & coverage (push) Failing after 2m49s
CI / Security audit (pull_request) Successful in 1m53s
CI / Swagger Validation & Coverage (pull_request) Successful in 2m36s
CI / Tests & coverage (pull_request) Failing after 2m46s
- Replace Ombi API-based matching with simple TMDB ID link generation
- Movies link to {ombiBaseUrl}/details/movie/{tmdbId}
- TV shows link to {ombiBaseUrl}/details/tv/{tmdbId}
- Add ombiLink to all history items (Sonarr + Radarr) for all users
- Add ombiLink to torrent history matches that were previously missing it
- addOmbiMatching is now synchronous (no Ombi API calls)
This commit is contained in:
@@ -45,19 +45,17 @@ function getRadarrLink(movie) {
|
||||
return `${movie._instanceUrl}/movie/${movie.titleSlug}`;
|
||||
}
|
||||
|
||||
// Helper to build Ombi request link
|
||||
function getOmbiLink(requestId, type, ombiBaseUrl) {
|
||||
if (!requestId || !type || !ombiBaseUrl) return null;
|
||||
return `${ombiBaseUrl}/#/request/${type}/${requestId}`;
|
||||
}
|
||||
|
||||
// Helper to build Ombi search link
|
||||
function getOmbiSearchLink(searchId, type, ombiBaseUrl) {
|
||||
if (!searchId || !type || !ombiBaseUrl) return null;
|
||||
// Helper to build Ombi details link using TMDB ID from *arr media object
|
||||
// Movies: {ombiBaseUrl}/details/movie/{tmdbId}
|
||||
// TV: {ombiBaseUrl}/details/tv/{tmdbId}
|
||||
function getOmbiDetailsLink(mediaObj, type, ombiBaseUrl) {
|
||||
if (!ombiBaseUrl || !mediaObj) return null;
|
||||
const tmdbId = mediaObj.tmdbId;
|
||||
if (!tmdbId) return null;
|
||||
if (type === 'series') {
|
||||
return `${ombiBaseUrl}/#/tv/search/${searchId}`;
|
||||
return `${ombiBaseUrl}/details/tv/${tmdbId}`;
|
||||
} else if (type === 'movie') {
|
||||
return `${ombiBaseUrl}/#/movie/search/${searchId}`;
|
||||
return `${ombiBaseUrl}/details/movie/${tmdbId}`;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -118,8 +116,7 @@ module.exports = {
|
||||
getImportIssues,
|
||||
getSonarrLink,
|
||||
getRadarrLink,
|
||||
getOmbiLink,
|
||||
getOmbiSearchLink,
|
||||
getOmbiDetailsLink,
|
||||
canBlocklist,
|
||||
extractEpisode,
|
||||
gatherEpisodes
|
||||
|
||||
Reference in New Issue
Block a user