Emby-Home-Swiper-UI


πŸ“Œ Project Overview Badge

Emby Home Swiper UI is a lightweight, responsive banner module for Emby Web (tested on version 4.9.1.80). It uses native Emby APIs to display auto-sliding content on the home page (#!/home) with minimal setup and no external dependencies.


πŸš€ Emby/Jellyfin Home Swiper UI A modern, highly customizable, and visually appealing home screen carousel/banner UI plugin designed for Emby and Jellyfin. This project replaces the default home screen library view with an interactive, dynamic Swiper carousel, perfect for showcasing your latest and most popular media.

Original inspiration: Nolovenodie/emby-crx

To manually update your index.html for integrating the Emby Home Swiper UI from the GitHub v1 folder and the Cangshui.net guide, follow these steps carefully.


βœ… Manual Update Instructions for index.html

1. Locate your Emby Web UI folder:

Depending on your setup:


2. Download required files from GitHub:

From Emby-Home-Swiper-UI v1, download and place these files into your Emby Web UI folder:


3. Edit index.html:

Open index.html in a text editor and insert the following lines before the closing </head> tag:

<!-- Emby Home Swiper UI -->
<script src="home.js"></script>

Make sure these files are present in the same folder as index.html.


4. Refresh Emby Web Interface:

After saving your changes, restart Emby or refresh the browser. The banner should now appear on the home page (#!/home).


5. Optional Debugging:



πŸ› οΈ Installation Instructions

  1. Download the script
    Save the file as home.js from the v1 folder.

  2. Place in Emby environment
    Copy home.js into your Emby server’s custom scripts or plugin folder.

  3. Inject into dashboard
    Add this line to your Emby dashboard HTML or use a browser extension like Tampermonkey:

    <script src="/path/to/home.js"></script>
    

🎯 v1 Features

βœ… Feature πŸ’‘ Description
Simple & Lightweight No external libraries required
Native API Support Uses ApiClient from Emby 4.9.1.80-90
Auto-sliding Banner Rotates every 8 seconds
Navigation Controls Includes previous/next buttons
Indicator Dots Clickable for direct navigation
Responsive Design Works on both desktop and mobile
Hover Pause Pauses rotation when hovered
Error Handling Graceful fallback if images or API fail
Lazy Loading Loads images only when needed for better performance

πŸ§ͺ Troubleshooting Tips


πŸ“Έ Banner Previews

Screenshot 45
Screenshot 47


Library Access Functions

The uninitialized functions (saveUser, renderMediaFolders) suggest there is a separate settings component where users can manage their library visibility for the carousel. This code relies on global objects like ApiClient and require(["toast"]), common in the Emby/Jellyfin environment, to handle saving user preferences.


πŸ§ͺ Tested On


πŸ™‹ Contributing

If you find bugs or want to suggest improvements, please feel free to submit an issue or open a Pull Request on the original GitHub repository!


πŸ“¬ Contact via Telegram: @sohag1192