xbox-scene.com archived forum

Author Topic: Change Default Directory For Music Playlists?  (Read 326 times)

vmaxvboost

  • Archived-User
  • Newbie
  • *
  • Posts: 16
    • View Profile
Change Default Directory For Music Playlists?
« on: May 03, 2008, 05:32:00 PM »

I read the manual, and added the following lines to advancedsettings.xml

<system>
    <playlistspath>smb://<login>:<password>@LKG316394/HDD_1_1_1/Music/Playlists</playlistspath>
</system>


where login and password is my NAS drive's login & password

This doesn't work.

Is this the correct way to change the default directory for music playlists?

Any help?

Brian
Logged

jmarshall

  • Archived-User
  • Newbie
  • *
  • Posts: 541
    • View Profile
Change Default Directory For Music Playlists?
« Reply #1 on: May 03, 2008, 10:56:00 PM »

The user/pass probably have to be url-encoded.

I suggest removing any reference to the playlist path from advancedsettings.xml and guisettings.xml - just remove the whole tag is probably easiest.

Then create a playlist from the GUI and save it.  It'll prompt for where.

Navigate to the appropriate place, and away you go.

Cheers,
Jonathan
Logged

vmaxvboost

  • Archived-User
  • Newbie
  • *
  • Posts: 16
    • View Profile
Change Default Directory For Music Playlists?
« Reply #2 on: May 05, 2008, 01:18:00 AM »

Thanks for your help.

I removed these lines from advancedsettings.xml

<system>
<playlistspath>smb://<login>:<password>@LKG316394/HDD_1_1_1/Music/Playlists</playlistspath>
</system>

...deleted these lines from guisettings.xml

<playlist>
            <repeat>false</repeat>
            <shuffle>false</shuffle>
</playlist>

...and commented out these lines from guisettings.xml

        <!-- <clearplaylistsonend>false</clearplaylistsonend> -->
        <!-- <setting type="bool" name="Project Mayhem III.use_startup_playlist">false</setting> -->
        <!-- <setting type="string" name="Project Mayhem III.startup_playlist_path"></setting> -->

...rebooted, saved a playlist, it didn't prompt me for a path, and XBMC saved it to /userdata/playlists/music

I didn't see any reference to "playlist path" (other than commented out above) in either file.

What are "url-encoded" login and password?

Where is the "whole tag" you are referring to for playlist path?

I then tried adding the above <system> lines to guisettings.xml.   No luck.

My XBMC version is from Feb 10, 2008

Any help?

Brian
Logged

jmarshall

  • Archived-User
  • Newbie
  • *
  • Posts: 541
    • View Profile
Change Default Directory For Music Playlists?
« Reply #3 on: May 05, 2008, 04:44:00 AM »

You have to remove the:

<system>
  ... other stuff ...
  <playlistspath>whatever_is_here</playlistspath>
  ... other stuff ...
</system>

from guisettings.xml - that's where it's getting it's setting from.

Cheers,
Jonathan
Logged

vmaxvboost

  • Archived-User
  • Newbie
  • *
  • Posts: 16
    • View Profile
Change Default Directory For Music Playlists?
« Reply #4 on: May 05, 2008, 03:17:00 PM »

Thanks, Jonathan.  I appreciate your time and help.

I tried removing

     <playlistspath>whatever_is_here</playlistspath>

from guisettings.xml, but no luck.   Still saved the playlist under the UserData folder, without prompting me.

How do I "url-encode" the login & password for this path -

     <playlistspath>smb://<login>:<password>@LKG316394/HDD_1_1_1/Music/Playlists</playlistspath>

or, how do I hard-code it in guisettings.xml without getting the GUI to prompt me?


What is interesting is that I don't need to "url-encode" my login or password to play music from this NAS drive (using the NAS drive under "My Music" from the main screen), or using this NAS drive from FileManager.

Thanks again,

Brian
Logged

spiff

  • Archived-User
  • Newbie
  • *
  • Posts: 352
    • View Profile
Change Default Directory For Music Playlists?
« Reply #5 on: May 05, 2008, 03:46:00 PM »

http://www.albionresearch.com/misc/urlencode.php

make sure to edit guisettings.xml while xbmc isnt running (it is saved on restart voiding your changes..)
Logged

vmaxvboost

  • Archived-User
  • Newbie
  • *
  • Posts: 16
    • View Profile
Change Default Directory For Music Playlists?
« Reply #6 on: May 06, 2008, 02:36:00 PM »

Wow, if had hair, I'd pull it out.  For something so simple and straight forward....

My login and password do not need to be URL-encoded, as there is no difference between the actual password and the URL-encoded password.

----------------------------------------------------

For this type of setup in guisettings.xml

<system>
<playlistspath>smb://<login>:<password>@LKG316394/HDD_1_1_1/Music/Playlists</playlistspath>
</system>

------------------------------------------------

...if I have this path

LKG316394/HDD_1_1_1/Music/Playlists

or this path

LKG316394/HDD_1_1_1/Music

no file is saved at all.

-------------------------------------------

If I have this path

LKG316394/HDD_1_1_1/

it saves the playlist in this folder

LKG316394/HDD_1_1_1/Music    (one folder down)

...mixed in with all of my other music folders.

---------------------------------------------

One time, it saved the playlist as a file, with 0.2 kb file size

Repeating the exact same task, it saved it as a folder, with no file size specified

Both times, the songs within the playlist played OK.

------------------------------------------


????????????   what the ????

How much are trailing backslashes (/) needed when you specify path for playlists?

I'm at a loss...

Brian



Logged

jmarshall

  • Archived-User
  • Newbie
  • *
  • Posts: 541
    • View Profile
Change Default Directory For Music Playlists?
« Reply #7 on: May 06, 2008, 09:59:00 PM »

The playlists path is a base path.

All playlists are stored off that path in subfolders.

Create a Music subdir in whatever your playlists path is.

Cheers,
Jonathan
Logged

vmaxvboost

  • Archived-User
  • Newbie
  • *
  • Posts: 16
    • View Profile
Change Default Directory For Music Playlists?
« Reply #8 on: May 07, 2008, 02:58:00 PM »

Thanks again, Jonathan.  At least now I understand what is going on.

Now, to go forward, I have all of my music and its subfolders on my NAS drive at this path:

smb://<login>:<password>@LKG316394/HDD_1_1_1/Music/

If I don't want the playlists mixed in with my music folders, I can rename the path to

smb://<login>:<password>@LKG316394/HDD_1_1_1/Music2/

and create a path

smb://<login>:<password>@LKG316394/HDD_1_1_1/Music/

solely for playlists.

-------------------------------------------------------------------


Another option, or work around, is to create a simple one line script

move

"q:\userdata\playlists\music\*.*"

to

"smb://<login>:<password>@LKG316394/HDD_1_1_1/Music/playlists"

Does anyone know how to write this script?

Thanks,

Brian
Logged

vmaxvboost

  • Archived-User
  • Newbie
  • *
  • Posts: 16
    • View Profile
Change Default Directory For Music Playlists?
« Reply #9 on: May 08, 2008, 08:13:00 PM »

Thanks, Jonathan.  That worked!

Make changes to <system> section of guisettings.xml

Whatever path you want, create "/Music" subfolder, and that is where the playlists are stored

Brian
Logged