Jump to content

Recommended Posts

Posted (edited)

Since server version 4.8+, all library options (including library Content Type) are db-only and any desired changes need to be done via Emby Server REST API service (previous method of changing options via options.xml files is deprecated).

Method below describes using Swagger:

1. Access Swagger by navigating to your Dashboard>scroll to the bottom of the page>select "API" hyperlink

image.thumb.png.b14e35bb5494c5ad642b165c202d3ce8.png

 

2. Obtain library "Id" from /Library/VirtualFolders/Query endpoint:

image.thumb.png.f6c2f1845c9ca14cf2346217e1d6975c.png

image.thumb.png.ced6610cd2a96d459606f9d11c89d6f2.png

Find relevant library "Id" in the response:

image.thumb.png.a87962ac4ad4f57275b0bd6b33a47636.png

 

3. In /Library/VirtualFolders/LibraryOptions, change "Id" to the one obtained above and "ContentType" to desired type (valid ContentType strings listed below). Execute.

image.thumb.png.e728d7d71ad2b3273b659d55c60dcaee.png

image.thumb.png.0e2b1ac2dbd3d679140a977a1d1ec7cd.png

 

4. You can check Settings>Library tab or query /Library/VirtualFolders/Query endpoint to confirm Content Type change

 

Valid Content Types

Audio books
"ContentType": "audiobooks"

Camera Uploads
"ContentType": "homevideos"

Collections
"ContentType": "boxsets"

Home videos & photos
"ContentType": "homevideos"

Movies
"ContentType": "movies"

Music
"ContentType": "music"

Music Videos
"ContentType": "musicvideos"

Playlists
"ContentType": "playlists"

TV shows
"ContentType": "tvshows"

Edited by GrimReaper
Updated method
  • Like 4
  • Thanks 3
×
×
  • Create New...