update translations

This commit is contained in:
Luke Pulverenti 2014-05-09 15:43:06 -04:00
parent 301d946c14
commit 843a0eee28
26 changed files with 154 additions and 156 deletions

View File

@ -77,64 +77,64 @@
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td>Series name</td> <td>${LabelSeriesName}</td>
<td>%sn</td> <td>%sn</td>
<td>Series Name</td> <td>${LabelSeriesName}</td>
</tr> </tr>
<tr> <tr>
<td>Series name</td> <td>${LabelSeriesName}</td>
<td>%s.n</td> <td>%s.n</td>
<td>Series.Name</td> <td>${ValueSeriesNamePeriod}</td>
</tr> </tr>
<tr> <tr>
<td>Series name</td> <td>${LabelSeriesName}</td>
<td>%s_n</td> <td>%s_n</td>
<td>Series_Name</td> <td>${ValueSeriesNameUnderscore}</td>
</tr> </tr>
<tr> <tr>
<td>Season number</td> <td>${LabelSeasonNumber}</td>
<td>%s</td> <td>%s</td>
<td>1</td> <td>1</td>
</tr> </tr>
<tr> <tr>
<td>Season number</td> <td>${LabelSeasonNumber}</td>
<td>%0s</td> <td>%0s</td>
<td>01</td> <td>01</td>
</tr> </tr>
<tr> <tr>
<td>Episode number</td> <td>${LabelEpisodeNumber}</td>
<td>%e</td> <td>%e</td>
<td>4</td> <td>4</td>
</tr> </tr>
<tr> <tr>
<td>Episode number</td> <td>${LabelEpisodeNumber}</td>
<td>%0e</td> <td>%0e</td>
<td>04</td> <td>04</td>
</tr> </tr>
<tr> <tr>
<td>Ending episode number</td> <td>${LabelEndingEpisodeNumber}</td>
<td>%ed</td> <td>%ed</td>
<td>5</td> <td>5</td>
</tr> </tr>
<tr> <tr>
<td>Ending episode number</td> <td>${LabelEndingEpisodeNumber}</td>
<td>%0ed</td> <td>%0ed</td>
<td>05</td> <td>05</td>
</tr> </tr>
<tr> <tr>
<td>Episode name</td> <td>${LabelEpisodeName}</td>
<td>%en</td> <td>%en</td>
<td>Episode Name</td> <td>${LabelEpisodeName}</td>
</tr> </tr>
<tr> <tr>
<td>Episode name</td> <td>${LabelEpisodeName}</td>
<td>%e.n</td> <td>%e.n</td>
<td>Episode.Name</td> <td>${ValueEpisodeNamePeriod}</td>
</tr> </tr>
<tr> <tr>
<td>Episode name</td> <td>${LabelEpisodeName}</td>
<td>%e_n</td> <td>%e_n</td>
<td>Episode_Name</td> <td>${ValueEpisodeNameUnderscore}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@ -458,7 +458,7 @@ a.itemTag:hover {
} }
.libraryPanelHeader { .libraryPanelHeader {
margin: 5px 0 25px 0; margin: 5px 0 15px 0;
} }
.libraryPanelHeader a { .libraryPanelHeader a {
@ -515,7 +515,7 @@ a.itemTag:hover {
.detailImageProgressContainer progress { .detailImageProgressContainer progress {
width: 100%; width: 100%;
margin: 0 auto; margin: 0 auto;
height: 7px; height: 6px;
} }
.viewControls, .listTopPaging { .viewControls, .listTopPaging {

View File

@ -22,7 +22,7 @@
display: none; display: none;
} }
.desktopLibraryMenuDivider { .libraryMenuDivider {
height: 1px; height: 1px;
background: #333; background: #333;
margin: .5em 0; margin: .5em 0;
@ -74,80 +74,62 @@
.viewMenuTextLink { .viewMenuTextLink {
display: block; display: block;
padding: .6em .5em .6em 37px!important; padding: .6em .5em .6em 41px!important;
font-size: 15px; font-size: 15px;
font-weight: 300!important; font-weight: 300!important;
font-family: Roboto; font-family: Roboto;
background-repeat: no-repeat;
background-size: 18px 18px;
} }
.musicViewMenu { .musicViewMenu {
background-image: url(images/items/folders/music.png); background-image: url(images/items/folders/music.png);
background-repeat: no-repeat; background-position: 14px 8px;
background-size: 18px 18px;
background-position: 10px 8px;
} }
.tvshowsViewMenu { .tvshowsViewMenu {
background-image: url(images/items/folders/tv.png); background-image: url(images/items/folders/tv.png);
background-repeat: no-repeat; background-position: 14px 8px;
background-size: 18px 18px;
background-position: 10px 8px;
} }
.moviesViewMenu { .moviesViewMenu {
background-image: url(images/items/folders/movies.png); background-image: url(images/items/folders/movies.png);
background-repeat: no-repeat; background-position: 14px center;
background-size: 18px 18px;
background-position: 10px center;
} }
.gamesViewMenu { .gamesViewMenu {
background-image: url(images/items/folders/games.png); background-image: url(images/items/folders/games.png);
background-repeat: no-repeat; background-position: 14px 8px;
background-size: 18px 18px;
background-position: 10px 8px;
} }
.channelsViewMenu { .channelsViewMenu {
background-image: url(images/items/folders/channels.png); background-image: url(images/items/folders/channels.png);
background-repeat: no-repeat; background-position: 14px center;
background-size: 18px 18px;
background-position: 10px center;
} }
.booksViewMenu { .booksViewMenu {
background-image: url(images/items/folders/books.png); background-image: url(images/items/folders/books.png);
background-repeat: no-repeat; background-position: 14px center;
background-size: 18px 18px;
background-position: 10px center;
} }
.musicvideosViewMenu { .musicvideosViewMenu {
background-image: url(images/items/folders/musicvideos.png); background-image: url(images/items/folders/musicvideos.png);
background-repeat: no-repeat; background-position: 14px 8px;
background-size: 18px 18px;
background-position: 10px 8px;
} }
.photosViewMenu { .photosViewMenu {
background-image: url(images/items/folders/photos.png); background-image: url(images/items/folders/photos.png);
background-repeat: no-repeat; background-position: 14px 8px;
background-size: 18px 18px;
background-position: 10px 8px;
} }
.homeVideosViewMenu { .homeVideosViewMenu {
background-image: url(images/items/folders/homevideos.png); background-image: url(images/items/folders/homevideos.png);
background-repeat: no-repeat; background-position: 14px center;
background-size: 18px 18px;
background-position: 10px center;
} }
.generalViewMenu, .boxsetsViewMenu { .generalViewMenu, .boxsetsViewMenu {
background-image: url(images/items/folders/folder.png); background-image: url(images/items/folders/folder.png);
background-repeat: no-repeat; background-position: 14px center;
background-size: 18px 18px;
background-position: 10px center;
} }
.viewMenuSecondary { .viewMenuSecondary {
@ -163,6 +145,10 @@
background-color: rgba(51,136,204,.8)!important; background-color: rgba(51,136,204,.8)!important;
} }
.ui-panel.ui-body-b {
background-color: #181818;
}
.libraryViewNav { .libraryViewNav {
height: 48px; height: 48px;
overflow: hidden; overflow: hidden;

View File

@ -177,7 +177,7 @@
} }
.miniPosterItemProgress .itemProgressBar { .miniPosterItemProgress .itemProgressBar {
height: 8px; height: 6px;
opacity: 1; opacity: 1;
} }

View File

@ -75,6 +75,12 @@ h1, h1 a {
font-family: Roboto; font-family: Roboto;
} }
.ui-loader h1 {
font-family: 'Open Sans';
font-weight: bold!important;
font-size: 18px;
}
.ui-loader h1 { .ui-loader h1 {
font-weight: bold; font-weight: bold;
} }

View File

@ -82,7 +82,7 @@
<div class="itemBackdropContent"> <div class="itemBackdropContent">
<table class="detailPageContent primaryDetailPageContent"> <table class="detailPageContent primaryDetailPageContent">
<tr> <tr>
<td style="vertical-align: top; padding: 0 1em 0 0;"> <td style="vertical-align: top; padding: 0 .8em 0 0;">
<div class="itemImageContainer"> <div class="itemImageContainer">
<div id="itemImage"> <div id="itemImage">
</div> </div>

View File

@ -26,7 +26,7 @@
<div class="readOnlyContent refreshLibraryPanel hide"> <div class="readOnlyContent refreshLibraryPanel hide">
<button type="button" class="btnRefresh" data-icon="refresh" data-mini="true">${ButtonScanLibrary}</button> <button type="button" class="btnRefresh" data-icon="refresh" data-mini="true">${ButtonScanLibrary}</button>
<progress max="100" min="0" style="width: 100%;" class="refreshProgress"></progress> <progress max="100" min="0" style="width: 100%;" class="refreshProgress"></progress>
<div style="margin-top: 5px;">Last Result: <span class="lastRefreshResult"></span></div> <div style="margin-top: 5px;">${LabelLastResult} <span class="lastRefreshResult"></span></div>
</div> </div>
</div> </div>

View File

@ -19,16 +19,16 @@
<div class="liveTvStatusContent" style="display: none;"> <div class="liveTvStatusContent" style="display: none;">
<div style="margin-top: 2.5em;"> <div style="margin-top: 2.5em;">
<p>Service: <span id="activeServiceName"></span></p> <p>${LabelService} <span id="activeServiceName"></span></p>
<p>Status: <span id="activeServiceStatus"></span></p> <p>${LabelStatus} <span id="activeServiceStatus"></span></p>
<p>Version: <span id="activeServiceVersion"></span></p> <p>${LabelVersion} <span id="activeServiceVersion"></span></p>
</div> </div>
<br /> <br />
<div class="readOnlyContent refreshGuidePanel hide"> <div class="readOnlyContent refreshGuidePanel hide">
<button type="button" class="btnRefreshGuide" data-icon="refresh" data-mini="true">${ButtonRefreshGuideData}</button> <button type="button" class="btnRefreshGuide" data-icon="refresh" data-mini="true">${ButtonRefreshGuideData}</button>
<progress max="100" min="0" style="width: 100%;" class="refreshGuideProgress"></progress> <progress max="100" min="0" style="width: 100%;" class="refreshGuideProgress"></progress>
<div style="margin-top: 5px;">Last Result: <span class="lastRefreshGuideResult"></span></div> <div style="margin-top: 5px;">${LabelLastResult} <span class="lastRefreshGuideResult"></span></div>
</div> </div>
<br /> <br />

View File

@ -36,7 +36,7 @@
<div data-role="controlgroup" data-type="horizontal"> <div data-role="controlgroup" data-type="horizontal">
<button data-icon="volume-up" data-inline="true" data-iconpos="notext" title="${ButtonVolumeUp}" class="btnCommand" data-command="VolumeUp">${ButtonVolumeUp}</button> <button data-icon="volume-up" data-inline="true" data-iconpos="notext" title="${ButtonVolumeUp}" class="btnCommand" data-command="VolumeUp">${ButtonVolumeUp}</button>
<button data-icon="volume-off" data-inline="true" data-iconpos="notext" title="${ButtonMute}" class="btnCommand" data-command="ToggleMute">${ButtonMute}</button> <button data-icon="volume-off" data-inline="true" data-iconpos="notext" title="${ButtonMute}" class="btnCommand" data-command="ToggleMute">${ButtonMute}</button>
<button data-icon="expand" data-inline="true" data-iconpos="notext" title="${ButtonFullscreen}" class="btnToggleFullscreen btnPlayStateCommand" data-command="ToggleFullscreen" style="visibility: hidden;">${ButtonFullscreen}</button> <button data-icon="grid" data-inline="true" data-iconpos="notext" title="${ButtonOsd}" class="btnCommand" data-command="ToggleOsdMenu">${ButtonOsd}</button>
<button data-icon="expand" data-inline="true" data-iconpos="notext" title="${ButtonFullscreen}" class="btnToggleFullscreen videoButton btnPlayStateCommand" data-command="ToggleFullscreen">${ButtonFullscreen}</button> <button data-icon="expand" data-inline="true" data-iconpos="notext" title="${ButtonFullscreen}" class="btnToggleFullscreen videoButton btnPlayStateCommand" data-command="ToggleFullscreen">${ButtonFullscreen}</button>
</div> </div>
<div data-role="controlgroup" data-type="horizontal"> <div data-role="controlgroup" data-type="horizontal">
@ -105,6 +105,23 @@
</div> </div>
</div> </div>
<div data-role="collapsible">
<h2>${HeaderTypeText}</h2>
<div style="text-align: left;">
<br />
<form class="typeTextForm">
<div>
<label for="txtTypeText">${LabelTypeText}</label>
<input class="typeTextElement" type="text" id="txtTypeText" required="required" />
</div>
<p>
<button class="typeTextElement" type="submit" data-icon="arrow-r">${ButtonSend}</button>
</p>
</form>
</div>
</div>
</div> </div>
</div> </div>
@ -121,7 +138,8 @@
<script type="text/javascript"> <script type="text/javascript">
$('.sendMessageForm').off('submit', NowPlayingPage.onMessageSubmit).on('submit', NowPlayingPage.onMessageSubmit); $('.sendMessageForm').off('submit', NowPlayingPage.onMessageSubmit).on('submit', NowPlayingPage.onMessageSubmit);
</script> $('.typeTextForm').off('submit', NowPlayingPage.onSendStringSubmit).on('submit', NowPlayingPage.onSendStringSubmit);
</script>
</div> </div>
</body> </body>
</html> </html>

View File

@ -11,21 +11,18 @@
<a href="plugins.html" data-role="button">${TabMyPlugins}</a> <a href="plugins.html" data-role="button">${TabMyPlugins}</a>
<a href="#" data-role="button" class="ui-btn-active">${TabCatalog}</a> <a href="#" data-role="button" class="ui-btn-active">${TabCatalog}</a>
</div> </div>
<p style="margin: 2em 0;">
Types: <a data-rel="popup" data-position-to="origin" href="#freePlugins">Free</a>,
<a data-rel="popup" data-position-to="origin" href="#supporterPlugins">Supporter-Only</a>, and <a data-rel="popup" data-position-to="origin" href="#premiumPlugins">Premium</a>.
</p>
<br />
<fieldset data-role="controlgroup" data-type="horizontal"> <fieldset data-role="controlgroup" data-type="horizontal">
<legend>Display plugins for:</legend> <legend>${LabelDisplayPluginsFor}</legend>
<input type="radio" name="radioPackageTypes" class="radioPackageTypes" id="radioServer" value="Server" data-mini="true"> <input type="radio" name="radioPackageTypes" class="radioPackageTypes" id="radioServer" value="Server" data-mini="true">
<label for="radioServer">Server</label> <label for="radioServer">${TabServer}</label>
<input type="radio" name="radioPackageTypes" class="radioPackageTypes" id="radioClassic" value="MBClassic" data-mini="true"> <input type="radio" name="radioPackageTypes" class="radioPackageTypes" id="radioClassic" value="MBClassic" data-mini="true">
<label for="radioClassic">MB Classic</label> <label for="radioClassic">${PluginTabMediaBrowserClassic}</label>
<input type="radio" name="radioPackageTypes" class="radioPackageTypes" id="radopTheater" value="MBTheater" data-mini="true"> <input type="radio" name="radioPackageTypes" class="radioPackageTypes" id="radopTheater" value="MBTheater" data-mini="true">
<label for="radopTheater">MB Theater</label> <label for="radopTheater">${PluginTabMediaBrowserTheater}</label>
<input type="radio" name="radioPackageTypes" class="radioPackageTypes" id="radioOthers" value="Apps" data-mini="true"> <input type="radio" name="radioPackageTypes" class="radioPackageTypes" id="radioOthers" value="Apps" data-mini="true">
<label for="radioOthers">Others</label> <label for="radioOthers">${TabOtherPlugins}</label>
</fieldset> </fieldset>
<p style="display: none;"> <p style="display: none;">
@ -34,41 +31,13 @@
</p> </p>
<br /> <br />
<div id="noPlugins" class="hide"> <div id="noPlugins" class="hide">
<div style="text-align: center; margin: 10px;">No available plugins</div> <div style="text-align: center; margin: 10px;">${MessageNoAvailablePlugins}</div>
</div> </div>
<div id="pluginTiles"></div> <div id="pluginTiles"></div>
</div> </div>
</div> </div>
<div data-role="popup" class="ui-content" id="freePlugins" style="max-width: 250px;">
<a href="#" data-rel="back" data-role="button" data-theme="b" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
<p>
Free plug-ins can be installed and used by anyone for free. They will appear in the catalog without any banners.<p>
</div>
<div data-role="popup" class="ui-content" id="supporterPlugins" style="max-width: 250px;">
<a href="#" data-rel="back" data-role="button" data-theme="b" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
<p>Supporter-Only plug-ins are free for anyone who is an <strong>MB3 Supporter</strong> (with a valid MB3 key who has donated the minimum amount to the overall project).</p>
<p>
Anyone can install them and enjoy a free trial period of 14 days in most instances. The trial period may commence as soon as you install the plug-in.<p>
<p>These plug-ins will appear in the catalog with a "Supporter" banner.</p>
</div>
<div data-role="popup" class="ui-content" id="premiumPlugins" style="max-width: 250px;">
<a href="#" data-rel="back" data-role="button" data-theme="b" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
<p>
Premium plug-ins are developed by third-parties and require that you be an <strong>MB3 Supporter <em>and</em> also register the plug-in with its creator.</strong>
The cost of registering these plug-ins is set for each one by its creator and all revenues go to that person.
</p>
<p>Anyone can install them and enjoy a free trial period of 14 days in most instances. The trial period may commence as soon as you install the plug-in.</p>
<p>
You should install premium plug-ins without registering them first to take advantage of this trial period. Then, if you find the functionality useful,
you can register it via its detail page here in the catalog.
</p>
<p>These plug-ins will appear in the catalog with a "Premium" banner.</p>
</div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -33,12 +33,14 @@
updateFilterControls(); updateFilterControls();
var screenWidth = $(window).width();
html += LibraryBrowser.getPosterViewHtml({ html += LibraryBrowser.getPosterViewHtml({
items: result.Items, items: result.Items,
shape: "backdrop", shape: "backdrop",
showTitle: true, showTitle: true,
showParentTitle: true, showParentTitle: true,
overlayText: true, overlayText: screenWidth >= 600,
selectionPanel: true, selectionPanel: true,
lazy: true lazy: true
}); });

View File

@ -136,7 +136,7 @@
items: result.Items, items: result.Items,
preferBackdrop: true, preferBackdrop: true,
shape: 'backdrop', shape: 'backdrop',
overlayText: true, overlayText: screenWidth >= 600,
showTitle: true, showTitle: true,
showParentTitle: true showParentTitle: true

View File

@ -415,6 +415,8 @@
$('.viewSettings', page).hide(); $('.viewSettings', page).hide();
} }
var screenWidth = $(window).width();
if (query.IncludeItemTypes == "Audio") { if (query.IncludeItemTypes == "Audio") {
html += LibraryBrowser.getSongTableHtml(result.Items, { html += LibraryBrowser.getSongTableHtml(result.Items, {
@ -442,7 +444,7 @@
shape: "backdrop", shape: "backdrop",
showTitle: true, showTitle: true,
showParentTitle: true, showParentTitle: true,
overlayText: true overlayText: screenWidth >= 600
}); });
} }

View File

@ -1069,12 +1069,7 @@
continue; continue;
} }
var type; var type = stream.Type.replace('EmbeddedImage', 'Embedded Image');
if (item.MediaType == "Audio" && stream.Type == "Video") {
type = "Embedded Image";
} else {
type = stream.Type;
}
html += '<div class="mediaInfoStream">'; html += '<div class="mediaInfoStream">';

