Get folders for music, movies and so on. (1 Viewer)

FreddeMannen

Portal Member
September 12, 2007
13
0
42
Home Country
Sweden Sweden
I wonder, what's the easiest way to get the folders that My Music, My Movies and so on Is using?
 

jburnette

Portal Pro
August 24, 2006
758
116
Kentucky
Home Country
United States of America United States of America
If you mean from a programming standpoint you can use MediaPortal's profile.settings class to read the values of Mediaportal.xml. That file contains all of the paths you wanted.
 

lopez.tuparles

Retired Team Member
  • Premium Supporter
  • July 20, 2006
    396
    54
    50
    Mimet
    The reference "Utils.dll" is needed, after have a look in the namespace "MediaPortal.Profile.Settings"

    eg to retrieve the skin name:
    string sSkinName;
    MediaPortal.Profile.Settings oset = new MediaPortal.Profile.Settings("mediaportal.xml");
    sSkinName = oset.GetValue("skin", "name");
     

    Users who are viewing this thread

    Similar threads

    My problem is that I would like to switch from Kodi to Mediaportal. In Kodi, putting an Extras folder in the same folder as the movie automatically manages all the extras on the Bluray, so my library is organized in this way. Moving everything would be a very long job (I have more than 2800 movies), plus I would lose the Extras...
    My problem is that I would like to switch from Kodi to Mediaportal. In Kodi, putting an Extras folder in the same folder as the...
    Hello, is it possible to exclude some folders from the Moving Pictures scan? My movies are organized in separate folders...
    Replies
    4
    Views
    2K
    Before I used to update the dll via extension manager and for sure re-updated to Version 143 twice. Now I downloaded from your link, removed all test files and installed directly via MPEI-file. The backup I created yesterday before starting the tests, reveals there went something wrong in extension manager. Anyway, the problem is gone...
    Before I used to update the dll via extension manager and for sure re-updated to Version 143 twice. Now I downloaded from your...
    All was good on 1.36 x64. Kodi clients cannot access timeshifting and recording folders using TVServerKodi 1.25.0.130 plugin. In...
    Replies
    70
    Views
    4K
    For music you may use --> https://www.team-mediaportal.de/erweiterungen/musik/global-search With GlobalSearch you can search for any entry in your music database: Artist, Album, Title, Lyrics... I'm afraid there is no such plugin :unsure:
    For music you may use --> https://www.team-mediaportal.de/erweiterungen/musik/global-search With GlobalSearch you can search for...
    HI, I'm new to MediaPortal and have a question about searching for data. I have an extensive collection of music, films, and TV...
    Replies
    1
    Views
    1K
    Of course, I think it's not difficult, add fields to the database, and then change everything in the user interface for the rating, and not break anything. I don't have time for this yet, maybe it will appear after the 25th, but that's not certain.
    Of course, I think it's not difficult, add fields to the database, and then change everything in the user interface for the rating...
    Would it be possible to add a star rating (1-5) for pictures in the database, preferably even within browsing files? This way, you...
    Replies
    8
    Views
    545
    MP1 MP2 Auto Rating DE
    Sorry i dont use Mov Pic
    Sorry i dont use Mov Pic
    Hi, I have done this previously but have just done a fresh install of MP1 (1.34 X64) and for the life of me can't see how to do it...
    Replies
    3
    Views
    2K
    Top Bottom