Page 1 of 1

Folder Structure in one Folder (movie,photo,music)

PostPosted: Thu Jun 10, 2021 9:05 pm
by DerPapa
Hello is it possible to put the folder structure for movies music and photos in a folder like minidlna? I have long used minidlna now I switch to serviio, it's really a great dlna server, thanks! I have read that the setting of the folder structure is stored in the sql, can I access it to change the setting e.g. that in the category film also photos and music is displayed?

Re: Folder Structure in one Folder (movie,photo,music)

PostPosted: Thu Jun 10, 2021 11:39 pm
by atc98092
I'm not certain exactly what file structure you are thinking of, but yes a Serviio shared library location can be designated for all types of media at the same time. So for example, your could have a hard drive you keep all your media on. Let's call it the G: drive (Windows specific, I know). Under G:, you create a folder called Media, and within that folder you create new folders for Music, Video and Photos. In the Serviio console, you would create a new Shared Library location as G:\Media, and on the settings panel you would check all three media types: video, music and photos.

Now on your media player's home screen, you'll see whatever fields you have enabled on the Serviio console Presentations tab. So you'll see for example Titles. However, you'll see Titles more than once, as that is a category for both Videos and Music. For Folders, you'll see one for each media type. And you won't see any difference in them until you enter them and view the content. Of course, under Folders you'll only see the G:/Media folder. But when you explore further you'll find any sub-folders.

If I didn't answer this clearly, let me know in more detail what you're attempting to do, and I'll do my best to assist.

Re: Folder Structure in one Folder (movie,photo,music)

PostPosted: Fri Jun 11, 2021 5:57 am
by DerPapa
Sorry for the misunderstanding. I mean when I select for example in your view video and music it is not possible when I want to display folders that I have for example in the folder archive videos and music that these files are displayed as the original folder structure in a folder. With serviio this is only possible in category or folder name.

Example linux nas
archive/test.mp3 /test.jpg

Serviiio shows 2x archive, which is normally one.
archive/test.mp3
archive/test.jpg

Or in category
Music/Archive/test.mp3
Photo/Archive/test.jpg

It would be nice to list the files in their original structure as I have created them - this is not possible at the moment. That's why I thought to rewrite the entry videos so that also photos and music is displayed, that if I activate under serviio only video folder also photos and music is displayed. I hope now it is understandable. Thanks a lot!

Re: Folder Structure in one Folder (movie,photo,music)

PostPosted: Fri Jun 11, 2021 2:31 pm
by atc98092
I would think the Folder presentation would do that for you. Myself, I don't have any media contained within the same file structure. I'll have to experiment on my test server and see if I can see the different media types under the Folder view.

Well, I see I am wrong. There's no Folder view that will display all three categories at once. While I could create a folder that has all three media types, you still have to select Audio, video or Images to get to the folder view, and only that content is displayed within that category.

Re: Folder Structure in one Folder (movie,photo,music)

PostPosted: Fri Jun 11, 2021 3:52 pm
by DerPapa
Yes unfortunately it is not possible, so I would like to know if I can edit or recode this setting in sql? Only I do not know exactly where it is stored.

Re: Folder Structure in one Folder (movie,photo,music)

PostPosted: Sat Jun 12, 2021 10:58 pm
by atc98092
I doubt it's something within the database that could be altered. My guess is it's within the program coding itself. While Serviio is Java based, so the jar files can be opened and modified, there's no way to alter anything built as a Windows executable file.

Re: Folder Structure in one Folder (movie,photo,music)

PostPosted: Sun Jun 13, 2021 5:19 am
by DerPapa
Thank you, i found something in serviio.tar /org/serviio/upnp/service/contendirectory/
I will Report if it works. ;)

Re: Folder Structure in one Folder (movie,photo,music)

PostPosted: Mon Jun 14, 2021 8:58 pm
by DerPapa
I despair unfortunately and need help please.
I have now tried to adjust the video.class commands, with a class editor, unfortunately did not work. Now I have thought with the contentDirectoryDef.xml /org/serviio/upnp/service/contendirectory/difinition like e.g. producers to push the folders in an ID.

Original Serviiio;
  Code:
      <container title_key="producers" id="V_P" editable="true" containerClass="CONTAINER" cacheRegion="local_default">      
         <action command="org.serviio.upnp.service.contentdirectory.command.person.ListProducerInitialsCommand" idPrefix="INI" containerClass="CONTAINER" cacheRegion="local_default">            
            <action command="org.serviio.upnp.service.contentdirectory.command.person.ListProducersForInitialCommand" idPrefix="P" containerClass="PERSON" cacheRegion="local_default">
               <action command="org.serviio.upnp.service.contentdirectory.command.video.ListVideosForProducerCommand" idPrefix="V" itemClass="VIDEO_ITEM" cacheRegion="local_default" />
            </action>
         </action>


my test does not work only video is displayed what can this be?;

  Code:
         
<container title_key="folders" id="V_F" editable="true" containerClass="CONTAINER" cacheRegion="local_default">   
         <action command="org.serviio.upnp.service.contentdirectory.command.video.ListVideoFoldersByNameCommand" idPrefix="FOL" recursive="true" containerClass="STORAGE_FOLDER" itemClass="VIDEO_ITEM" cacheRegion="local_default" searchCategory="FOLDERS FILES">            
         <action command="org.serviio.upnp.service.contentdirectory.command.audio.ListAudioFoldersByNameCommand" idPrefix="FQL" recursive="true" containerClass="STORAGE_FOLDER" itemClass="MUSIC_TRACK" cacheRegion="local_default" searchCategory="FOLDERS FILES" />            
                     </action>
      </container>