View File

@ -75,9 +75,9 @@
return LibraryBrowser.getHref(item); return LibraryBrowser.getHref(item);
} }
function insertViews(page, user, counts, items, liveTvInfo) { function getViewsHtml(userId, counts, items, liveTvInfo) {
var html = ''; var html = '';
html += items.map(function (i) { html += items.map(function (i) {
@ -89,10 +89,10 @@
}).join(''); }).join('');
var showChannels = counts.ChannelCount; var showChannels = counts.ChannelCount;
var showLiveTv = liveTvInfo.EnabledUsers.indexOf(user.Id) != -1; var showLiveTv = liveTvInfo.EnabledUsers.indexOf(userId) != -1;
if (showChannels || showLiveTv) { if (showChannels || showLiveTv) {
html += '<div class="desktopLibraryMenuDivider"></div>'; html += '<div class="libraryMenuDivider"></div>';
} }
if (showChannels) { if (showChannels) {
@ -103,7 +103,7 @@
html += '<a class="viewMenuLink viewMenuTextLink lnkMediaFolder tvshowsViewMenu" data-itemid="livetv" href="livetvsuggested.html">Live TV</a>'; html += '<a class="viewMenuLink viewMenuTextLink lnkMediaFolder tvshowsViewMenu" data-itemid="livetv" href="livetvsuggested.html">Live TV</a>';
} }
$('.desktopLibraryMenu', page).html(html); return html;
} }
function showLibraryMenu() { function showLibraryMenu() {
@ -136,23 +136,10 @@
html += '<p class="libraryPanelHeader"><a href="index.html" class="imageLink"><img src="css/images/mblogoicon.png" /><span>MEDIA</span><span class="mediaBrowserAccent">BROWSER</span></a></p>'; html += '<p class="libraryPanelHeader"><a href="index.html" class="imageLink"><img src="css/images/mblogoicon.png" /><span>MEDIA</span><span class="mediaBrowserAccent">BROWSER</span></a></p>';
html += '<ul data-role="listview">'; html += '<div style="margin: 0 -1em;">';
html += getViewsHtml(Dashboard.getCurrentUserId(), counts, items, liveTvInfo);
html += '</div>';
html += items.map(function (i) {
return '<li><a data-itemid="' + i.Id + '" class="libraryPanelLink lnkMediaFolder" href="' + getItemHref(i) + '">' + i.Name + '</a></li>';
}).join('');
if (counts.ChannelCount) {
html += '<li><a class="libraryPanelLink lnkMediaFolder" data-itemid="channels" href="channels.html">Channels</a></li>';
}
if (liveTvInfo.EnabledUsers.indexOf(Dashboard.getCurrentUserId()) != -1) {
html += '<li><a class="libraryPanelLink lnkMediaFolder" data-itemid="livetv" href="livetvsuggested.html">Live TV</a></li>';
}
html += '</ul>';
html += '</div>'; html += '</div>';
$(page).append(html); $(page).append(html);
@ -160,6 +147,8 @@
panel = $('#libraryPanel', page).panel({}).trigger('create'); panel = $('#libraryPanel', page).panel({}).trigger('create');
} }
updateLibraryNavLinks(page);
return panel; return panel;
} }
@ -201,7 +190,7 @@
sessionStorage.setItem('topParentId', id); sessionStorage.setItem('topParentId', id);
$('.lnkMediaFolder', page).each(function () { $('.lnkMediaFolder').each(function () {
var itemId = this.getAttribute('data-itemid'); var itemId = this.getAttribute('data-itemid');
@ -266,7 +255,8 @@
var items = response2[0].Items; var items = response2[0].Items;
var liveTvInfo = response3[0]; var liveTvInfo = response3[0];
insertViews(page, user, counts, items, liveTvInfo); var html = getViewsHtml(user.Id, counts, items, liveTvInfo);
$('.desktopLibraryMenu', page).html(html);
updateLibraryNavLinks(page); updateLibraryNavLinks(page);

View File

@ -22,13 +22,15 @@
updateFilterControls(); updateFilterControls();
var screenWidth = $(window).width();
html += LibraryBrowser.getPosterViewHtml({ html += LibraryBrowser.getPosterViewHtml({
items: result.Items, items: result.Items,
shape: "backdrop", shape: "backdrop",
showTitle: true, showTitle: true,
showParentTitle: true, showParentTitle: true,
overlayText: true, overlayText: screenWidth >= 600,
coverImage: true coverImage: true
}); });

View File

@ -43,6 +43,8 @@
function renderRecordings(elem, recordings) { function renderRecordings(elem, recordings) {
var screenWidth = $(window).width();
if (recordings.length) { if (recordings.length) {
elem.show(); elem.show();
} else { } else {
@ -55,7 +57,7 @@
shape: "backdrop", shape: "backdrop",
showTitle: true, showTitle: true,
showParentTitle: true, showParentTitle: true,
overlayText: true, overlayText: screenWidth >= 600,
coverImage: true coverImage: true
})).createPosterItemMenus(); })).createPosterItemMenus();

View File

@ -116,20 +116,22 @@
return false; return false;
} }
function renderRecordings(page, result) { function renderRecordings(page, result) {
var screenWidth = $(window).width();
$('.recordingsTab', page).html(LibraryBrowser.getPosterViewHtml({ $('.recordingsTab', page).html(LibraryBrowser.getPosterViewHtml({
items: result.Items, items: result.Items,
shape: "smallBackdrop", shape: "smallBackdrop",
showTitle: true, showTitle: true,
overlayText: true, overlayText: screenWidth >= 600,
coverImage: true coverImage: true
})).createPosterItemMenus(); })).createPosterItemMenus();
} }
function renderSchedule(page, result) { function renderSchedule(page, result) {
var timers = result.Items; var timers = result.Items;
@ -176,7 +178,7 @@
html += '</h3>'; html += '</h3>';
html += '<p>'; html += '<p>';
if (program.IsLive) { if (program.IsLive) {
html += '<span class="liveTvProgram">LIVE&nbsp;&nbsp;</span>'; html += '<span class="liveTvProgram">LIVE&nbsp;&nbsp;</span>';
} }

View File

@ -3,6 +3,7 @@
function reload(page) { function reload(page) {
Dashboard.showLoadingMsg(); Dashboard.showLoadingMsg();
var screenWidth = $(window).width();
apiClient.getLiveTvRecommendedPrograms({ apiClient.getLiveTvRecommendedPrograms({
@ -11,14 +12,14 @@
limit: 12 limit: 12
}).done(function (result) { }).done(function (result) {
var html = LibraryBrowser.getPosterViewHtml({ var html = LibraryBrowser.getPosterViewHtml({
items: result.Items, items: result.Items,
shape: "square", shape: "square",
showTitle: true, showTitle: true,
showParentTitle: true, showParentTitle: true,
overlayText: true, overlayText: screenWidth >= 600,
coverImage: true coverImage: true
}); });
@ -41,7 +42,7 @@
shape: "square", shape: "square",
showTitle: true, showTitle: true,
showParentTitle: true, showParentTitle: true,
overlayText: true, overlayText: screenWidth >= 600,
coverImage: true coverImage: true
}); });

View File

@ -68,7 +68,7 @@
items: result.Items, items: result.Items,
preferBackdrop: true, preferBackdrop: true,
shape: 'backdrop', shape: 'backdrop',
overlayText: true, overlayText: screenWidth >= 600,
showTitle: true showTitle: true
})).createPosterItemMenus(); })).createPosterItemMenus();

