~ubuntu-branches/ubuntu/quantal/banshee/quantal

« back to all changes in this revision

Viewing changes to src/Core/Banshee.Services/Banshee.Playlists.Formats/PlaylistFormatBase.cs

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin
  • Date: 2012-02-18 22:17:24 UTC
  • mfrom: (6.3.23 experimental)
  • Revision ID: package-import@ubuntu.com-20120218221724-cnwdvn490wjjue8t
Tags: 2.3.5-1ubuntu1
* Merge from Debian Experimental, remaining changes:
  + Enable and recommend SoundMenu and Disable NotificationArea by default
  + Disable boo and karma extensions
  + Move desktop file for Meego UI to /usr/share/une/applications
  + Change the url for the Amazon store redirector

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
using Banshee.Base;
36
36
using Banshee.Sources;
 
37
using Folder = Banshee.IO.Directory;
37
38
 
38
39
namespace Banshee.Playlists.Formats
39
40
{
78
79
 
79
80
        protected virtual Uri ResolveUri(string uri)
80
81
        {
81
 
            if (!uri.Contains ("/") && uri.Contains ("\\")) {
82
 
                uri = uri.Replace ("\\", "/");
 
82
            if (!uri.Contains (Folder.UnixSeparator.ToString ()) && uri.Contains (Folder.DosSeparator.ToString ())) {
 
83
                uri = uri.Replace (Folder.DosSeparator, Folder.UnixSeparator);
83
84
            }
84
85
            return BaseUri == null ? new Uri(uri) : new Uri(BaseUri, uri);
85
86
        }
132
133
            get { return title; }
133
134
            set { title = value; }
134
135
        }
 
136
 
 
137
        public virtual char FolderSeparator { get; set; }
135
138
    }
136
139
}