Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'upstream/release-10.7.z'
Browse files Browse the repository at this point in the history
  • Loading branch information
iwalton3 committed May 5, 2021
2 parents 7d1c1c0 + 0f0593f commit da17ad2
Show file tree
Hide file tree
Showing 18 changed files with 43 additions and 52 deletions.
2 changes: 1 addition & 1 deletion build.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
# We just wrap `build` so this is really it
name: "jellyfin-web"
version: "10.7.2"
version: "10.7.3"
packages:
- debian.all
- fedora.all
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
jellyfin-web (10.7.3-1) unstable; urgency=medium

* New upstream version 10.7.3; release changelog at https://github.com/jellyfin/jellyfin-web/releases/tag/v10.7.3

-- Jellyfin Packaging Team <packaging@jellyfin.org> Tue, 04 May 2021 20:00:22 -0400

jellyfin-web (10.7.2-1) unstable; urgency=medium

* New upstream version 10.7.2; release changelog at https://github.com/jellyfin/jellyfin-web/releases/tag/v10.7.2
Expand Down
4 changes: 2 additions & 2 deletions deployment/Dockerfile.docker
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM node:alpine
FROM node:lts-alpine

ARG SOURCE_DIR=/src
ARG ARTIFACT_DIR=/jellyfin-web

RUN apk add autoconf g++ make libpng-dev gifsicle alpine-sdk automake libtool make gcc musl-dev nasm python
RUN apk add autoconf g++ make libpng-dev gifsicle alpine-sdk automake libtool make gcc musl-dev nasm python3

WORKDIR ${SOURCE_DIR}
COPY . .
Expand Down
4 changes: 3 additions & 1 deletion fedora/jellyfin-web.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%global debug_package %{nil}

Name: jellyfin-web
Version: 10.7.2
Version: 10.7.3
Release: 1%{?dist}
Summary: The Free Software Media System web client
License: GPLv3
Expand Down Expand Up @@ -38,6 +38,8 @@ mv dist %{buildroot}%{_datadir}/jellyfin-web
%{_datadir}/licenses/jellyfin/LICENSE

%changelog
* Tue May 04 2021 Jellyfin Packaging Team <packaging@jellyfin.org>
- New upstream version 10.7.3; release changelog at https://github.com/jellyfin/jellyfin-web/releases/tag/v10.7.3
* Sun Apr 11 2021 Jellyfin Packaging Team <packaging@jellyfin.org>
- New upstream version 10.7.2; release changelog at https://github.com/jellyfin/jellyfin-web/releases/tag/v10.7.2
* Sun Mar 21 2021 Jellyfin Packaging Team <packaging@jellyfin.org>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"headroom.js": "^0.12.0",
"hls.js": "^0.14.17",
"intersection-observer": "^0.12.0",
"jellyfin-apiclient": "^1.7.0",
"jellyfin-apiclient": "^1.8.0",
"jquery": "^3.5.1",
"jstree": "^3.3.10",
"libarchive.js": "^1.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/apphost.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import globalize from '../scripts/globalize';
import profileBuilder from '../scripts/browserDeviceProfile';

const appName = 'Jellyfin Web';
const appVersion = '10.7.2';
const appVersion = '10.7.3';

function getBaseProfileOptions(item) {
const disableHlsVideoAudioCodecs = [];
Expand Down
12 changes: 6 additions & 6 deletions src/components/filterdialog/filterdialog.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
<div is="emby-collapse" title="${Filters}">
<div class="collapseContent">
<div class="checkboxList">
<label>
<input type="checkbox" is="emby-checkbox" class="chkStandardFilter videoStandard"
<label class="videoStandard">
<input type="checkbox" is="emby-checkbox" class="chkStandardFilter"
data-filter="IsPlayed" />
<span>${Played}</span>
</label>
<label>
<input type="checkbox" is="emby-checkbox" class="chkStandardFilter videoStandard"
<label class="videoStandard">
<input type="checkbox" is="emby-checkbox" class="chkStandardFilter"
data-filter="IsUnPlayed" />
<span>${Unplayed}</span>
</label>
<label>
<input type="checkbox" is="emby-checkbox" class="chkStandardFilter videoStandard"
<label class="videoStandard">
<input type="checkbox" is="emby-checkbox" class="chkStandardFilter"
data-filter="IsResumable" />
<span>${OptionResumable}</span>
</label>
Expand Down
12 changes: 4 additions & 8 deletions src/components/imageDownloader/imageDownloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ import template from './imageDownloader.template.html';
let html = '';

for (let i = 0, length = imagesResult.Images.length; i < length; i++) {
html += getRemoteImageHtml(imagesResult.Images[i], imageType, apiClient);
html += getRemoteImageHtml(imagesResult.Images[i], imageType);
}

const availableImagesList = page.querySelector('.availableImagesList');
Expand Down Expand Up @@ -150,11 +150,7 @@ import template from './imageDownloader.template.html';
});
}

