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

FreddeMannen

Portal Member
September 12, 2007
13
0
43
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
    51
    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

    Hi. I was probably being a bit fast and loose with my terminology. I meant "somewhere within the files that MP2 uses in its database". Anyway, I found a way to do this which was far from automated but relatively low effort. I found what looked like all the images (CD covers, DVD covers, backgrounds etc all lumped together in...
    Hi. I was probably being a bit fast and loose with my terminology. I meant "somewhere within the files that MP2 uses in its...
    I am in the process of setting up a legacy media player (Mede8er) which I happened to have laying around into my home cinema setup...
    Replies
    2
    Views
    353
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select "Internal DirectShow player" as music output, but then you lose gapless playback. If you you don't have multichannel music you can choose WASAPI as the output and set the number of speakers to stereo. I have...
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select...
    Not sure if this a a bug/config/settings problem. I am running a media portal 2.5 server with 2.41 client but it seems I get the...
    Replies
    1
    Views
    738
    Are the media/video folders on the Mint host?
    Are the media/video folders on the Mint host?
    I've used Mediaportal for years on a Windows Host with restricted online-access. Lately I reinstalled...
    Replies
    1
    Views
    1K
    MP1 MP2 Migrating to win 11 DE
    Well beep :) I upgraded because mepo 2 was a fresh way.. and migration screwed up all old settings .. So apparently back to 1.. tanx for the info
    Well beep :) I upgraded because mepo 2 was a fresh way.. and migration screwed up all old settings .. So apparently back to 1...
    As many other i have to upgrade from win 10 to win 11. Im currently running a MePo 2 installation, is there a way to copy...
    Replies
    2
    Views
    1K
    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
    3K
    Top Bottom