commit
6379391f87
@ -0,0 +1,36 @@
|
||||
{
|
||||
"MusicVideos": "Музичні відео",
|
||||
"Music": "Музика",
|
||||
"Movies": "Фільми",
|
||||
"MessageApplicationUpdatedTo": "Jellyfin Server був оновлений до версії {0}",
|
||||
"MessageApplicationUpdated": "Jellyfin Server був оновлений",
|
||||
"Latest": "Останні",
|
||||
"LabelIpAddressValue": "IP-адреси: {0}",
|
||||
"ItemRemovedWithName": "{0} видалено з бібліотеки",
|
||||
"ItemAddedWithName": "{0} додано до бібліотеки",
|
||||
"HeaderNextUp": "Наступний",
|
||||
"HeaderLiveTV": "Ефірне ТБ",
|
||||
"HeaderFavoriteSongs": "Улюблені пісні",
|
||||
"HeaderFavoriteShows": "Улюблені шоу",
|
||||
"HeaderFavoriteEpisodes": "Улюблені серії",
|
||||
"HeaderFavoriteArtists": "Улюблені виконавці",
|
||||
"HeaderFavoriteAlbums": "Улюблені альбоми",
|
||||
"HeaderContinueWatching": "Продовжити перегляд",
|
||||
"HeaderCameraUploads": "Завантажено з камери",
|
||||
"HeaderAlbumArtists": "Виконавці альбомів",
|
||||
"Genres": "Жанри",
|
||||
"Folders": "Директорії",
|
||||
"Favorites": "Улюблені",
|
||||
"DeviceOnlineWithName": "{0} під'єднано",
|
||||
"DeviceOfflineWithName": "{0} від'єднано",
|
||||
"Collections": "Колекції",
|
||||
"ChapterNameValue": "Глава {0}",
|
||||
"Channels": "Канали",
|
||||
"CameraImageUploadedFrom": "Нова фотографія завантажена з {0}",
|
||||
"Books": "Книги",
|
||||
"AuthenticationSucceededWithUserName": "{0} успішно авторизовані",
|
||||
"Artists": "Виконавці",
|
||||
"Application": "Додаток",
|
||||
"AppDeviceValues": "Додаток: {0}, Пристрій: {1}",
|
||||
"Albums": "Альбоми"
|
||||
}
|
@ -1,40 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated from a template.
|
||||
//
|
||||
// Manual changes to this file may cause unexpected behavior in your application.
|
||||
// Manual changes to this file will be overwritten if the code is regenerated.
|
||||
//
|
||||
// Produced by Entity Framework Visual Editor
|
||||
// https://github.com/msawczyn/EFDesigner
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
|
||||
namespace Jellyfin.Data.Enums
|
||||
{
|
||||
public enum PermissionKind : Int32
|
||||
{
|
||||
IsAdministrator,
|
||||
IsHidden,
|
||||
IsDisabled,
|
||||
BlockUnrateditems,
|
||||
EnbleSharedDeviceControl,
|
||||
EnableRemoteAccess,
|
||||
EnableLiveTvManagement,
|
||||
EnableLiveTvAccess,
|
||||
EnableMediaPlayback,
|
||||
EnableAudioPlaybackTranscoding,
|
||||
EnableVideoPlaybackTranscoding,
|
||||
EnableContentDeletion,
|
||||
EnableContentDownloading,
|
||||
EnableSyncTranscoding,
|
||||
EnableMediaConversion,
|
||||
EnableAllDevices,
|
||||
EnableAllChannels,
|
||||
EnableAllFolders,
|
||||
EnablePublicSharing,
|
||||
AccessSchedules
|
||||
}
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated from a template.
|
||||
//
|
||||
// Manual changes to this file may cause unexpected behavior in your application.
|
||||
// Manual changes to this file will be overwritten if the code is regenerated.
|
||||
//
|
||||
// Produced by Entity Framework Visual Editor
|
||||
// https://github.com/msawczyn/EFDesigner
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
|
||||
namespace Jellyfin.Data.Enums
|
||||
{
|
||||
public enum PreferenceKind : Int32
|
||||
{
|
||||
MaxParentalRating,
|
||||
BlockedTags,
|
||||
RemoteClientBitrateLimit,
|
||||
EnabledDevices,
|
||||
EnabledChannels,
|
||||
EnabledFolders,
|
||||
EnableContentDeletionFromFolders
|
||||
}
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
namespace Jellyfin.Data.Enums
|
||||
{
|
||||
public enum PermissionKind
|
||||
{
|
||||
IsAdministrator,
|
||||
IsHidden,
|
||||
IsDisabled,
|
||||
BlockUnrateditems,
|
||||
EnbleSharedDeviceControl,
|
||||
EnableRemoteAccess,
|
||||
EnableLiveTvManagement,
|
||||
EnableLiveTvAccess,
|
||||
EnableMediaPlayback,
|
||||
EnableAudioPlaybackTranscoding,
|
||||
EnableVideoPlaybackTranscoding,
|
||||
EnableContentDeletion,
|
||||
EnableContentDownloading,
|
||||
EnableSyncTranscoding,
|
||||
EnableMediaConversion,
|
||||
EnableAllDevices,
|
||||
EnableAllChannels,
|
||||
EnableAllFolders,
|
||||
EnablePublicSharing,
|
||||
AccessSchedules
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
namespace Jellyfin.Data.Enums
|
||||
{
|
||||
public enum PreferenceKind
|
||||
{
|
||||
MaxParentalRating,
|
||||
BlockedTags,
|
||||
RemoteClientBitrateLimit,
|
||||
EnabledDevices,
|
||||
EnabledChannels,
|
||||
EnabledFolders,
|
||||
EnableContentDeletionFromFolders
|
||||
}
|
||||
}
|
@ -0,0 +1,126 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace MediaBrowser.Api.Playback
|
||||
{
|
||||
/// <summary>
|
||||
/// Get various codec strings for use in HLS playlists.
|
||||
/// </summary>
|
||||
static class HlsCodecStringFactory
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Gets a MP3 codec string.
|
||||
/// </summary>
|
||||
/// <returns>MP3 codec string.</returns>
|
||||
public static string GetMP3String()
|
||||
{
|
||||
return "mp4a.40.34";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an AAC codec string.
|
||||
/// </summary>
|
||||
/// <param name="profile">AAC profile.</param>
|
||||
/// <returns>AAC codec string.</returns>
|
||||
public static string GetAACString(string profile)
|
||||
{
|
||||
StringBuilder result = new StringBuilder("mp4a", 9);
|
||||
|
||||
if (string.Equals(profile, "HE", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
result.Append(".40.5");
|
||||
}
|
||||
else
|
||||
{
|
||||
// Default to LC if profile is invalid
|
||||
result.Append(".40.2");
|
||||
}
|
||||
|
||||
return result.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a H.264 codec string.
|
||||
/// </summary>
|
||||
/// <param name="profile">H.264 profile.</param>
|
||||
/// <param name="level">H.264 level.</param>
|
||||
/// <returns>H.264 string.</returns>
|
||||
public static string GetH264String(string profile, int level)
|
||||
{
|
||||
StringBuilder result = new StringBuilder("avc1", 11);
|
||||
|
||||
if (string.Equals(profile, "high", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
result.Append(".6400");
|
||||
}
|
||||
else if (string.Equals(profile, "main", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
result.Append(".4D40");
|
||||
}
|
||||
else if (string.Equals(profile, "baseline", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
result.Append(".42E0");
|
||||
}
|
||||
else
|
||||
{
|
||||
// Default to constrained baseline if profile is invalid
|
||||
result.Append(".4240");
|
||||
}
|
||||
|
||||
string levelHex = level.ToString("X2");
|
||||
result.Append(levelHex);
|
||||
|
||||
return result.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a H.265 codec string.
|
||||
/// </summary>
|
||||
/// <param name="profile">H.265 profile.</param>
|
||||
/// <param name="level">H.265 level.</param>
|
||||
/// <returns>H.265 string.</returns>
|
||||
public static string GetH265String(string profile, int level)
|
||||
{
|
||||
// The h265 syntax is a bit of a mystery at the time this comment was written.
|
||||
// This is what I've found through various sources:
|
||||
// FORMAT: [codecTag].[profile].[constraint?].L[level * 30].[UNKNOWN]
|
||||
StringBuilder result = new StringBuilder("hev1", 16);
|
||||
|
||||
if (string.Equals(profile, "main10", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
result.Append(".2.6");
|
||||
}
|
||||
else
|
||||
{
|
||||
// Default to main if profile is invalid
|
||||
result.Append(".1.6");
|
||||
}
|
||||
|
||||
result.Append(".L")
|
||||
.Append(level * 3)
|
||||
.Append(".B0");
|
||||
|
||||
return result.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an AC-3 codec string.
|
||||
/// </summary>
|
||||
/// <returns>AC-3 codec string.</returns>
|
||||
public static string GetAC3String()
|
||||
{
|
||||
return "mp4a.a5";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an E-AC-3 codec string.
|
||||
/// </summary>
|
||||
/// <returns>E-AC-3 codec string.</returns>
|
||||
public static string GetEAC3String()
|
||||
{
|
||||
return "mp4a.a6";
|
||||
}
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue