mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
make external id's modular
This commit is contained in:
parent
c38c8601c0
commit
9d932e463a
@ -14,6 +14,10 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.libraryTree {
|
||||||
|
margin-left: .25em;
|
||||||
|
}
|
||||||
|
|
||||||
.offlineEditorNode {
|
.offlineEditorNode {
|
||||||
color: #cc3333;
|
color: #cc3333;
|
||||||
}
|
}
|
||||||
@ -94,23 +98,6 @@
|
|||||||
height: 450px;
|
height: 450px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.editPageSidebar {
|
|
||||||
position: fixed;
|
|
||||||
top: 48px;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 27.5%;
|
|
||||||
overflow-y: scroll;
|
|
||||||
overflow-x: auto!important;
|
|
||||||
display: block;
|
|
||||||
border-right: 1px solid #555;
|
|
||||||
}
|
|
||||||
|
|
||||||
.editPageInnerContent {
|
|
||||||
float: right;
|
|
||||||
width: 70%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.remoteBannerImage {
|
.remoteBannerImage {
|
||||||
width: 450px;
|
width: 450px;
|
||||||
height: 83px;
|
height: 83px;
|
||||||
@ -159,6 +146,23 @@
|
|||||||
.availableImagesList {
|
.availableImagesList {
|
||||||
width: 700px;
|
width: 700px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.editPageSidebar {
|
||||||
|
position: fixed;
|
||||||
|
top: 48px;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 30%;
|
||||||
|
overflow-y: scroll;
|
||||||
|
overflow-x: auto!important;
|
||||||
|
display: block;
|
||||||
|
border-right: 1px solid #555;
|
||||||
|
}
|
||||||
|
|
||||||
|
.editPageInnerContent {
|
||||||
|
float: right;
|
||||||
|
width: 67.5%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media all and (min-width: 900px) {
|
@media all and (min-width: 900px) {
|
||||||
@ -213,11 +217,11 @@
|
|||||||
@media all and (min-width: 1800px) {
|
@media all and (min-width: 1800px) {
|
||||||
|
|
||||||
.editPageSidebar {
|
.editPageSidebar {
|
||||||
width: 22.5%;
|
width: 25%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.editPageInnerContent {
|
.editPageInnerContent {
|
||||||
width: 75%;
|
width: 72.5%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1333,90 +1333,15 @@
|
|||||||
links.push('<a class="textlink" href="' + item.HomePageUrl + '" target="_blank">Website</a>');
|
links.push('<a class="textlink" href="' + item.HomePageUrl + '" target="_blank">Website</a>');
|
||||||
}
|
}
|
||||||
|
|
||||||
var providerIds = item.ProviderIds || {};
|
if (item.ExternalUrls) {
|
||||||
|
|
||||||
if (providerIds.Imdb) {
|
for (var i = 0, length = item.ExternalUrls.length; i < length; i++) {
|
||||||
if (item.Type == "Person") {
|
|
||||||
links.push('<a class="textlink" href="http://www.imdb.com/name/' + providerIds.Imdb + '" target="_blank">IMDb</a>');
|
var url = item.ExternalUrls[i];
|
||||||
}
|
|
||||||
else {
|
links.push('<a class="textlink" href="' + url.Url + '" target="_blank">' + url.Name + '</a>');
|
||||||
links.push('<a class="textlink" href="http://www.imdb.com/title/' + providerIds.Imdb + '" target="_blank">IMDb</a>');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (providerIds.Tmdb) {
|
|
||||||
if (item.Type == "Movie" || item.Type == "Trailer" || item.Type == "MusicVideo")
|
|
||||||
links.push('<a class="textlink" href="http://www.themoviedb.org/movie/' + providerIds.Tmdb + '" target="_blank">TheMovieDB</a>');
|
|
||||||
else if (item.Type == "BoxSet")
|
|
||||||
links.push('<a class="textlink" href="http://www.themoviedb.org/collection/' + providerIds.Tmdb + '" target="_blank">TheMovieDB</a>');
|
|
||||||
else if (item.Type == "Person")
|
|
||||||
links.push('<a class="textlink" href="http://www.themoviedb.org/person/' + providerIds.Tmdb + '" target="_blank">TheMovieDB</a>');
|
|
||||||
else if (item.Type == "Series")
|
|
||||||
links.push('<a class="textlink" href="http://www.themoviedb.org/tv/' + providerIds.Tmdb + '" target="_blank">TheMovieDB</a>');
|
|
||||||
}
|
|
||||||
if (providerIds.Tvdb) {
|
|
||||||
|
|
||||||
if (item.Type == "Series") {
|
|
||||||
links.push('<a class="textlink" href="http://thetvdb.com/index.php?tab=series&id=' + providerIds.Tvdb + '" target="_blank">TheTVDB</a>');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (providerIds.Tvcom) {
|
|
||||||
if (item.Type == "Episode")
|
|
||||||
links.push('<a class="textlink" href="http://www.tv.com/shows/' + providerIds.Tvcom + '" target="_blank">TV.com</a>');
|
|
||||||
else if (item.Type == "Person")
|
|
||||||
links.push('<a class="textlink" href="http://www.tv.com/people/' + providerIds.Tvcom + '" target="_blank">TV.com</a>');
|
|
||||||
}
|
|
||||||
if (providerIds.MusicBrainzAlbum) {
|
|
||||||
|
|
||||||
links.push('<a class="textlink" href="http://musicbrainz.org/release/' + providerIds.MusicBrainzAlbum + '" target="_blank">MusicBrainz Album</a>');
|
|
||||||
|
|
||||||
}
|
|
||||||
if (providerIds.MusicBrainzAlbumArtist) {
|
|
||||||
|
|
||||||
links.push('<a class="textlink" href="http://musicbrainz.org/artist/' + providerIds.MusicBrainzAlbumArtist + '" target="_blank">MusicBrainz Album Artist</a>');
|
|
||||||
|
|
||||||
}
|
|
||||||
if (providerIds.MusicBrainzArtist) {
|
|
||||||
|
|
||||||
var text = item.Type == "MusicArtist" ? "MusicBrainz" : "MusicBrainz Artist";
|
|
||||||
|
|
||||||
links.push('<a class="textlink" href="http://musicbrainz.org/artist/' + providerIds.MusicBrainzArtist + '" target="_blank">' + text + '</a>');
|
|
||||||
|
|
||||||
}
|
|
||||||
if (providerIds.MusicBrainzReleaseGroup) {
|
|
||||||
|
|
||||||
links.push('<a class="textlink" href="http://musicbrainz.org/release-group/' + providerIds.MusicBrainzReleaseGroup + '" target="_blank">MusicBrainz Release Group</a>');
|
|
||||||
|
|
||||||
}
|
|
||||||
if (providerIds.AudioDbArtist) {
|
|
||||||
|
|
||||||
if (item.Type == "MusicArtist")
|
|
||||||
links.push('<a class="textlink" href="http://www.theaudiodb.com/artist/' + providerIds.AudioDbArtist + '" target="_blank">TheAudioDB</a>');
|
|
||||||
else
|
|
||||||
links.push('<a class="textlink" href="http://www.theaudiodb.com/artist/' + providerIds.AudioDbArtist + '" target="_blank">TheAudioDB Artist</a>');
|
|
||||||
}
|
|
||||||
if (providerIds.AudioDbAlbum) {
|
|
||||||
|
|
||||||
if (item.Type == "MusicAlbum")
|
|
||||||
links.push('<a class="textlink" href="http://www.theaudiodb.com/album/' + providerIds.AudioDbAlbum + '" target="_blank">TheAudioDB</a>');
|
|
||||||
else
|
|
||||||
links.push('<a class="textlink" href="http://www.theaudiodb.com/album/' + providerIds.AudioDbAlbum + '" target="_blank">TheAudioDB Album</a>');
|
|
||||||
}
|
|
||||||
if (providerIds.Gamesdb) {
|
|
||||||
links.push('<a class="textlink" href="http://thegamesdb.net/game/' + providerIds.Gamesdb + '" target="_blank">GamesDB</a>');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (providerIds.NesBox) {
|
|
||||||
|
|
||||||
if (item.GameSystem == "Nintendo") {
|
|
||||||
links.push('<a class="textlink" href="http://nesbox.com/game/' + providerIds.NesBox + '" target="_blank">NESbox</a>');
|
|
||||||
}
|
|
||||||
else if (item.GameSystem == "Super Nintendo") {
|
|
||||||
links.push('<a class="textlink" href="http://snesbox.com/game/' + providerIds.NesBox + '" target="_blank">SNESbox</a>');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (providerIds.Zap2It)
|
|
||||||
links.push('<a class="textlink" href="http://tvlistings.zap2it.com/tv/dexter/' + providerIds.Zap2It + '?aid=zap2it" target="_blank">Zap2It</a>');
|
|
||||||
|
|
||||||
if (links.length) {
|
if (links.length) {
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
SortBy: "DateCreated",
|
SortBy: "DateCreated",
|
||||||
SortOrder: "Descending",
|
SortOrder: "Descending",
|
||||||
IncludeItemTypes: "Movie",
|
IncludeItemTypes: "Movie",
|
||||||
Limit: screenWidth >= 1440 ? 16 : 12,
|
Limit: screenWidth >= 1440 ? 21 : 12,
|
||||||
Recursive: true,
|
Recursive: true,
|
||||||
Fields: "PrimaryImageAspectRatio,DateCreated,UserData",
|
Fields: "PrimaryImageAspectRatio,DateCreated,UserData",
|
||||||
Filters: "IsUnplayed"
|
Filters: "IsUnplayed"
|
||||||
@ -33,7 +33,7 @@
|
|||||||
SortOrder: "Descending",
|
SortOrder: "Descending",
|
||||||
IncludeItemTypes: "Movie",
|
IncludeItemTypes: "Movie",
|
||||||
Filters: "IsResumable",
|
Filters: "IsResumable",
|
||||||
Limit: screenWidth >= 1920 ? 5 : (screenWidth >= 1440 ? 4 : 3),
|
Limit: screenWidth >= 1920 ? 4 : (screenWidth >= 1440 ? 4 : 3),
|
||||||
Recursive: true,
|
Recursive: true,
|
||||||
Fields: "DateCreated,UserData"
|
Fields: "DateCreated,UserData"
|
||||||
};
|
};
|
||||||
@ -63,7 +63,7 @@
|
|||||||
SortBy: "DateCreated",
|
SortBy: "DateCreated",
|
||||||
SortOrder: "Descending",
|
SortOrder: "Descending",
|
||||||
IncludeItemTypes: "Trailer",
|
IncludeItemTypes: "Trailer",
|
||||||
Limit: screenWidth >= 1440 ? 8 : 6,
|
Limit: screenWidth >= 1440 ? 7 : 6,
|
||||||
Recursive: true,
|
Recursive: true,
|
||||||
Fields: "PrimaryImageAspectRatio,DateCreated,UserData",
|
Fields: "PrimaryImageAspectRatio,DateCreated,UserData",
|
||||||
Filters: "IsUnplayed"
|
Filters: "IsUnplayed"
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
SortBy: "DateCreated",
|
SortBy: "DateCreated",
|
||||||
SortOrder: "Descending",
|
SortOrder: "Descending",
|
||||||
IncludeItemTypes: "MusicAlbum",
|
IncludeItemTypes: "MusicAlbum",
|
||||||
Limit: screenWidth >= 1920 ? 7 : (screenWidth >= 1440 ? 6 : 5),
|
Limit: screenWidth >= 1920 ? 6 : (screenWidth >= 1440 ? 6 : 5),
|
||||||
Recursive: true,
|
Recursive: true,
|
||||||
Fields: "PrimaryImageAspectRatio"
|
Fields: "PrimaryImageAspectRatio"
|
||||||
};
|
};
|
||||||
@ -34,7 +34,7 @@
|
|||||||
SortBy: "DateCreated",
|
SortBy: "DateCreated",
|
||||||
SortOrder: "Descending",
|
SortOrder: "Descending",
|
||||||
IncludeItemTypes: "Audio",
|
IncludeItemTypes: "Audio",
|
||||||
Limit: screenWidth >= 1920 ? 7 : (screenWidth >= 1440 ? 6 : 5),
|
Limit: screenWidth >= 1920 ? 6 : (screenWidth >= 1440 ? 6 : 5),
|
||||||
Recursive: true,
|
Recursive: true,
|
||||||
Fields: "PrimaryImageAspectRatio,AudioInfo"
|
Fields: "PrimaryImageAspectRatio,AudioInfo"
|
||||||
};
|
};
|
||||||
@ -57,7 +57,7 @@
|
|||||||
SortBy: "DatePlayed",
|
SortBy: "DatePlayed",
|
||||||
SortOrder: "Descending",
|
SortOrder: "Descending",
|
||||||
IncludeItemTypes: "Audio",
|
IncludeItemTypes: "Audio",
|
||||||
Limit: screenWidth >= 1920 ? 7 : (screenWidth >= 1440 ? 6 : 5),
|
Limit: screenWidth >= 1920 ? 6 : (screenWidth >= 1440 ? 6 : 5),
|
||||||
Recursive: true,
|
Recursive: true,
|
||||||
Fields: "PrimaryImageAspectRatio,AudioInfo",
|
Fields: "PrimaryImageAspectRatio,AudioInfo",
|
||||||
Filters: "IsPlayed"
|
Filters: "IsPlayed"
|
||||||
@ -87,7 +87,7 @@
|
|||||||
SortBy: "PlayCount",
|
SortBy: "PlayCount",
|
||||||
SortOrder: "Descending",
|
SortOrder: "Descending",
|
||||||
IncludeItemTypes: "Audio",
|
IncludeItemTypes: "Audio",
|
||||||
Limit: screenWidth >= 1920 ? 14 : (screenWidth >= 1440 ? 12 : 10),
|
Limit: screenWidth >= 1920 ? 12 : (screenWidth >= 1440 ? 12 : 10),
|
||||||
Recursive: true,
|
Recursive: true,
|
||||||
Fields: "PrimaryImageAspectRatio,AudioInfo",
|
Fields: "PrimaryImageAspectRatio,AudioInfo",
|
||||||
Filters: "IsPlayed"
|
Filters: "IsPlayed"
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
SortOrder: "Descending",
|
SortOrder: "Descending",
|
||||||
IncludeItemTypes: "Episode",
|
IncludeItemTypes: "Episode",
|
||||||
Filters: "IsResumable",
|
Filters: "IsResumable",
|
||||||
Limit: screenWidth >= 1920 ? 5 : (screenWidth >= 1440 ? 4 : 3),
|
Limit: screenWidth >= 1920 ? 4 : (screenWidth >= 1440 ? 4 : 3),
|
||||||
Recursive: true,
|
Recursive: true,
|
||||||
Fields: "PrimaryImageAspectRatio,SeriesInfo,UserData",
|
Fields: "PrimaryImageAspectRatio,SeriesInfo,UserData",
|
||||||
ExcludeLocationTypes: "Virtual"
|
ExcludeLocationTypes: "Virtual"
|
||||||
|
@ -72,9 +72,9 @@
|
|||||||
{ name: 'Live TV Programs', value: 'LiveTvProgram' },
|
{ name: 'Live TV Programs', value: 'LiveTvProgram' },
|
||||||
{ name: 'Movies', value: 'Movie' },
|
{ name: 'Movies', value: 'Movie' },
|
||||||
{ name: 'Music', value: 'Music' },
|
{ name: 'Music', value: 'Music' },
|
||||||
{ name: 'Others', value: 'Other' },
|
|
||||||
{ name: 'Trailers', value: 'Trailer' },
|
{ name: 'Trailers', value: 'Trailer' },
|
||||||
{ name: 'TV Shows', value: 'Series' }
|
{ name: 'TV Shows', value: 'Series' },
|
||||||
|
{ name: 'Others', value: 'Other' }
|
||||||
];
|
];
|
||||||
|
|
||||||
var html = '';
|
var html = '';
|
||||||
|
@ -35,7 +35,6 @@
|
|||||||
<div>
|
<div>
|
||||||
<div class="blockUnratedItems">
|
<div class="blockUnratedItems">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
|
Loading…
Reference in New Issue
Block a user