~ubuntu-branches/ubuntu/raring/banshee/raring

« back to all changes in this revision

Viewing changes to src/Core/Banshee.Services/Banshee.Playlists.Formats/M3uPlaylistFormat.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:
35
35
using Banshee.Base;
36
36
using Banshee.Collection;
37
37
using Banshee.Sources;
 
38
using Folder = Banshee.IO.Directory;
38
39
 
39
40
namespace Banshee.Playlists.Formats
40
41
{
122
123
                    }
123
124
 
124
125
                    writer.WriteLine("#EXTINF:{0},{1} - {2}", duration, track.DisplayArtistName, track.DisplayTrackTitle);
125
 
                    writer.WriteLine(ExportUri(track.Uri));
 
126
                    string trackpath = ExportUri (track.Uri);
 
127
                    if (FolderSeparator == Folder.DosSeparator) {
 
128
                        trackpath = trackpath.Replace (Folder.UnixSeparator, Folder.DosSeparator);
 
129
                    }
 
130
                    writer.WriteLine( trackpath );
126
131
                }
127
132
            }
128
133
        }