| |||||||
| General Development (no feature request here!) You were able to fix an issue, or improved a feature? Post it here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Portal Member Join Date: Oct 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Country: | Hi, making my first steps in C# (I'm a Delphi and scripting guy), I adressed the bugs reported here and here, being: - tracks containing special characters in .m3u playlists were skipped as well as not displayed properly - track lengths in .pls playlists were off by a factor of 1000 seconds - relative paths in .pls playlists didn't work Here's what I changed: Core.PlayList.PlayListM3uIO.cs: Line 59, old code: Code: using (file = new StreamReader(playlistFileName)) Code: Encoding fileEncoding = Encoding.Default; FileStream stream = File.Open(playlistFileName, FileMode.Open, FileAccess.Read, FileShare.Read); using (file = new StreamReader(stream, fileEncoding, true)) Core.PlayList.PlayListPLSIO.cs: Commented out line 138 Code: //duration *= 1000; Lines 142-146, old code: Code: if (tmp.IndexOf("http:") < 0 && tmp.IndexOf("mms:") < 0 && tmp.IndexOf("rtp:") < 0)
{
MediaPortal.Util.Utils.GetQualifiedFilename(basePath, ref fileName);
newItem.Type = PlayListItem.PlayListItemType.AudioStream;
}
Code: if (tmp.IndexOf("http:") < 0 && tmp.IndexOf("mms:") < 0 && tmp.IndexOf("rtp:") < 0)
{
MediaPortal.Util.Utils.GetQualifiedFilename(basePath, ref fileName);
newItem.FileName = fileName;
newItem.Type = PlayListItem.PlayListItemType.AudioStream;
}
BTW I'm not sure if the assignment of the newItem.Type is correct in this last piece of code. But since it's been working for me so far, I left it alone. Someone with more inside knowledge may verify this. Cheers... |
| | |
| |
| | #2 (permalink) |
| Retired Team Member | sounds great. I am no programmer, so I can´t say much to your changes. But it is always appreciated if you: # explain the changes on the forums (done! )# upload your changes as full files to the sourceforge patches section: http://sourceforge.net/tracker/?atid...97&func=browse tomtom |
| | |
![]() |
| Bookmarks |
| Tags |
| adressed, couple, patch, playlist |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Couple of bugs/issues | Noelix | Get Support | 1 | 2007-03-07 19:59 |
| A couple of issues that won't go away (yet) | emphatic | 0.2.0.0 Final and SVN Builds | 0 | 2006-12-23 01:32 |
| A couple of UI issues with B2 Wide | Doodles | 0.2.0.0 Final and SVN Builds | 4 | 2006-10-30 18:38 |
| Please help me to stop this tearing+a couple of other issues | slayer | General Support | 67 | 2006-03-22 23:05 |
| Video navigation and playlist issues | FullMoon | 0.2.0.0 Release Candidate 1 | 0 | 2005-09-17 00:02 |