• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Development Feature Requests Featured Content Bar on Home Screen

    Pages (4): « Previous 1 2 3 4

     
    • 0 Vote(s) - 0 Average

    Featured Content Bar on Home Screen

    nanouk76
    Offline

    Junior Member

    Posts: 36
    Threads: 5
    Joined: 2023 Jun
    Reputation: 0
    Country:France
    #31
    2024-12-04, 05:12 PM
    Reporting back: after restarting Jellyfin and emptying the cache, the frame is still not showing. Any ideas? Thanks for looking into it.
    Jellyfin 10.10.6
    Ubuntu Server 22.04.4 LTS
    Gigabyte Technology Co., Ltd. GA-MA78LMT-US2H
    AMD® Phenom™ ii x6 1090t processor × 6
    20 GB Ram
    Nvidia P400
    Ted Hinklater
    Offline

    Member

    Posts: 149
    Threads: 8
    Joined: 2023 Nov
    Reputation: 22
    Country:United Kingdom
    #32
    2024-12-04, 05:15 PM
    Ok i'll reinstall Jellyfin and check everything
    nanouk76
    Offline

    Junior Member

    Posts: 36
    Threads: 5
    Joined: 2023 Jun
    Reputation: 0
    Country:France
    #33
    2024-12-04, 05:27 PM (This post was last modified: 2024-12-04, 05:39 PM by nanouk76. Edited 3 times in total.)
    Hmm, the plot thickens... The modification works in Chrome and in Opera... but not in Firefox. But it used to. Weird.
    Jellyfin 10.10.6
    Ubuntu Server 22.04.4 LTS
    Gigabyte Technology Co., Ltd. GA-MA78LMT-US2H
    AMD® Phenom™ ii x6 1090t processor × 6
    20 GB Ram
    Nvidia P400
    Ted Hinklater
    Offline

    Member

    Posts: 149
    Threads: 8
    Joined: 2023 Nov
    Reputation: 22
    Country:United Kingdom
    #34
    2024-12-04, 06:36 PM (This post was last modified: 2024-12-04, 06:41 PM by Ted Hinklater. Edited 1 time in total. Edit Reason: typo -.-" )
    (2024-12-04, 05:27 PM)nanouk76 Wrote: Hmm, the plot thickens... The modification works in Chrome and in Opera... but not in Firefox. But it used to. Weird.

    ohh you're right I made a typo. I guess Chrome & Opera still have the old (correct) home-html cached and are using that.

    Here's the fixed home-html.chunk.js

    Code:
    "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8372], {
      5939: function(a, e, t) {
        t.r(e),
        e.default = `
        <div id="indexPage" style="outline:0" data-role="page" data-dom-cache="true" class="page homePage libraryPage allLibraryPage backdropPage pageWithAbsoluteTabs withTabs" data-backdroptype="movie,series,book">
          <style>
            .featurediframe {width: 95vw; height: 23.5em; display: block; border: 0px solid #000; margin: 0 auto; margin-bottom: 0em; margin-top: 1em;}
    @media (min-width: 2601px) {.featurediframe {height: 50em;} }
            @media (min-width: 2000px) and (max-width: 2600px) {.featurediframe {height: 20em; font-size: 175%;} .layout-desktop #homeTab .sections.homeSectionsContainer {margin-top: -3em !important;} }
            @media (max-width: 1000px) and (orientation: portrait) {.featurediframe {height: 46vh;} }
            @media (max-width: 1000px) and (orientation: landscape) {.featurediframe {height: 98vh;} }
            @media (max-width: 400px) and (orientation: portrait) {.featurediframe {height: 52vh;} }
            @media (max-height: 400px) and (orientation: landscape) {.featurediframe {height: 100vh;} }
            @media screen and (aspect-ratio: 4/3) {.featurediframe {height: 27em;} }
            @media screen and (aspect-ratio: 3/4) {.featurediframe {height: 27em;} }
            @media screen and (aspect-ratio: 16/10) and (max-height: 1200px) {.featurediframe {height: 34em;} }
            @media screen and (aspect-ratio: 10/16) and (max-height: 1280px) {.featurediframe {height: 25em;} }
          </style>
          <div class="tabContent pageTabContent" id="homeTab" data-index="0"><iframe class="featurediframe" src="/web/ui/spotlight.html"></iframe><div class="sections"></div></div><div class="tabContent pageTabContent" id="favoritesTab" data-index="1"> <div class="sections"></div></div></div>`;}}]);
    document.addEventListener("DOMContentLoaded", () => {
      const homeTab = document.getElementById("homeTab");
      const spotlightIframe = homeTab.querySelector(".featurediframe");

      const observer = new MutationObserver(() => {
      const isHomeTabActive = homeTab.classList.contains("is-active");
        spotlightIframe.style.display = isHomeTabActive ? "block" : "none";
      });
      observer.observe(homeTab, { attributes: true, attributeFilter: ["class"] });
    });

    Sorry for that & thanks for letting me know
    nanouk76
    Offline

    Junior Member

    Posts: 36
    Threads: 5
    Joined: 2023 Jun
    Reputation: 0
    Country:France
    #35
    2024-12-04, 07:06 PM (This post was last modified: 2024-12-04, 07:21 PM by nanouk76. Edited 1 time in total.)
    Thanks for your quick response, it's really much appreciated and no need to be sorry, mistakes and typos are part of human nature, right?
    Now, I was not totally convinced that the cache had really been purged so I closed and restarted Firefox and, lo and behold, now the frame is functional again. I-am-stumped! Seems so  illogical at face value but I guess there is a reason for everything... Well, I am not one to peruse logs so I am happy as it is. Thanks a bunch again. My bad if I made you waste precious real life moments.
    Jellyfin 10.10.6
    Ubuntu Server 22.04.4 LTS
    Gigabyte Technology Co., Ltd. GA-MA78LMT-US2H
    AMD® Phenom™ ii x6 1090t processor × 6
    20 GB Ram
    Nvidia P400
    hretas
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2024 Dec
    Reputation: 0
    Country:Germany
    #36
    2024-12-22, 11:03 PM
    Hi,

    First of all, many thanks for the great modification. I would love to get the fullscrean version to work, but I can't do it. When I follow the necessary steps according to the instructions, it shows me a larger iframe, but then 2 to 4 banners in normal format instead of one large one.

    What am I doing wrong?

    I have changed the spotlight.html to the fullscreen version and added the code in the home-html.***.chunk.js.
    The List.txt works perfectly with the normal banner.

    Thanks for the effort!
    Pages (4): « Previous 1 2 3 4

    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode