Kodi Community Forum

Full Version: Finding the file name of a title in library
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just discovered how to add stuff to this music liberry thing, and I added a bunch of mp3s from an external hdd. But there are all these titles I had no idea that I had. How do I find out the file name (and full path) of a title?
I have an R.Pi B+ running the latest stable OpenELEC.
On a recorded and parsed title by kodi, I mean you can see it in your Music Library

go to "info" -> press the key "i", you should see some info of the title including the full path
Should but don't. If I could attach files to this post, I'd show you. I see various fields like "artist", "Album", "Year" and so on, but no file name or path.
Well in this case I see 2 ways to see what you want :
A/ a dirty option
B/ a dirtier option

One option (choose A or B), query directly the database.
In this case :
- you know what you are doing
- you know what you are looking for
- you know (or at least you know the minium) to perform a SQL query.

An other option is to tweak the SongInfo Sheet of the theme you are using :
In this case :
- you know what you are doing
- you know how to ssh into your RPi
- you know how to alter a file (how to use nano for example)
1/ go into the skin folder /usr/share/kodi/addons/skin.confluence/720p
2/ DO A BACKUP of the FILE DialogSongInfo.xml !!! and 2! more !!
3/ tweak the file DialogSongInfo.xml
4/ restart kodi
5/ enjoy (I tested it myself)

I'll explain you this method. My configuration is as follow:
- hardware : RPi-B
- OS : OSMC
- software : kodi 14.2
- theme : Confluence
I don't use Confluence any more, but same skin with OpenElec, so adapt if needed
1/ go into the skin folder
ssh or go into a console of your RPi
and change to /usr/share/kodi/addons/skin.confluence/720p
Code:
login : osmc
...
password : osmc
...
osmc@rpi:~$ cd /usr/share/kodi/addons/skin.confluence/720p
osmc@rpi:/usr/share/kodi/addons/skin.confluence/720p$
2/ do a backup of the tweaked file DialogSongInfo.xml.
almost all the files are owned by root... you'll need to sudo all your commande
Code:
osmc@rpi:/usr/share/kodi/addons/skin.confluence/720p$ sudo cp DialogSongInfo.xml DialogSongInfo.xml.backup
3/ tweak the file DialogSongInfo.xml to add the pathname
Code:
osmc@rpi:/usr/share/kodi/addons/skin.confluence/720p$ sudo nano DialogSongInfo.xml

Here is the file : look for this code
Code:
<control type="textbox">
                                        <description>Comment value</description>
                                        <left>160</left>
                                        <top>177</top>
                                        <width>460</width>
                                        <height>140</height>
                                        <font>font13</font>
                                        <pagecontrol>-</pagecontrol>
                                        <label fallback="161">$INFO[ListItem.Comment]</label>
                                </control>
                        </control>
Insert this code just after
Code:
<control type="label">
                                        <description>Path Label</description>
                                        <left>20</left>
                                        <top>415</top>
                                        <width>150</width>
                                        <height>25</height>
                                        <align>left</align>
                                        <aligny>center</aligny>
                                        <font>font13</font>
                                        <textcolor>white</textcolor>
                                        <label fallback="161">$LOCALIZE[573]:</label>
                                </control>
                                <control type="fadelabel">
                                        <description>Path Value</description>
                                        <left>170</left>
                                        <top>415</top>
                                        <width>700</width>
                                        <height>25</height>
                                        <align>right</align>
                                        <aligny>center</aligny>
                                        <font>font13</font>
                                        <textcolor>blue</textcolor>
                                        <label fallback="161">$INFO[ListItem.FileNameAndPath]:</label>
                                </control>
And here is the "end" of the file
Code:
<control type="group" id="9000">
                                <left>40</left>
                                <top>445</top>
                                <control type="button" id="10">
                                        <description>Ok button</description>
                                        <left>0</left>
                                        <top>0</top>
                                        <width>200</width>
                                        <height>40</height>
                                        <label>186</label>
                                        <font>font12_title</font>
I tested these values to be as smooth as possible with the display

4/ restart kodi
As I al under OSMC, here is the OSMC command (I don't know the Openelec command)
Code:
osmc@rpi:/usr/share/kodi/addons/skin.confluence/720p$ sudo systemctl restart mediacenter

5/ enjoy.
I tested it, it works,
when "info" on a file, it display the path and the filename
I like my solutions like my eating surfaces: clean. So in this case, I'd go for the lesser of 2 evils. I'm guessing that would involve an SQLite browser and something involving a network file system? I doubt I can find one that works w/SAMBA shares and I can't fallback on CIFS just yet, because I'm having trouble mounting those.