Get file path without extension
#1
I wonder how to show path to file without his extension?
Code:
<label>$INFO[ListItem.FileNameAndPath]</label>
This show all the path...

The goal is for artwork downloader,
the problem is when kodi is exporting libary from "system - video - export libary", it take the discart and logos and call them "movie-name-blabla-clearlogo.png" and "movie-name-blabla-discart.png"
and I can't figure out how to read this path and lead to this image.
Code:
<texture fallback="disc.png" background="true">$INFO[ListItem.Path,,discart.png]</texture>
this leads to the folder but to "discart.png" and no the "full-file-name-discart.png"
Phenomenal™ Skin • ForumWebsiteGitHub
Reply
#2
Combine with Listitem.Label?
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
#3
Can't get it...
can you show me the <texture> code I needed to write in order to show "movie-name-discart.png" image?
while "movie-name-" is the selected file name in movies view (library)
Phenomenal™ Skin • ForumWebsiteGitHub
Reply
#4
Guys I'm almost there...

Code:
$INFO[ListItem.Path]$INFO[ListItem.Filename,,-discart.png]
returns:
D:\xbmc\Tomer-Movies\chocolat\Chocolat.2000-MAJESTiC.avi-discart.png

only the .avi part is what I need to remove.

help please.. :]
Phenomenal™ Skin • ForumWebsiteGitHub
Reply
#5
(2015-01-13, 20:05)tomer953 Wrote: Guys I'm almost there...
Code:
$INFO[ListItem.Path]$INFO[ListItem.Filename,,-discart.png]
returns:
D:\xbmc\Tomer-Movies\chocolat\Chocolat.2000-MAJESTiC.avi-discart.png

only the .avi part is what I need to remove.

help please.. :]    

Did you get a solution for that?

If my filenames are 1:1 equal to foldernames, can i place ListItem.Foldername instead of ListItem.Filename?


EDIT: Yes, Great! It is functional! I can now create my own artwork-types with same file naming convention.
(Except for BDMV, Video.TS & filestacking there is extra work to do)

2nd EDIT: Solution code for my purposes:
Code:
<texture background="true">$INFO[ListItem.Path]$INFO[ListItem.Foldername,,-postercase.jpg]</texture>
Created a second artwork type for posters special for skin Movie Cases/Boxes views on my own.
I like to use original movie posters, but a poster in a case does not make much sense, use there the fanart.tv arts (only picture+logo)
Reply

Logout Mark Read Team Forum Stats Members Help
Get file path without extension0