{"action":"created","issue":{"url":"https://api.github.com/repos/lotan/rhythmbox-ampache/issues/10","repository_url":"https://api.github.com/repos/lotan/rhythmbox-ampache","labels_url":"https://api.github.com/repos/lotan/rhythmbox-ampache/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/lotan/rhythmbox-ampache/issues/10/comments","events_url":"https://api.github.com/repos/lotan/rhythmbox-ampache/issues/10/events","html_url":"https://github.com/lotan/rhythmbox-ampache/issues/10","id":158832857,"number":10,"title":"Can't play songs but can see them","user":{"login":"facetoe","id":1366896,"avatar_url":"https://avatars.githubusercontent.com/u/1366896?v=3","gravatar_id":"","url":"https://api.github.com/users/facetoe","html_url":"https://github.com/facetoe","followers_url":"https://api.github.com/users/facetoe/followers","following_url":"https://api.github.com/users/facetoe/following{/other_user}","gists_url":"https://api.github.com/users/facetoe/gists{/gist_id}","starred_url":"https://api.github.com/users/facetoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facetoe/subscriptions","organizations_url":"https://api.github.com/users/facetoe/orgs","repos_url":"https://api.github.com/users/facetoe/repos","events_url":"https://api.github.com/users/facetoe/events{/privacy}","received_events_url":"https://api.github.com/users/facetoe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-07T03:59:57Z","updated_at":"2016-06-07T10:52:14Z","closed_at":null,"body":"Hi, I'm unable to play the songs that are displayed with the Ampache plugin. I get the following error in the console when I try:\r\n\r\n```\r\n(rhythmbox:13694): RhythmDB-CRITICAL **: rhythmdb_entry_ref: assertion 'entry != NULL' failed\r\nRhythmbox-Message: Missing plugin: gstreamer|1.0|rhythmbox|application/xml decoder|decoder-application/xml\r\nRhythmbox-Message: Automatic missing codec installation not supported (helper script missing)\r\n\r\n(rhythmbox:13694): RhythmDB-CRITICAL **: rhythmdb_entry_unref: assertion 'entry != NULL' failed\r\n```\r\n\r\nI had to patch the plugin as my `time` elements are empty and it was causing a crash - https://github.com/lotan/rhythmbox-ampache/compare/master...facetoe:master. \r\n\r\nAny idea what's causing this? I'm running Arch Linux and have all the gstreamer plugins installed:\r\n\r\n```\r\nextra/gst-plugins-bad 1.8.1-1 [installed]\r\n    GStreamer Multimedia Framework Bad Plugins\r\nextra/gst-plugins-base 1.8.1-1 [installed]\r\n    GStreamer Multimedia Framework Base Plugins\r\nextra/gst-plugins-base-libs 1.8.1-1 [installed]\r\n    GStreamer Multimedia Framework Base Plugin libraries\r\nextra/gst-plugins-good 1.8.1-1 [installed]\r\n    GStreamer Multimedia Framework Good Plugins\r\nextra/gst-plugins-ugly 1.8.1-1 [installed]\r\n    GStreamer Multimedia Framework Ugly Plugins\r\nextra/gstreamer0.10-bad 0.10.23-15 [installed]\r\n    GStreamer Multimedia Framework Bad Plugin libraries (gst-plugins-bad)\r\nextra/gstreamer0.10-bad-plugins 0.10.23-15 (gstreamer0.10-plugins) [installed]\r\n    GStreamer Multimedia Framework Bad Plugins (gst-plugins-bad)\r\nextra/gstreamer0.10-base-plugins 0.10.36-3 (gstreamer0.10-plugins) [installed]\r\n    GStreamer Multimedia Framework Base Plugins (gst-plugins-base)\r\nextra/gstreamer0.10-good-plugins 0.10.31-10 (gstreamer0.10-plugins) [installed]\r\n    GStreamer Multimedia Framework Good Plugins (gst-plugins-good)\r\nextra/gstreamer0.10-ugly-plugins 0.10.19-16 (gstreamer0.10-plugins) [installed]\r\n    GStreamer Multimedia Framework Ugly Plugins (gst-plugins-ugly)\r\n```\r\nAny help would be greatly appreciated!"},"comment":{"url":"https://api.github.com/repos/lotan/rhythmbox-ampache/issues/comments/224246134","html_url":"https://github.com/lotan/rhythmbox-ampache/issues/10#issuecomment-224246134","issue_url":"https://api.github.com/repos/lotan/rhythmbox-ampache/issues/10","id":224246134,"user":{"login":"facetoe","id":1366896,"avatar_url":"https://avatars.githubusercontent.com/u/1366896?v=3","gravatar_id":"","url":"https://api.github.com/users/facetoe","html_url":"https://github.com/facetoe","followers_url":"https://api.github.com/users/facetoe/followers","following_url":"https://api.github.com/users/facetoe/following{/other_user}","gists_url":"https://api.github.com/users/facetoe/gists{/gist_id}","starred_url":"https://api.github.com/users/facetoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facetoe/subscriptions","organizations_url":"https://api.github.com/users/facetoe/orgs","repos_url":"https://api.github.com/users/facetoe/repos","events_url":"https://api.github.com/users/facetoe/events{/privacy}","received_events_url":"https://api.github.com/users/facetoe/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T10:52:14Z","updated_at":"2016-06-07T10:52:14Z","body":"Thanks for the quick response @lotan. Here is an example XML snippet where the `time` element is empty:\r\n\r\n```xml\r\n<song id=\"837\">\r\n    <title>01 Vicarious.mp3</title>\r\n    <artist id=\"12\"/>\r\n    <album id=\"108\">Music</album>\r\n    <url>https://facetoe.com.au/owncloud/apps/music/ampache/server/xml.server.php?action=play&filter=837&auth=...</url>\r\n    <time/>\r\n    <track/>\r\n    <size>0</size>\r\n    <art/>\r\n    <rating>0</rating>\r\n    <preciserating>0</preciserating>\r\n</song>\r\n``` \r\n\r\nAlthough now the error is being thrown on the track element:\r\n\r\n```\r\n(18:42:59) [0x19ca210] [AmpacheBrowser.songs_downloaded_cb] /usr/lib/rhythmbox/plugins/ampache/AmpacheBrowser.py:568: parse chunk _songs[0]...\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/rhythmbox/plugins/ampache/AmpacheBrowser.py\", line 302, in songs_downloaded_cb\r\n    parser.feed(contents)\r\n  File \"/usr/lib/python3.5/xml/sax/expatreader.py\", line 210, in feed\r\n    self._parser.Parse(data, isFinal)\r\n  File \"/build/python/src/Python-3.5.1/Modules/pyexpat.c\", line 468, in EndElement\r\n  File \"/usr/lib/python3.5/xml/sax/expatreader.py\", line 325, in end_element\r\n    self._cont_handler.endElement(name)\r\n  File \"/usr/lib/rhythmbox/plugins/ampache/AmpacheBrowser.py\", line 158, in endElement\r\n    self.__track = int(self.__text)\r\nValueError: invalid literal for int() with base 10: ''\r\n```\r\n```xml\r\n<song id=\"847\">\r\n    <title>00 - Bob Dylan - All Along The Watchtower</title>\r\n    <artist id=\"14\">Bob Dylan</artist>\r\n    <album id=\"111\">Best Of</album>\r\n    <url>https://facetoe.com.au/owncloud/apps/music/ampache/server/xml.server.php?action=play&filter=847&auth=...</url>\r\n    <time>152</time>\r\n    <track/>\r\n    <size>0</size>\r\n    <art/>\r\n    <rating>0</rating>\r\n    <preciserating>0</preciserating>\r\n</song>\r\n```\r\n\r\nIf I paste the URL into a web browser it plays fine. It's likely my Ampache is all messed up, I'm using ownCloud and have been pulling my hair out all day. Not sure if it's worth modifying the plugin if my Ampache is serving up invalid XML...\r\n\r\n"}}
{"actor":{"display_login":"facetoe"}}