mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 17:14:42 +01:00
add Add to collection buttons
This commit is contained in:
@@ -393,7 +393,9 @@ namespace MediaBrowser.Server.Implementations.Channels
|
||||
|
||||
private async Task<Channel> GetChannel(IChannel channelInfo, CancellationToken cancellationToken)
|
||||
{
|
||||
var path = Path.Combine(_config.ApplicationPaths.ItemsByNamePath, "channels", _fileSystem.GetValidFilename(channelInfo.Name));
|
||||
var id = GetInternalChannelId(channelInfo.Name);
|
||||
|
||||
var path = Channel.GetInternalMetadataPath(_config.ApplicationPaths.InternalMetadataPath, id);
|
||||
|
||||
var fileInfo = new DirectoryInfo(path);
|
||||
|
||||
@@ -414,8 +416,6 @@ namespace MediaBrowser.Server.Implementations.Channels
|
||||
isNew = true;
|
||||
}
|
||||
|
||||
var id = GetInternalChannelId(channelInfo.Name);
|
||||
|
||||
var item = _libraryManager.GetItemById(id) as Channel;
|
||||
|
||||
if (item == null)
|
||||
|
||||
@@ -1646,7 +1646,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
|
||||
var id = GetNewItemId("7_namedview_" + name + user.Id.ToString("N") + parentId, typeof(UserView));
|
||||
|
||||
var path = BaseItem.GetInternalMetadataPathForId(id);
|
||||
var path = Path.Combine(ConfigurationManager.ApplicationPaths.InternalMetadataPath, "views", "specialviews", id.ToString("N"));
|
||||
|
||||
var item = GetItemById(id) as UserView;
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ using MediaBrowser.Controller.Library;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
||||
namespace MediaBrowser.Server.Implementations.Library.Resolvers.Movies
|
||||
{
|
||||
@@ -46,17 +45,6 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers.Movies
|
||||
return null;
|
||||
}
|
||||
|
||||
private bool IsInvalid(string collectionType)
|
||||
{
|
||||
var validCollectionTypes = new[]
|
||||
{
|
||||
CollectionType.Movies,
|
||||
CollectionType.BoxSets
|
||||
};
|
||||
|
||||
return !validCollectionTypes.Contains(collectionType ?? string.Empty, StringComparer.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the initial item values.
|
||||
/// </summary>
|
||||
|
||||
@@ -45,8 +45,14 @@
|
||||
"LabelFailed": "(failed)",
|
||||
"ButtonHelp": "Help",
|
||||
"ButtonSave": "Save",
|
||||
"HeaderAddToCollection": "Add to Collection",
|
||||
"NewCollectionNameExample": "Example: Star Wars Collection",
|
||||
"OptionSearchForInternetMetadata": "Search the internet for artwork and metadata",
|
||||
"LabelSelectCollection": "Select collection:",
|
||||
"HeaderDevices": "Devices",
|
||||
"ButtonScheduledTasks": "Scheduled tasks",
|
||||
"MessageItemsAdded": "Items added",
|
||||
"ButtonAddToCollection": "Add to collection",
|
||||
"HeaderSelectCertificatePath": "Select Certificate Path",
|
||||
"ConfirmMessageScheduledTaskButton": "This operation normally runs automatically as a scheduled task. It can also be run manually here. To configure the scheduled task, see:",
|
||||
"HeaderSupporterBenefit": "A supporter membership provides additional benefits such as access to premium plugins, internet channel content, and more. {0}Learn more{1}.",
|
||||
@@ -223,6 +229,7 @@
|
||||
"ButtonRefresh": "Refresh",
|
||||
"LabelCurrentPath": "Current path:",
|
||||
"HeaderSelectMediaPath": "Select Media Path",
|
||||
"HeaderSelectPath": "Select Path",
|
||||
"ButtonNetwork": "Network",
|
||||
"MessageDirectoryPickerInstruction": "Network paths can be entered manually in the event the Network button fails to locate your devices. For example, {0} or {1}.",
|
||||
"HeaderMenu": "Menu",
|
||||
|
||||
@@ -55,6 +55,8 @@
|
||||
"HeaderAudio": "Audio",
|
||||
"HeaderVideo": "Video",
|
||||
"HeaderPaths": "Paths",
|
||||
"LabelSyncTempPath": "Temporary file path:",
|
||||
"LabelSyncTempPathHelp": "",
|
||||
"LabelCustomCertificatePath": "Custom certificate path:",
|
||||
"LabelCustomCertificatePathHelp": "Supply your own ssl certificate. If omitted, the server will create a self-signed certificate.",
|
||||
"TitleNotifications": "Notifications",
|
||||
@@ -516,10 +518,7 @@
|
||||
"LabelPreferredDisplayLanguageHelp": "Translating Media Browser is an ongoing project and is not yet complete.",
|
||||
"LabelReadHowYouCanContribute": "Read about how you can contribute.",
|
||||
"HeaderNewCollection": "New Collection",
|
||||
"HeaderAddToCollection": "Add to Collection",
|
||||
"ButtonSubmit": "Submit",
|
||||
"NewCollectionNameExample": "Example: Star Wars Collection",
|
||||
"OptionSearchForInternetMetadata": "Search the internet for artwork and metadata",
|
||||
"ButtonCreate": "Create",
|
||||
"LabelCustomCss": "Custom css:",
|
||||
"LabelCustomCssHelp": "Apply your own custom css to the web interface.",
|
||||
@@ -891,6 +890,8 @@
|
||||
"OptionDefaultSort": "Default",
|
||||
"OptionCommunityMostWatchedSort": "Most Watched",
|
||||
"TabNextUp": "Next Up",
|
||||
"HeaderBecomeMediaBrowserSupporter": "Become a Media Browser Supporter",
|
||||
"TextAccessPremiumFeatures": "Enjoy Premium Features",
|
||||
"MessageNoMovieSuggestionsAvailable": "No movie suggestions are currently available. Start watching and rating your movies, and then come back to view your recommendations.",
|
||||
"MessageNoCollectionsAvailable": "Collections allow you to enjoy personalized groupings of Movies, Series, Albums, Books and Games. Click the + button to start creating Collections.",
|
||||
"MessageNoPlaylistsAvailable": "Playlists allow you to create lists of content to play consecutively at a time. To add items to playlists, right click or tap and hold, then select Add to Playlist.",
|
||||
@@ -907,7 +908,6 @@
|
||||
"LabelChannelDownloadAge": "Delete content after: (days)",
|
||||
"LabelChannelDownloadAgeHelp": "Downloaded content older than this will be deleted. It will remain playable via internet streaming.",
|
||||
"ChannelSettingsFormHelp": "Install channels such as Trailers and Vimeo in the plugin catalog.",
|
||||
"LabelSelectCollection": "Select collection:",
|
||||
"ButtonOptions": "Options",
|
||||
"ViewTypeMovies": "Movies",
|
||||
"ViewTypeTvShows": "TV",
|
||||
@@ -969,6 +969,7 @@
|
||||
"LabelGroupChannelsIntoViews": "Display the following channels directly within my views:",
|
||||
"LabelGroupChannelsIntoViewsHelp": "If enabled, these channels will be displayed directly alongside other views. If disabled, they'll be displayed within a separate Channels view.",
|
||||
"LabelDisplayCollectionsView": "Display a collections view to show movie collections",
|
||||
"LabelDisplayCollectionsViewHelp": "This will create a separate view to display collections that you've created or have access to. To create a collection, right-click or tap-hold any movie and select 'Add to Collection'. ",
|
||||
"LabelKodiMetadataEnableExtraThumbs": "Copy extrafanart into extrathumbs",
|
||||
"LabelKodiMetadataEnableExtraThumbsHelp": "When downloading images they can be saved into both extrafanart and extrathumbs for maximum Kodi skin compatibility.",
|
||||
"TabServices": "Services",
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace MediaBrowser.Server.Implementations.Themes
|
||||
{
|
||||
get
|
||||
{
|
||||
return Path.Combine(_appPaths.ItemsByNamePath, "appthemes");
|
||||
return Path.Combine(_appPaths.ProgramDataPath, "appthemes");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user