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


    Write your reply...

    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
    1K
    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
    597
    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
    1K
    Nvm. I can't find any viable hardware for an ARM htpc...
    Nvm. I can't find any viable hardware for an ARM htpc...
    I am about to to upgrade my htpc where I use MP1. I wonder if it will run on an ARM based CPU with Win11 or just x64 and x86?
    Replies
    2
    Views
    887
    I have all of my media on a NAS. I guess it might just be a network issue, then.
    I have all of my media on a NAS. I guess it might just be a network issue, then.
    Whenever I go into the back end for Moving Pictures, it almost immediately hangs on the Movie Importer tab. If I want to go into...
    Replies
    4
    Views
    1K
    Top Bottom