Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Added TMDb as a mapping service #259

Open
wants to merge 1 commit into
base: go
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions arn/Mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ func init() {
{"thetvdb/anime", "thetvdb/anime"},
{"trakt/anime", "trakt/anime"},
{"trakt/season", "trakt/season"},
{"tmdb/tv", "tmdb/tv"},
{"tmdb/movie", "tmdb/movie"},
}
}

Expand Down Expand Up @@ -48,6 +50,10 @@ func (mapping *Mapping) Name() string {
return "Trakt"
case "trakt/season":
return "Trakt"
case "tmdb/tv":
return "TMDb"
case "tmdb/movie":
return "TMDb"
default:
return mapping.Service
}
Expand Down Expand Up @@ -78,6 +84,10 @@ func (mapping *Mapping) Link() string {
return "https://trakt.tv/shows/" + mapping.ServiceID
case "trakt/season":
return "https://trakt.tv/seasons/" + mapping.ServiceID
case "tmdb/tv":
return "https://www.themoviedb.org/tv/" + mapping.ServiceID
case "tmdb/movie":
return "https://www.themoviedb.org/movie/" + mapping.ServiceID
default:
return ""
}
Expand Down