Xspf Playlist Import Error

Bug #791418 reported by Snorri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Banshee
Fix Released
Medium
banshee (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: banshee

hej hej,

I would import my xspf playlists from an earlier ubuntu system. It fails with the following warning:

Caught an exception - System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: Parameters describe an unrepresentable DateTime. (in `mscorlib')
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond) [0x00000] in <filename unknown>:0
  at Media.Playlists.Xspf.W3CDateTime.Parse (System.String s) [0x00000] in <filename unknown>:0
System.FormatException: Input is not a valid W3C or RFC822 date (in `Mono.Media')
  at Media.Playlists.Xspf.W3CDateTime.Parse (System.String s) [0x00000] in <filename unknown>:0
  at Media.Playlists.Xspf.XmlUtil.ReadDate (System.Xml.XmlNode node, System.Xml.XmlNamespaceManager xmlns, System.String xpath) [0x00000] in <filename unknown>:0
  at Media.Playlists.Xspf.Playlist.Load (System.Xml.XmlDocument doc) [0x00000] in <filename unknown>:0
  at Media.Playlists.Xspf.Playlist.Load (System.IO.TextReader reader) [0x00000] in <filename unknown>:0
  at Banshee.Playlists.Formats.XspfPlaylistFormat.Load (System.IO.StreamReader stream, Boolean validateHeader) [0x00000] in <filename unknown>:0
  at Banshee.Playlists.Formats.PlaylistFormatBase.Load (System.IO.Stream stream, Boolean validateHeader) [0x00000] in <filename unknown>:0
  at Banshee.Playlists.Formats.PlaylistParser.Parse (Hyena.SafeUri uri) [0x00000] in <filename unknown>:0
  at Banshee.Playlist.PlaylistFileUtil.ImportPlaylistToLibrary (System.String path, Banshee.Sources.PrimarySource source, Banshee.Collection.Database.DatabaseImportManager importer) [0x00000] in <filename unknown>:0

If I delete the content of the date tag on top of the xspf file, it works for me!

I'm using Ubuntu 11.04 with banshee 2.0.0-2ubuntu1 .

Snorri (jkoch-contact)
tags: added: banshee import playlist xspf
Revision history for this message
Victor Vargas (kamus) wrote :

maybe this issue is the same as https://bugzilla.gnome.org/show_bug.cgi?id=650184, any way, please could you submit your "~/.config/banshee-1/log" as a separated file?

Changed in banshee (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Snorri (jkoch-contact) wrote :

Year it looks like the same.

In my opinion the last entry is the important one.
The System cannot parse the date tag in my xspf file.

snorri

Revision history for this message
Victor Vargas (kamus) wrote :

I have added your log file in upstream tracker, marked as triaged for now. Thank you

Changed in banshee (Ubuntu):
status: Incomplete → Triaged
Changed in banshee:
importance: Unknown → Medium
status: Unknown → New
Revision history for this message
Snorri (jkoch-contact) wrote :

I've commited a fix on bugzilla. see https://bugzilla.gnome.org/show_bug.cgi?id=650184

Changed in banshee (Ubuntu):
status: Triaged → Fix Committed
Changed in banshee:
status: New → Fix Released
Revision history for this message
Fritz Heinrichmeyer (fritz-heinrichmeyer) wrote :

banshee imports a xspf playlist with radio entries, but then it cannot make use of it and freezes completely. Clementine has no problem with it. Attachment has xml file

Architecture: amd64
Version: 2.2.0-1ubuntu2

Revision history for this message
Snorri (jkoch-contact) wrote :
Revision history for this message
Chow Loong Jin (hyperair) wrote :

Fritz, could you post your Banshee output log after "killall -SIGQUIT banshee" after it hangs, please?

Revision history for this message
Chow Loong Jin (hyperair) wrote :

Fixed in 2.1.3.

Changed in banshee (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.