Jump to content

Emby Show and Movie Overview Webpage.


Recommended Posts

Oratorian
Posted (edited)

This little script creates an overview of all TV Shows and Movies in your Emby installation.

 

This was a playground script while testing the emby API.

It creates a small html file with all shows and movies
It includes a search bar
image.png.3e6f5f628e90e51f8e27b278c75c289f.png
and you can switch between Table View (Shows all in an organized table), TV Shows only and Movies only.
It also downloads the primary picture of all shows if available into the folder img.
Shows can be clicked, and it will redirect you automatically to your emby with the shows overview.

Shows Only and Movies only look like this:
image.thumb.png.acfdb4faea1403639fc78f016001133f.png

Table View looks like this:
image.thumb.png.889e9a6e3028110e5f2743b08552adc8.png

 

In the header of the script you can define
 

Quote
EMBY_SERVER="http://localhost:8096"
API_KEY="<your api key from the emby server API settings page>"
SERVER_ID="<serverid>"

 

The serverid can be obtained in emby.
Visit your emby click any show or movie and look at the URL it looks like this
 

Quote

item?id=23750&serverId=12345678900987654321&context=home

webview.sh

Edited by Oratorian
  • Like 1
  • Thanks 2
  • 2 weeks later...
sh0rty
Posted

@OratorianCould you make the artwork a bit smaller in TV Show and Movie view? And the possibility to remove the link to the Emby instance of the item would be cool for external people I could show the site.

Oratorian
Posted

I think I could add a setting for that in the generation script. Give me a few minutes. 

Oratorian
Posted (edited)

Done:D

You can set link generation on or off and you can choose the image width to be used in the css style, the height gets adjusted automatically.
Image width of 250 gives a good result, images are neither to small nor too big.

9 hours ago, shorty1483 said:

@OratorianCould you make the artwork a bit smaller in TV Show and Movie view? And the possibility to remove the link to the Emby instance of the item would be cool for external people I could show the site.

webview.sh

Edited by Oratorian
  • Thanks 1
Oratorian
Posted (edited)
33 minutes ago, Oratorian said:

Done:D

You can set link generation on or off and you can choose the image width to be used in the css style, the height gets adjusted automatically.
Image width of 250 gives a good result, images are neither to small nor too big.

webview.sh 13.25 kB · 1 download

 

  • Had to fix a bug in the searchbar that was depended on the links getting generated, searchbar is working again.
  • The generated html file now has modifiable stylesheet. You will find it at the top on the media.html, you can adjust the style to your needs.

 

    <style>
        body { font-family: Arial, sans-serif; margin: 20px; }
        h1 { color: #333; }
        .menu { margin-bottom: 20px; }
        .menu button { margin-right: 10px; padding: 10px; cursor: pointer; }
        .search-bar { margin-bottom: 20px; }
        .search-bar input { padding: 10px; width: 100%; box-sizing: border-box; }
        .shows, .movies { display: flex; flex-wrap: wrap; }
        .show, .movie { flex: 1 1 23%; display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; padding: 10px; box-sizing: border-box; margin-right: 1%; }
        .show img, .movie img { width: 250px; height: auto; border: 1px solid #ddd; border-radius: 5px; }
        .show a, .movie a { text-decoration: none; color: #333; text-align: center; }
        .show a:hover, .movie a:hover { text-decoration: underline; }
        .show-title, .movie-title { width: 100%; color: #333; padding: 5px; box-sizing: border-box; text-align: center; font-weight: bold; min-height: 50px; display: flex; align-items: center; justify-content: center; }
        .table-view { display: none; width: 100%; border-collapse: collapse; }
        .table-view th, .table-view td { border: 1px solid #ddd; padding: 10px; text-align: left; }
    </style>

webview.sh

Edited by Oratorian
  • Thanks 1
sh0rty
Posted

Thanks man, this is really sick and a feature al lot of people wanted in the past instead of the Excel or CSV export. Awesome work!

  • Thanks 1
Oratorian
Posted

You can omit setting the serverid when you dont need links that redirect you to your emby.

 

I publish all my scripts on my github when I deem them ready to somehow have a workable state.

 

My Github Archive

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...