mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
save additional info to recording nfo's
This commit is contained in:
parent
70994b54a6
commit
44513d8744
42 changed files with 7006 additions and 774 deletions
|
@ -140,7 +140,7 @@
|
|||
};
|
||||
|
||||
require(['hammer-main'], function (hammertime) {
|
||||
|
||||
|
||||
hammertime.on('swipeleft', onSwipeLeft);
|
||||
hammertime.on('swiperight', onSwipeRight);
|
||||
|
||||
|
@ -239,24 +239,6 @@
|
|||
|
||||
getHref: function (item, context, topParentId) {
|
||||
|
||||
var href = LibraryBrowser.getHrefInternal(item, context);
|
||||
|
||||
if (context == 'tv') {
|
||||
if (!topParentId) {
|
||||
topParentId = LibraryMenu.getTopParentId();
|
||||
}
|
||||
|
||||
if (topParentId) {
|
||||
href += href.indexOf('?') == -1 ? "?topParentId=" : "&topParentId=";
|
||||
href += topParentId;
|
||||
}
|
||||
}
|
||||
|
||||
return href;
|
||||
},
|
||||
|
||||
getHrefInternal: function (item, context) {
|
||||
|
||||
if (!item) {
|
||||
throw new Error('item cannot be null');
|
||||
}
|
||||
|
@ -265,6 +247,7 @@
|
|||
return item.url;
|
||||
}
|
||||
|
||||
var url;
|
||||
// Handle search hints
|
||||
var id = item.Id || item.ItemId;
|
||||
|
||||
|
@ -348,16 +331,56 @@
|
|||
return "itemdetails.html?id=" + id;
|
||||
}
|
||||
if (item.Type == "Genre") {
|
||||
return "itemdetails.html?id=" + id;
|
||||
var type;
|
||||
switch (context) {
|
||||
case 'tvshows':
|
||||
type = 'Series';
|
||||
break;
|
||||
case 'games':
|
||||
type = 'Game';
|
||||
break;
|
||||
default:
|
||||
type = 'Movie';
|
||||
break;
|
||||
}
|
||||
|
||||
url = "secondaryitems.html?type=" + type + "&genreId=" + id;
|
||||
if (topParentId) {
|
||||
url += "&parentId=" + topParentId;
|
||||
}
|
||||
return url;
|
||||
}
|
||||
if (item.Type == "MusicGenre") {
|
||||
return "itemdetails.html?id=" + id;
|
||||
}
|
||||
if (item.Type == "GameGenre") {
|
||||
return "itemdetails.html?id=" + id;
|
||||
|
||||
url = "secondaryitems.html?type=Game&genreId=" + id;
|
||||
if (topParentId) {
|
||||
url += "&parentId=" + topParentId;
|
||||
}
|
||||
return url;
|
||||
}
|
||||
if (item.Type == "Studio") {
|
||||
return "itemdetails.html?id=" + id;
|
||||
|
||||
var type;
|
||||
switch (context) {
|
||||
case 'tvshows':
|
||||
type = 'Series';
|
||||
break;
|
||||
case 'games':
|
||||
type = 'Game';
|
||||
break;
|
||||
default:
|
||||
type = 'Movie';
|
||||
break;
|
||||
}
|
||||
|
||||
url = "secondaryitems.html?type=" + type + "&studioId=" + id;
|
||||
if (topParentId) {
|
||||
url += "&parentId=" + topParentId;
|
||||
}
|
||||
return url;
|
||||
}
|
||||
if (item.Type == "Person") {
|
||||
return "itemdetails.html?id=" + id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue