Skip to content

Commit

Permalink
Merge pull request #6215 from thornbill/remove-osd-ratings
Browse files Browse the repository at this point in the history
  • Loading branch information
thornbill authored Oct 17, 2024
2 parents cd78bbd + 13c0dc0 commit a5e45f6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 33 deletions.
3 changes: 0 additions & 3 deletions src/controllers/playback/video/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ <h3 class="osdTitle"></h3>
<span class="endsAtText"></span>
</div>

<div class="osdRatingsText">
</div>

<button is="emby-ratingbutton" type="button" class="btnUserRating hide autoSize paper-icon-button-light" title="${Rate}">
<span class="xlargePaperIconButton material-icons favorite" aria-hidden="true"></span>
</button>
Expand Down
13 changes: 0 additions & 13 deletions src/controllers/playback/video/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,6 @@ export default function (view) {
}

setTitle(displayItem, parentName);
ratingsText.innerHTML = mediaInfo.getPrimaryMediaInfoHtml(displayItem, {
officialRating: false,
criticRating: true,
starRating: true,
endsAt: false,
year: false,
programIndicator: false,
runtime: false,
subtitles: false,
originalAirDate: false,
episodeTitle: false
});

const secondaryMediaInfo = view.querySelector('.osdSecondaryMediaInfo');
const secondaryMediaInfoHtml = mediaInfo.getSecondaryMediaInfoHtml(displayItem, {
Expand Down Expand Up @@ -1624,7 +1612,6 @@ export default function (view) {
const startTimeText = view.querySelector('.startTimeText');
const endTimeText = view.querySelector('.endTimeText');
const endsAtText = view.querySelector('.endsAtText');
const ratingsText = view.querySelector('.osdRatingsText');
const btnRewind = view.querySelector('.btnRewind');
const btnFastForward = view.querySelector('.btnFastForward');
const transitionEndEventName = dom.whichTransitionEvent();
Expand Down
18 changes: 1 addition & 17 deletions src/styles/videoosd.scss
Original file line number Diff line number Diff line change
Expand Up @@ -136,17 +136,9 @@
align-items: center;
}

.osdRatingsText {
display: flex;
align-items: center;
margin-left: 1em;
margin-right: auto;
user-select: none;
}

.osdTimeText {
margin-left: 1em;
margin-right: 1em;
margin-right: auto;
user-select: none;
}

Expand Down Expand Up @@ -221,14 +213,6 @@
.videoOsdBottom .endsAtText {
display: none !important;
}

.videoOsdBottom .osdRatingsText .starRatingContainer {
display: none !important;
}

.videoOsdBottom .osdRatingsText .mediaInfoCriticRating {
display: none !important;
}
}

.syncPlayContainer {
Expand Down

0 comments on commit a5e45f6

Please sign in to comment.