From f346997992031e4f49fe1d0294e54962f8c6eddd Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 13 Sep 2015 20:43:29 -0400 Subject: update translations --- MediaBrowser.Server.Implementations/Localization/Core/de.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'MediaBrowser.Server.Implementations/Localization/Core/de.json') diff --git a/MediaBrowser.Server.Implementations/Localization/Core/de.json b/MediaBrowser.Server.Implementations/Localization/Core/de.json index 277a224ce..37a6725a3 100644 --- a/MediaBrowser.Server.Implementations/Localization/Core/de.json +++ b/MediaBrowser.Server.Implementations/Localization/Core/de.json @@ -172,5 +172,6 @@ "HeaderProducer": "Produzenten", "HeaderWriter": "Autoren", "HeaderParentalRatings": "Altersbeschr\u00e4nkung", - "HeaderCommunityRatings": "Community Bewertungen" + "HeaderCommunityRatings": "Community Bewertungen", + "StartupEmbyServerIsLoading": "Emby Server is loading. Please try again shortly." } \ No newline at end of file -- cgit v1.2.3 From 29923506cada909aa3ebcb7714781663d1671d46 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 16 Sep 2015 21:33:46 -0400 Subject: rework subtitle editor --- MediaBrowser.Controller/Entities/Folder.cs | 23 ++++++++++++++++------ .../Entities/UserViewBuilder.cs | 14 +++++++++++++ .../Library/LibraryManager.cs | 4 ++-- .../Localization/Core/de.json | 2 +- .../Localization/Core/es-MX.json | 2 +- .../Localization/Core/kk.json | 2 +- .../Localization/Core/nl.json | 2 +- .../Localization/Core/pt-BR.json | 2 +- .../Localization/Core/ru.json | 2 +- 9 files changed, 39 insertions(+), 14 deletions(-) (limited to 'MediaBrowser.Server.Implementations/Localization/Core/de.json') diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.cs index bb23d3664..4cdc4657e 100644 --- a/MediaBrowser.Controller/Entities/Folder.cs +++ b/MediaBrowser.Controller/Entities/Folder.cs @@ -371,7 +371,7 @@ namespace MediaBrowser.Controller.Entities public Task ValidateChildren(IProgress progress, CancellationToken cancellationToken) { - return ValidateChildren(progress, cancellationToken, new MetadataRefreshOptions(new DirectoryService(FileSystem))); + return ValidateChildren(progress, cancellationToken, new MetadataRefreshOptions(new DirectoryService(FileSystem))); } /// @@ -474,7 +474,7 @@ namespace MediaBrowser.Controller.Entities currentChild.DateModified = child.DateModified; } - currentChild.IsOffline = false; + await UpdateIsOffline(currentChild, false).ConfigureAwait(false); validChildren.Add(currentChild); } else @@ -509,12 +509,12 @@ namespace MediaBrowser.Controller.Entities else if (!string.IsNullOrEmpty(item.Path) && IsPathOffline(item.Path)) { - item.IsOffline = true; + await UpdateIsOffline(item, true).ConfigureAwait(false); validChildren.Add(item); } else { - item.IsOffline = false; + await UpdateIsOffline(item, false).ConfigureAwait(false); actualRemovals.Add(item); } } @@ -569,6 +569,17 @@ namespace MediaBrowser.Controller.Entities progress.Report(100); } + private Task UpdateIsOffline(BaseItem item, bool newValue) + { + if (item.IsOffline != newValue) + { + item.IsOffline = newValue; + return item.UpdateToRepository(ItemUpdateType.None, CancellationToken.None); + } + + return Task.FromResult(true); + } + private async Task RefreshMetadataRecursive(MetadataRefreshOptions refreshOptions, bool recursive, IProgress progress, CancellationToken cancellationToken) { var children = ActualChildren.ToList(); @@ -693,7 +704,7 @@ namespace MediaBrowser.Controller.Entities /// true if the specified path is offline; otherwise, false. private bool IsPathOffline(string path) { - if (FileSystem.FileExists(path)) + if (FileSystem.FileExists(path)) { return false; } @@ -703,7 +714,7 @@ namespace MediaBrowser.Controller.Entities // Depending on whether the path is local or unc, it may return either null or '\' at the top while (!string.IsNullOrEmpty(path) && path.Length > 1) { - if (FileSystem.DirectoryExists(path)) + if (FileSystem.DirectoryExists(path)) { return false; } diff --git a/MediaBrowser.Controller/Entities/UserViewBuilder.cs b/MediaBrowser.Controller/Entities/UserViewBuilder.cs index ce9a8903a..e05b838d0 100644 --- a/MediaBrowser.Controller/Entities/UserViewBuilder.cs +++ b/MediaBrowser.Controller/Entities/UserViewBuilder.cs @@ -1036,6 +1036,11 @@ namespace MediaBrowser.Controller.Entities return false; } + if (request.IsUnidentified.HasValue) + { + return false; + } + if (!string.IsNullOrWhiteSpace(request.Person)) { return false; @@ -1424,6 +1429,15 @@ namespace MediaBrowser.Controller.Entities } } + if (query.IsUnidentified.HasValue) + { + var val = query.IsUnidentified.Value; + if (item.IsUnidentified != val) + { + return false; + } + } + if (query.HasImdbId.HasValue) { var filterValue = query.HasImdbId.Value; diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs index 8ef363b64..a0d2cd0d6 100644 --- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs +++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs @@ -1637,8 +1637,8 @@ namespace MediaBrowser.Server.Implementations.Library .FirstOrDefault(i => !string.IsNullOrWhiteSpace(i)); } - //private readonly TimeSpan _viewRefreshInterval = TimeSpan.FromHours(24); - private readonly TimeSpan _viewRefreshInterval = TimeSpan.FromMinutes(1); + private readonly TimeSpan _viewRefreshInterval = TimeSpan.FromHours(24); + //private readonly TimeSpan _viewRefreshInterval = TimeSpan.FromMinutes(1); public Task GetNamedView(User user, string name, diff --git a/MediaBrowser.Server.Implementations/Localization/Core/de.json b/MediaBrowser.Server.Implementations/Localization/Core/de.json index 37a6725a3..0464b65ac 100644 --- a/MediaBrowser.Server.Implementations/Localization/Core/de.json +++ b/MediaBrowser.Server.Implementations/Localization/Core/de.json @@ -173,5 +173,5 @@ "HeaderWriter": "Autoren", "HeaderParentalRatings": "Altersbeschr\u00e4nkung", "HeaderCommunityRatings": "Community Bewertungen", - "StartupEmbyServerIsLoading": "Emby Server is loading. Please try again shortly." + "StartupEmbyServerIsLoading": "Emby Server startet, bitte versuchen Sie es gleich noch einmal." } \ No newline at end of file diff --git a/MediaBrowser.Server.Implementations/Localization/Core/es-MX.json b/MediaBrowser.Server.Implementations/Localization/Core/es-MX.json index c6748f8e1..972f94100 100644 --- a/MediaBrowser.Server.Implementations/Localization/Core/es-MX.json +++ b/MediaBrowser.Server.Implementations/Localization/Core/es-MX.json @@ -173,5 +173,5 @@ "HeaderWriter": "Guionistas", "HeaderParentalRatings": "Clasificaci\u00f3n Parental", "HeaderCommunityRatings": "Clasificaciones de la comunidad", - "StartupEmbyServerIsLoading": "Emby Server is loading. Please try again shortly." + "StartupEmbyServerIsLoading": "El servidor Emby esta cargando. Por favor intente de nuevo dentro de poco." } \ No newline at end of file diff --git a/MediaBrowser.Server.Implementations/Localization/Core/kk.json b/MediaBrowser.Server.Implementations/Localization/Core/kk.json index 0ab2b6dd7..863523606 100644 --- a/MediaBrowser.Server.Implementations/Localization/Core/kk.json +++ b/MediaBrowser.Server.Implementations/Localization/Core/kk.json @@ -173,5 +173,5 @@ "HeaderWriter": "\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439\u0448\u0456\u043b\u0435\u0440", "HeaderParentalRatings": "\u0416\u0430\u0441\u0442\u0430\u0441 \u0441\u0430\u043d\u0430\u0442\u0442\u0430\u0440", "HeaderCommunityRatings": "\u049a\u0430\u0443\u044b\u043c \u0431\u0430\u0493\u0430\u043b\u0430\u0443\u043b\u0430\u0440\u044b", - "StartupEmbyServerIsLoading": "Emby Server is loading. Please try again shortly." + "StartupEmbyServerIsLoading": "Emby Server \u0436\u04af\u043a\u0442\u0435\u043b\u0443\u0434\u0435. \u04d8\u0440\u0435\u043a\u0435\u0442\u0442\u0456 \u043a\u04e9\u043f \u04b1\u0437\u0430\u043c\u0430\u0439 \u049b\u0430\u0439\u0442\u0430\u043b\u0430\u04a3\u044b\u0437." } \ No newline at end of file diff --git a/MediaBrowser.Server.Implementations/Localization/Core/nl.json b/MediaBrowser.Server.Implementations/Localization/Core/nl.json index 3deeab69e..b32ebefc3 100644 --- a/MediaBrowser.Server.Implementations/Localization/Core/nl.json +++ b/MediaBrowser.Server.Implementations/Localization/Core/nl.json @@ -173,5 +173,5 @@ "HeaderWriter": "Schrijvers", "HeaderParentalRatings": "Ouderlijke toezicht", "HeaderCommunityRatings": "Gemeenschapswaardering", - "StartupEmbyServerIsLoading": "Emby Server is loading. Please try again shortly." + "StartupEmbyServerIsLoading": "Emby Server is aan het laden, probeer het later opnieuw." } \ No newline at end of file diff --git a/MediaBrowser.Server.Implementations/Localization/Core/pt-BR.json b/MediaBrowser.Server.Implementations/Localization/Core/pt-BR.json index 76b66278b..9548262c9 100644 --- a/MediaBrowser.Server.Implementations/Localization/Core/pt-BR.json +++ b/MediaBrowser.Server.Implementations/Localization/Core/pt-BR.json @@ -173,5 +173,5 @@ "HeaderWriter": "Escritores", "HeaderParentalRatings": "Classifica\u00e7\u00f5es Parentais", "HeaderCommunityRatings": "Avalia\u00e7\u00f5es da comunidade", - "StartupEmbyServerIsLoading": "Emby Server is loading. Please try again shortly." + "StartupEmbyServerIsLoading": "O Servidor Emby est\u00e1 carregando. Por favor, tente novamente em breve." } \ No newline at end of file diff --git a/MediaBrowser.Server.Implementations/Localization/Core/ru.json b/MediaBrowser.Server.Implementations/Localization/Core/ru.json index e4d44875a..f36db9e25 100644 --- a/MediaBrowser.Server.Implementations/Localization/Core/ru.json +++ b/MediaBrowser.Server.Implementations/Localization/Core/ru.json @@ -173,5 +173,5 @@ "HeaderWriter": "\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0441\u0442\u044b", "HeaderParentalRatings": "\u0412\u043e\u0437\u0440\u0430\u0441\u0442\u043d\u0430\u044f \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f", "HeaderCommunityRatings": "\u041e\u0431\u0449. \u043e\u0446\u0435\u043d\u043a\u0438", - "StartupEmbyServerIsLoading": "Emby Server is loading. Please try again shortly." + "StartupEmbyServerIsLoading": "Emby Server \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u0432\u0441\u043a\u043e\u0440\u0435." } \ No newline at end of file -- cgit v1.2.3 From 00bb68d2e8801c3b89b6cb5e5af495aad4f352f5 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 19 Oct 2015 11:58:52 -0400 Subject: update translations --- .../Localization/Core/de.json | 2 +- .../Localization/Core/fr.json | 2 +- .../Localization/Core/zh-CN.json | 4 +- .../Localization/Core/zh-HK.json | 52 +++++++++++----------- 4 files changed, 30 insertions(+), 30 deletions(-) (limited to 'MediaBrowser.Server.Implementations/Localization/Core/de.json') diff --git a/MediaBrowser.Server.Implementations/Localization/Core/de.json b/MediaBrowser.Server.Implementations/Localization/Core/de.json index 0464b65ac..1939df199 100644 --- a/MediaBrowser.Server.Implementations/Localization/Core/de.json +++ b/MediaBrowser.Server.Implementations/Localization/Core/de.json @@ -25,7 +25,7 @@ "LabelBrowseLibrary": "Bibliothek durchsuchen", "LabelConfigureServer": "Konfiguriere Emby", "LabelRestartServer": "Server neustarten", - "CategorySync": "Synchronisieren", + "CategorySync": "Sync", "CategoryUser": "Benutzer", "CategorySystem": "System", "CategoryApplication": "Anwendung", diff --git a/MediaBrowser.Server.Implementations/Localization/Core/fr.json b/MediaBrowser.Server.Implementations/Localization/Core/fr.json index b32d4cb0a..182e89bf6 100644 --- a/MediaBrowser.Server.Implementations/Localization/Core/fr.json +++ b/MediaBrowser.Server.Implementations/Localization/Core/fr.json @@ -20,7 +20,7 @@ "LabelExit": "Quitter", "LabelVisitCommunity": "Visiter la Communaut\u00e9", "LabelGithub": "Github", - "LabelApiDocumentation": "Documentation API", + "LabelApiDocumentation": "Documentation de l'API", "LabelDeveloperResources": "Ressources pour d\u00e9veloppeurs", "LabelBrowseLibrary": "Parcourir la biblioth\u00e8que", "LabelConfigureServer": "Configurer Emby", diff --git a/MediaBrowser.Server.Implementations/Localization/Core/zh-CN.json b/MediaBrowser.Server.Implementations/Localization/Core/zh-CN.json index 3368e5ccd..a9430c0c2 100644 --- a/MediaBrowser.Server.Implementations/Localization/Core/zh-CN.json +++ b/MediaBrowser.Server.Implementations/Localization/Core/zh-CN.json @@ -21,9 +21,9 @@ "LabelVisitCommunity": "\u8bbf\u95ee\u793e\u533a", "LabelGithub": "Github", "LabelApiDocumentation": "API\u6587\u6863", - "LabelDeveloperResources": "\u5f00\u53d1\u8d44\u6e90", + "LabelDeveloperResources": "\u5f00\u53d1\u8005\u8d44\u6e90", "LabelBrowseLibrary": "\u6d4f\u89c8\u5a92\u4f53\u5e93", - "LabelConfigureServer": "Configure Emby", + "LabelConfigureServer": "\u914d\u7f6eEmby", "LabelRestartServer": "\u91cd\u542f\u670d\u52a1\u5668", "CategorySync": "\u540c\u6b65", "CategoryUser": "\u7528\u6237", diff --git a/MediaBrowser.Server.Implementations/Localization/Core/zh-HK.json b/MediaBrowser.Server.Implementations/Localization/Core/zh-HK.json index 3abc8d75a..8d25a28c4 100644 --- a/MediaBrowser.Server.Implementations/Localization/Core/zh-HK.json +++ b/MediaBrowser.Server.Implementations/Localization/Core/zh-HK.json @@ -6,17 +6,17 @@ "FolderTypeMusic": "\u97f3\u6a02", "FolderTypeAdultVideos": "\u6210\u4eba\u5f71\u7247", "FolderTypePhotos": "\u76f8\u7247", - "FolderTypeMusicVideos": "\u97f3\u6a02\u5f71\u7247", - "FolderTypeHomeVideos": "\u9996\u9801\u5f71\u7247", + "FolderTypeMusicVideos": "MV", + "FolderTypeHomeVideos": "\u500b\u4eba\u5f71\u7247", "FolderTypeGames": "\u904a\u6232", "FolderTypeBooks": "\u66f8\u85c9", "FolderTypeTvShows": "\u96fb\u8996\u7bc0\u76ee", "FolderTypeInherit": "\u7e7c\u627f", "HeaderCastCrew": "\u6f14\u54e1\u9663\u5bb9", - "HeaderPeople": "People", + "HeaderPeople": "\u4eba\u7269", "ValueSpecialEpisodeName": "Special - {0}", "LabelChapterName": "Chapter {0}", - "NameSeasonNumber": "Season {0}", + "NameSeasonNumber": "\u5287\u96c6\u5b63\u5ea6 {0}", "LabelExit": "\u96e2\u958b", "LabelVisitCommunity": "\u8a2a\u554f\u8a0e\u8ad6\u5340", "LabelGithub": "Github", @@ -24,7 +24,7 @@ "LabelDeveloperResources": "\u958b\u767c\u8005\u8cc7\u6e90", "LabelBrowseLibrary": "\u700f\u89bd\u8cc7\u6599\u5eab", "LabelConfigureServer": "\u8a2d\u7f6e Emby", - "LabelRestartServer": "\u91cd\u555f\u4f3a\u670d\u5668", + "LabelRestartServer": "\u91cd\u65b0\u555f\u52d5\u4f3a\u670d\u5668", "CategorySync": "\u540c\u6b65", "CategoryUser": "User", "CategorySystem": "System", @@ -48,34 +48,34 @@ "NotificationOptionNewLibraryContentMultiple": "New content added (multiple)", "NotificationOptionCameraImageUploaded": "Camera image uploaded", "NotificationOptionUserLockedOut": "User locked out", - "NotificationOptionServerRestartRequired": "Server restart required", + "NotificationOptionServerRestartRequired": "\u9700\u8981\u91cd\u65b0\u555f\u52d5", "ViewTypePlaylists": "Playlists", "ViewTypeMovies": "Movies", "ViewTypeTvShows": "TV", - "ViewTypeGames": "Games", + "ViewTypeGames": "\u904a\u6232", "ViewTypeMusic": "Music", "ViewTypeMusicGenres": "Genres", "ViewTypeMusicArtists": "Artists", - "ViewTypeBoxSets": "Collections", + "ViewTypeBoxSets": "\u85cf\u54c1", "ViewTypeChannels": "Channels", "ViewTypeLiveTV": "Live TV", "ViewTypeLiveTvNowPlaying": "Now Airing", - "ViewTypeLatestGames": "Latest Games", - "ViewTypeRecentlyPlayedGames": "Recently Played", + "ViewTypeLatestGames": "\u6700\u8fd1\u904a\u6232", + "ViewTypeRecentlyPlayedGames": "\u6700\u8fd1\u64ad\u653e", "ViewTypeGameFavorites": "Favorites", - "ViewTypeGameSystems": "Game Systems", + "ViewTypeGameSystems": "\u904a\u6232\u7cfb\u7d71", "ViewTypeGameGenres": "Genres", "ViewTypeTvResume": "Resume", "ViewTypeTvNextUp": "Next Up", "ViewTypeTvLatest": "Latest", - "ViewTypeTvShowSeries": "Series", + "ViewTypeTvShowSeries": "\u96fb\u8996\u5287", "ViewTypeTvGenres": "Genres", - "ViewTypeTvFavoriteSeries": "Favorite Series", - "ViewTypeTvFavoriteEpisodes": "Favorite Episodes", + "ViewTypeTvFavoriteSeries": "\u6211\u7684\u6700\u611b\u96fb\u8996\u5287", + "ViewTypeTvFavoriteEpisodes": "\u6211\u7684\u6700\u611b\u5287\u96c6", "ViewTypeMovieResume": "Resume", "ViewTypeMovieLatest": "Latest", "ViewTypeMovieMovies": "Movies", - "ViewTypeMovieCollections": "Collections", + "ViewTypeMovieCollections": "\u85cf\u54c1", "ViewTypeMovieFavorites": "Favorites", "ViewTypeMovieGenres": "Genres", "ViewTypeMusicLatest": "Latest", @@ -83,11 +83,11 @@ "ViewTypeMusicAlbums": "Albums", "ViewTypeMusicAlbumArtists": "Album Artists", "HeaderOtherDisplaySettings": "Display Settings", - "ViewTypeMusicSongs": "Songs", + "ViewTypeMusicSongs": "\u6b4c\u66f2", "ViewTypeMusicFavorites": "Favorites", "ViewTypeMusicFavoriteAlbums": "Favorite Albums", "ViewTypeMusicFavoriteArtists": "Favorite Artists", - "ViewTypeMusicFavoriteSongs": "Favorite Songs", + "ViewTypeMusicFavoriteSongs": "\u6211\u7684\u6700\u611b\u6b4c\u66f2", "ViewTypeFolders": "Folders", "ViewTypeLiveTvRecordingGroups": "Recordings", "ViewTypeLiveTvChannels": "Channels", @@ -104,7 +104,7 @@ "DeviceOnlineWithName": "{0} is connected", "UserOnlineFromDevice": "{0} is online from {1}", "ProviderValue": "Provider: {0}", - "SubtitlesDownloadedForItem": "Subtitles downloaded for {0}", + "SubtitlesDownloadedForItem": "\u5df2\u7d93\u70ba {0} \u4e0b\u8f09\u4e86\u5b57\u5e55", "UserConfigurationUpdatedWithName": "User configuration has been updated for {0}", "UserCreatedWithName": "User {0} has been created", "UserPasswordChangedWithName": "Password has been changed for user {0}", @@ -119,7 +119,7 @@ "UserOfflineFromDevice": "{0} has disconnected from {1}", "UserStartedPlayingItemWithValues": "{0} has started playing {1}", "UserStoppedPlayingItemWithValues": "{0} has stopped playing {1}", - "SubtitleDownloadFailureForItem": "Subtitles failed to download for {0}", + "SubtitleDownloadFailureForItem": "\u70ba {0} \u4e0b\u8f09\u5b57\u5e55\u5931\u6557", "HeaderUnidentified": "Unidentified", "HeaderImagePrimary": "Primary", "HeaderImageBackdrop": "Backdrop", @@ -137,9 +137,9 @@ "HeaderReleaseDate": "Release date", "HeaderRuntime": "Runtime", "HeaderPlayCount": "Play Count", - "HeaderSeason": "Season", - "HeaderSeasonNumber": "Season number", - "HeaderSeries": "Series:", + "HeaderSeason": "\u5287\u96c6\u5b63\u5ea6", + "HeaderSeasonNumber": "\u5287\u96c6\u5b63\u5ea6\u6578\u76ee", + "HeaderSeries": "\u96fb\u8996\u5287\uff1a", "HeaderNetwork": "Network", "HeaderYear": "Year:", "HeaderYears": "Years:", @@ -147,7 +147,7 @@ "HeaderCommunityRating": "Community rating", "HeaderTrailers": "Trailers", "HeaderSpecials": "Specials", - "HeaderGameSystems": "Game Systems", + "HeaderGameSystems": "\u904a\u6232\u7cfb\u7d71", "HeaderPlayers": "Players:", "HeaderAlbumArtists": "Album Artists", "HeaderAlbums": "Albums", @@ -157,18 +157,18 @@ "HeaderVideo": "\u5f71\u7247", "HeaderEmbeddedImage": "Embedded image", "HeaderResolution": "Resolution", - "HeaderSubtitles": "Subtitles", + "HeaderSubtitles": "\u5b57\u5e55", "HeaderGenres": "Genres", "HeaderCountries": "Countries", "HeaderStatus": "\u72c0\u614b", "HeaderTracks": "Tracks", - "HeaderMusicArtist": "Music artist", + "HeaderMusicArtist": "\u6b4c\u624b", "HeaderLocked": "Locked", "HeaderStudios": "Studios", "HeaderActor": "Actors", "HeaderComposer": "Composers", "HeaderDirector": "Directors", - "HeaderGuestStar": "Guest star", + "HeaderGuestStar": "\u7279\u7d04\u660e\u661f", "HeaderProducer": "Producers", "HeaderWriter": "Writers", "HeaderParentalRatings": "Parental Ratings", -- cgit v1.2.3