function getDisplayUrl(url, apiClient) {
return apiClient.getUrl('Images/Remote', { imageUrl: url });
}

function getRemoteImageHtml(image, imageType, apiClient) {
function getRemoteImageHtml(image, imageType) {
const tagName = layoutManager.tv ? 'button' : 'div';
const enableFooterButtons = !layoutManager.tv;

Expand Down Expand Up @@ -209,9 +205,9 @@ import template from './imageDownloader.template.html';
html += '<div class="cardContent">';

if (layoutManager.tv || !appHost.supports('externallinks')) {
html += '<div class="cardImageContainer lazy" data-src="' + getDisplayUrl(image.Url, apiClient) + '" style="background-position:center center;background-size:contain;"></div>';
html += '<div class="cardImageContainer lazy" data-src="' + image.Url + '" style="background-position:center center;background-size:contain;"></div>';
} else {
html += '<a is="emby-linkbutton" target="_blank" href="' + getDisplayUrl(image.Url, apiClient) + '" class="button-link cardImageContainer lazy" data-src="' + getDisplayUrl(image.Url, apiClient) + '" style="background-position:center center;background-size:contain"></a>';
html += '<a is="emby-linkbutton" target="_blank" href="' + image.Url + '" class="button-link cardImageContainer lazy" data-src="' + image.Url + '" style="background-position:center center;background-size:contain"></a>';
}

html += '</div>';
Expand Down
18 changes: 2 additions & 16 deletions src/components/itemidentifier/itemidentifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,7 @@ import template from './itemidentifier.template.html';
let resultHtml = lines.join('<br/>');

if (identifyResult.ImageUrl) {
const displayUrl = getSearchImageDisplayUrl(identifyResult.ImageUrl, identifyResult.SearchProviderName);

resultHtml = `<div style="display:flex;align-items:center;"><img src="${displayUrl}" style="max-height:240px;" /><div style="margin-left:1em;">${resultHtml}</div>`;
resultHtml = `<div style="display:flex;align-items:center;"><img src="${identifyResult.ImageUrl}" style="max-height:240px;" /><div style="margin-left:1em;">${resultHtml}</div>`;
}

page.querySelector('.selectedSearchResult').innerHTML = resultHtml;
Expand Down Expand Up @@ -218,9 +216,7 @@ import template from './itemidentifier.template.html';
html += '<div class="cardContent searchImage">';

if (result.ImageUrl) {
const displayUrl = getSearchImageDisplayUrl(result.ImageUrl, result.SearchProviderName);

html += `<div class="cardImageContainer coveredImage" style="background-image:url('${displayUrl}');"></div>`;
html += `<div class="cardImageContainer coveredImage" style="background-image:url('${result.ImageUrl}');"></div>`;
} else {
html += `<div class="cardImageContainer coveredImage defaultCardBackground defaultCardBackground1"><div class="cardText cardCenteredText">${result.Name}</div></div>`;
}
Expand Down Expand Up @@ -258,16 +254,6 @@ import template from './itemidentifier.template.html';
return html;
}

function getSearchImageDisplayUrl(url, provider) {
const apiClient = getApiClient();

return apiClient.getUrl('Items/RemoteSearch/Image', {
imageUrl: url,
ProviderName: provider,
api_key: apiClient.accessToken()
});
}

function submitIdentficationResult(page) {
loading.show();

Expand Down
10 changes: 2 additions & 8 deletions src/components/search/searchfields.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,13 @@ import template from './searchfields.template.html';
}

function embed(elem, instance, options) {
let html = globalize.translateHtml(template, 'core');

if (browser.tizen || browser.orsay) {
html = html.replace('<input ', '<input readonly ');
}

elem.innerHTML = html;
elem.innerHTML = globalize.translateHtml(template, 'core');

elem.classList.add('searchFields');

const txtSearch = elem.querySelector('.searchfields-txtSearch');

if (layoutManager.tv) {
if (layoutManager.tv && !browser.tv) {
const alphaPickerElement = elem.querySelector('.alphaPicker');

elem.querySelector('.alphaPicker').classList.remove('hide');
Expand Down
2 changes: 2 additions & 0 deletions src/controllers/favorites.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ import ServerConnections from '../components/ServerConnections';
}

elem.innerHTML = html;
window.CustomElements.upgradeSubtree(elem);

const elems = elem.querySelectorAll('.itemsContainer');

for (let i = 0, length = elems.length; i < length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/movies/moviecollections.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
});
});
const btnSelectView = tabContent.querySelector('.btnSelectView');
btnSelectView.addEventListener('click', function (e) {
btnSelectView.addEventListener('click', (e) => {
libraryBrowser.showLayoutMenu(e.target, this.getCurrentViewStyle(), 'List,Poster,PosterCard,Thumb,ThumbCard'.split(','));
});
btnSelectView.addEventListener('layoutchange', function (e) {
Expand Down
4 changes: 2 additions & 2 deletions src/controllers/movies/movies.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
});
}
const btnSelectView = tabContent.querySelector('.btnSelectView');
btnSelectView.addEventListener('click', function (e) {
libraryBrowser.showLayoutMenu(e.target, this.getCurrentViewStyle, 'Banner,List,Poster,PosterCard,Thumb,ThumbCard'.split(','));
btnSelectView.addEventListener('click', (e) => {
libraryBrowser.showLayoutMenu(e.target, this.getCurrentViewStyle(), 'Banner,List,Poster,PosterCard,Thumb,ThumbCard'.split(','));
});
btnSelectView.addEventListener('layoutchange', function (e) {
const viewStyle = e.detail.viewStyle;
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/movies/movietrailers.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
alphaPickerElement.classList.add('alphaPicker-fixed-right');
itemsContainer.classList.add('padded-right-withalphapicker');

tabContent.querySelector('.btnFilter').addEventListener('click', function () {
tabContent.querySelector('.btnFilter').addEventListener('click', () => {
this.showFilterMenu();
});
tabContent.querySelector('.btnSort').addEventListener('click', function (e) {
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/music/musicartists.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
this.showFilterMenu();
});
const btnSelectView = tabContent.querySelector('.btnSelectView');
btnSelectView.addEventListener('click', function (e) {
btnSelectView.addEventListener('click', (e) => {
libraryBrowser.showLayoutMenu(e.target, this.getCurrentViewStyle(), 'List,Poster,PosterCard'.split(','));
});
btnSelectView.addEventListener('layoutchange', function (e) {
Expand Down
1 change: 1 addition & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<meta name="mobile-web-app-capable" content="yes">
<meta name="application-name" content="Jellyfin">
<meta name="robots" content="noindex, nofollow, noarchive">
<meta name="referrer" content="no-referrer">
<meta property="og:title" content="Jellyfin">
<meta property="og:site_name" content="Jellyfin">
<meta property="og:url" content="http://jellyfin.org">
Expand Down
6 changes: 5 additions & 1 deletion src/scripts/browserDeviceProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ import browser from './browser';
supported = browser.tizen;
break;
case 'mov':
supported = browser.tizen || browser.web0s || browser.chrome || browser.edgeChromium || browser.edgeUwp;
supported = browser.safari || browser.tizen || browser.web0s || browser.chrome || browser.edgeChromium || browser.edgeUwp;
videoCodecs.push('h264');
break;
case 'm2ts':
Expand Down Expand Up @@ -463,6 +463,10 @@ import browser from './browser';
if (!browser.safari) {
mp4VideoCodecs.push('hevc');
}

if (browser.tizen || browser.web0s) {
hlsInTsVideoCodecs.push('hevc');
}
}

if (supportsMpeg2Video()) {
Expand Down
4 changes: 2 additions & 2 deletions src/strings/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -691,8 +691,8 @@
"LabelManufacturer": "Manufacturer:",
"LabelManufacturerUrl": "Manufacturer URL",
"LabelMatchType": "Match type:",
"LabelMaxAudiobookResume": "Maximum Audiobook resume in minutes:",
"LabelMaxAudiobookResumeHelp": "Titles are assumed fully played if stopped after this time.",
"LabelMaxAudiobookResume": "Audiobook remaining minutes to resume:",
"LabelMaxAudiobookResumeHelp": "Titles are assumed fully played if stopped when the remaining duration is less than this value.",
"LabelMaxBackdropsPerItem": "Maximum number of backdrops per item:",
"LabelMaxChromecastBitrate": "Chromecast streaming quality:",
"LabelMaxMuxingQueueSize": "Max muxing queue size:",
Expand Down

0 comments on commit da17ad2

Please sign in to comment.