{"action":"created","issue":{"url":"https://api.github.com/repos/yomguy/DeeFuzzer/issues/55","labels_url":"https://api.github.com/repos/yomguy/DeeFuzzer/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/yomguy/DeeFuzzer/issues/55/comments","events_url":"https://api.github.com/repos/yomguy/DeeFuzzer/issues/55/events","html_url":"https://github.com/yomguy/DeeFuzzer/issues/55","id":55604259,"number":55,"title":"streaming from alsa input","user":{"login":"nim4n","id":5003219,"avatar_url":"https://avatars.githubusercontent.com/u/5003219?v=3","gravatar_id":"","url":"https://api.github.com/users/nim4n","html_url":"https://github.com/nim4n","followers_url":"https://api.github.com/users/nim4n/followers","following_url":"https://api.github.com/users/nim4n/following{/other_user}","gists_url":"https://api.github.com/users/nim4n/gists{/gist_id}","starred_url":"https://api.github.com/users/nim4n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nim4n/subscriptions","organizations_url":"https://api.github.com/users/nim4n/orgs","repos_url":"https://api.github.com/users/nim4n/repos","events_url":"https://api.github.com/users/nim4n/events{/privacy}","received_events_url":"https://api.github.com/users/nim4n/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-27T11:08:04Z","updated_at":"2015-01-28T05:57:36Z","closed_at":null,"body":"Hi I tried to stream alsa input (as mp3 file) with deefuzzer but I get this error:\r\n>    Exception in thread Thread-2:\r\n    Traceback (most recent call last):\r\n      File \"/usr/lib/python2.7/threading.py\", line 810, in __bootstrap_inner\r\n        self.run()\r\n      File \"/usr/local/lib/python2.7/dist-packages/deefuzzer/station.py\", line 625, in run\r\n        self.set_read_mode()\r\n      File \"/usr/local/lib/python2.7/dist-packages/deefuzzer/station.py\", line 530, in set_read_mode\r\n        self.title = self.current_media_obj[0].metadata['title']\r\n    IndexError: list index out of range\r\n\r\nso I changed the Mp3 class(deefuzzer/tools/mp3.py) from:\r\n>    self.bitrate = int(str(self.info.bitrate)[:-3])\r\n\r\nto:\r\n>    try:\r\n          self.bitrate = int(str(self.info.bitrate)[:-3])\r\n    except:\r\n        self.bitrate = self.bitrate_default\r\n\r\nis there any better way?\r\n\r\nps: I'm using ffmpeg for converting input to mp3 file:\r\n>    ffmpeg -f alsa -i hw:0,0 -acodec libmp3lame -ab 128k -ac 1 -ar 44100 -vn test.mp3\r\n"},"comment":{"url":"https://api.github.com/repos/yomguy/DeeFuzzer/issues/comments/71785302","html_url":"https://github.com/yomguy/DeeFuzzer/issues/55#issuecomment-71785302","issue_url":"https://api.github.com/repos/yomguy/DeeFuzzer/issues/55","id":71785302,"user":{"login":"nim4n","id":5003219,"avatar_url":"https://avatars.githubusercontent.com/u/5003219?v=3","gravatar_id":"","url":"https://api.github.com/users/nim4n","html_url":"https://github.com/nim4n","followers_url":"https://api.github.com/users/nim4n/followers","following_url":"https://api.github.com/users/nim4n/following{/other_user}","gists_url":"https://api.github.com/users/nim4n/gists{/gist_id}","starred_url":"https://api.github.com/users/nim4n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nim4n/subscriptions","organizations_url":"https://api.github.com/users/nim4n/orgs","repos_url":"https://api.github.com/users/nim4n/repos","events_url":"https://api.github.com/users/nim4n/events{/privacy}","received_events_url":"https://api.github.com/users/nim4n/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T05:57:36Z","updated_at":"2015-01-28T05:57:36Z","body":"my xml is:\r\n>    <'station'>\r\n        <'infos'>\r\n            <'short_name'>my_station<'/short_name'>\r\n            <'name'>My best funky station<'/name'>\r\n            <'description'>My personal best funky playlist ever !<'/description'>\r\n            <'url'>http://localhost<'/url'>\r\n            <'genre'>Various Funk Groove<'/genre'>\r\n        <'/infos'>\r\n        <'server'>\r\n            <'type'>icecast<'/type'>\r\n            <'host'>localhost<'/host'>\r\n            <'port'>8000<'/port'>\r\n            <'sourcepassword'>admin<'/sourcepassword'>\r\n            <'public'>0<'/public'>\r\n        <'/server'>\r\n        <'media'>\r\n            <'dir'>/home/niman66/ogg/<'/dir'>\r\n            <'format'>mp3<'/format'>\r\n            <'bitrate'>128<'/bitrate'>\r\n            <'ogg_quality'>7<'/ogg_quality'>\r\n            <'samplerate'>44100<'/samplerate'>\r\n            <'voices'>2<'/voices'>\r\n            <'shuffle'>1<'/shuffle'>\r\n        <'/media'>\r\n        <'rss'>\r\n            <'dir'>/home/niman66/Temp/deeF/<'/dir'>\r\n            <'enclosure'>0<'/enclosure'>\r\n            <'media_url'>http://localhost:8000/media/<'/media_url'>\r\n        <'/rss'>\r\n    <'/station'>"}}