View File

@ -275,6 +275,7 @@
$('.btnChapters', page).buttonEnabled(item && item.Chapters && item.Chapters.length); $('.btnChapters', page).buttonEnabled(item && item.Chapters && item.Chapters.length);
$('.sendMessageElement', page).buttonEnabled(supportedCommands.indexOf('DisplayMessage') != -1); $('.sendMessageElement', page).buttonEnabled(supportedCommands.indexOf('DisplayMessage') != -1);
$('.typeTextElement', page).buttonEnabled(supportedCommands.indexOf('SendString') != -1);
$('.btnStop', page).buttonEnabled(item != null); $('.btnStop', page).buttonEnabled(item != null);
$('.btnNextTrack', page).buttonEnabled(item != null); $('.btnNextTrack', page).buttonEnabled(item != null);
@ -490,6 +491,25 @@
$('input', form).val(''); $('input', form).val('');
Dashboard.alert('Message sent.'); Dashboard.alert('Message sent.');
return false;
},
onSendStringSubmit: function() {
var form = this;
MediaController.sendCommand({
Name: 'SendString',
Arguments: {
String: $('#txtTypeText', form).val()
}
}, currentPlayer);
$('input', form).val('');
Dashboard.alert('Text sent.');
return false; return false;
} }

View File

@ -17,7 +17,8 @@
tileColor: "#050810", tileColor: "#050810",
thumbImage: "https://github.com/MediaBrowser/MediaBrowser.Resources/raw/master/images/mbkinect/thumb.png", thumbImage: "https://github.com/MediaBrowser/MediaBrowser.Resources/raw/master/images/mbkinect/thumb.png",
externalUrl: "http://mediabrowser.tv/community/index.php?/topic/850-media-browser-kinect-sensor-plug-in-support/", externalUrl: "http://mediabrowser.tv/community/index.php?/topic/850-media-browser-kinect-sensor-plug-in-support/",
isPremium: false isPremium: false,
isExternal: true
}); });
return apps; return apps;
@ -108,15 +109,17 @@
html += "</div>"; html += "</div>";
html += "<div class='posterItemText packageReviewText' style='color:#000;'>"; if (!plugin.isExternal) {
html += plugin.price > 0 ? "$" + plugin.price.toFixed(2) : "Free"; html += "<div class='posterItemText packageReviewText' style='color:#000;'>";
html += Dashboard.getStoreRatingHtml(plugin.avgRating, plugin.id, plugin.name); html += plugin.price > 0 ? "$" + plugin.price.toFixed(2) : "Free";
html += Dashboard.getStoreRatingHtml(plugin.avgRating, plugin.id, plugin.name);
html += "<span class='storeReviewCount'>"; html += "<span class='storeReviewCount'>";
html += " " + plugin.totalRatings + " Reviews"; html += " " + plugin.totalRatings + " Reviews";
html += "</span>"; html += "</span>";
html += "</div>"; html += "</div>";
}
var installedPlugin = plugin.isApp ? null : installedPlugins.filter(function (ip) { var installedPlugin = plugin.isApp ? null : installedPlugins.filter(function (ip) {
return ip.Name == plugin.name; return ip.Name == plugin.name;

View File

@ -35,7 +35,6 @@
items: result.Items, items: result.Items,
shape: "backdrop", shape: "backdrop",
showTitle: false, showTitle: false,
overlayText: false,
context: 'tv', context: 'tv',
preferThumb: true, preferThumb: true,
showItemCounts: true, showItemCounts: true,

View File

@ -28,7 +28,7 @@
shape: "backdrop", shape: "backdrop",
showTitle: true, showTitle: true,
showParentTitle: true, showParentTitle: true,
overlayText: true overlayText: screenWidth >= 600
})).createPosterItemMenus(); })).createPosterItemMenus();

View File

@ -32,7 +32,7 @@
shape: "backdrop", shape: "backdrop",
showTitle: true, showTitle: true,
showParentTitle: true, showParentTitle: true,
overlayText: true overlayText: screenWidth >= 600
})).createPosterItemMenus(); })).createPosterItemMenus();
@ -41,6 +41,8 @@
function loadNextUp(page) { function loadNextUp(page) {
var screenWidth = $(window).width();
var parentId = LibraryMenu.getTopParentId(); var parentId = LibraryMenu.getTopParentId();
var options = { var options = {
@ -65,7 +67,7 @@
shape: "backdrop", shape: "backdrop",
showTitle: true, showTitle: true,
showParentTitle: true, showParentTitle: true,
overlayText: true overlayText: screenWidth >= 600
})).createPosterItemMenus(); })).createPosterItemMenus();

View File

@ -35,7 +35,6 @@
items: result.Items, items: result.Items,
shape: "backdrop", shape: "backdrop",
showTitle: false, showTitle: false,
overlayText: false,
context: 'tv', context: 'tv',
preferThumb: true, preferThumb: true,
showItemCounts: true, showItemCounts: true,