Hi, i’m fairly new to OSMC and Kodi, running it on a RPI model B.
I’ve attached a external USB and have it mounted to the default /media/SAMSUNG/OSMC
in this directory i’ve created several folders (Downloads, Movies, TV Shows, Music, etc.)
What i would like to know is how i can change the default location in the OSMC main menu to directly point to these folders. The default action is to show the different folders making me go “Movies => SAMSUNG => OSMC => Movies => shows list of movies”
I would like to change it so its “Movies => Shows list of movies”
If possible, i would like to change this using the command shell.
This is probably a very stupid question but i did not find a proper answer.
edit: as an example, you could use the video used by https://osmc.tv/ itself as what i’m trying to get.
(a second folow up question would be how i can add the wallpaper and the short discription of the movie or show)
The location where i can find the OSMC Menu XML would also be great
i’ve added the folders through the sources.xml file.
Now i’m just looking for the OSMC main menu XML so can edit this quicky, as i don’t feel like typing with my remote a lot + having a default .XML can come in handy.
If you don’t have the Skin Shortcuts script installed (the skin settings will have an item ‘Enable main menu customisation’), then it’s /usr/share/kodi/addons/skin.osmc/16x9/script-skinshortcuts-static.xml
However, changes to this file may well not be compatible with future updates to the skin.
If you do have the Skin Shortcuts script installed (the skin settings will have an item ‘Customise main menu’) then first go into the menu editor and make a change - any change - and close it again. You can even just move an item down and then move it back up. That will cause the script to save the relevant files in the directory, and you can then edit /home/osmc/.kodi/userdata/addon_data/script.skinshortcuts/mainmenu.DATA.xml (or the relevant file for a submenu). These files are safe to backup.
However, if you want to link to a non-library view of a particular directory you can do it through the menu editor with no need to type anything - add the folders as sources in the video library (no need to set content or scan them into the library), then in the menu editor select ‘Choose item for menu…’ > ‘Video library >’ > ‘Sources >’ > [The relevant source] > ‘Create menu item to here’ > ‘Files view’
@BobCrachett, thank you very much. Late last night, i got it to work.
i added the script before and was tinkering around with it.
i found that mainmenu.DATA.xml did not update itself at first, that’s why i wasn’t finding it as it still had the default values for some reason.
now i’ve just changed the to the name that i wanted to use and the tags to the default /media/SAMSUNG/OSMC/[FOLDERNAME]
Then the only thing that i need like to know is how i can setup a scraper to this folder so it adds the dvd cover and imdb info.
Or is this only possible through a library?
Setting up a library is without doubt the easiest way to do this. Kodi will take care of grabbing the relevant images itself.
I do know that there is some support for including such images alongside your own media - though I’ve never tested whether Kodi will pick these up and present them to the skin (the OSMC skin doesn’t make any attempt to load local files itself, though other skins may do). Indeed there are ‘media manager’ tools which I believe will automate the process for you to some degree.
Thanks again for the help.
I’ve looked it up and i just needed to “set content” for those folders.
(for people looking into this, this can be done by pressing the “C” key on a keyboard when directly connected to OSMC)
i’ve not yet found a way to “set content” using the command line.
i’m also looking in the possibility of adding extra content types as subgenre’s, so i can seperate them from the normal TV shows when for example using the Kodi remote interface.
I’ve also run into a small issue using the default TV scraper, but i’m testing sickrage/sickbeard to see if post processing the files fixes the issue.