{"action":"created","issue":{"url":"https://api.github.com/repos/sammachin/AlexaPi/issues/71","repository_url":"https://api.github.com/repos/sammachin/AlexaPi","labels_url":"https://api.github.com/repos/sammachin/AlexaPi/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/sammachin/AlexaPi/issues/71/comments","events_url":"https://api.github.com/repos/sammachin/AlexaPi/issues/71/events","html_url":"https://github.com/sammachin/AlexaPi/issues/71","id":152479637,"number":71,"title":"TuneIn ... so close","user":{"login":"GemBro","id":18484980,"avatar_url":"https://avatars.githubusercontent.com/u/18484980?v=3","gravatar_id":"","url":"https://api.github.com/users/GemBro","html_url":"https://github.com/GemBro","followers_url":"https://api.github.com/users/GemBro/followers","following_url":"https://api.github.com/users/GemBro/following{/other_user}","gists_url":"https://api.github.com/users/GemBro/gists{/gist_id}","starred_url":"https://api.github.com/users/GemBro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GemBro/subscriptions","organizations_url":"https://api.github.com/users/GemBro/orgs","repos_url":"https://api.github.com/users/GemBro/repos","events_url":"https://api.github.com/users/GemBro/events{/privacy}","received_events_url":"https://api.github.com/users/GemBro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-05-02T04:26:26Z","updated_at":"2016-05-02T16:10:13Z","closed_at":null,"body":"Running AlexaPi 1.1 ... works fine on all the 'classic' commands ... but when I ask to play 'JFS Radio' I get the following stream error and the program (loop) ends ... as in crashes out to prompt ...\r\n\r\nERROR DUMP:\r\n\r\nPlayer State: State.Opening\r\nPlayer State: State.Playing\r\nPlayer State: State.Ended\r\nReady to Record.\r\nException in thread Thread-1:\r\nTraceback (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/lib/python2.7/threading.py\", line 763, in run\r\n    self.__target(*self.__args, **self.__kwargs)\r\n  File \"main.py\", line 265, in play_audio\r\n    file = tuneinplaylist(file)\r\n  File \"main.py\", line 256, in tuneinplaylist\r\n    r = requests.get(req.content)\r\n  File \"/usr/lib/python2.7/dist-packages/requests/api.py\", line 60, in get\r\n    return request('get', url, **kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/requests/api.py\", line 49, in request\r\n    return session.request(method=method, url=url, **kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/requests/sessions.py\", line 443, in request\r\n    prep = self.prepare_request(req)\r\n  File \"/usr/lib/python2.7/dist-packages/requests/sessions.py\", line 374, in prepare_request\r\n    hooks=merge_hooks(request.hooks, self.hooks),\r\n  File \"/usr/lib/python2.7/dist-packages/requests/models.py\", line 304, in prepare\r\n    self.prepare_url(url, params)\r\n  File \"/usr/lib/python2.7/dist-packages/requests/models.py\", line 354, in prepare_url\r\n    scheme, auth, host, port, path, query, fragment = parse_url(url)\r\n  File \"/usr/lib/python2.7/dist-packages/urllib3/util/url.py\", line 143, in parse_url\r\n    raise LocationParseError(url)\r\nLocationParseError: Failed to parse: st8.webradioworld.net:8008\r\nhttp:\r\n\r\n\r\nMY GUESS:\r\n\"Failed to parse: st8.webradioworld.net:8008\" ... because that is not the actual audio stream URL ...\r\n\r\nIt's close at playing the stream though ... that 'st8.webradioworld.net:8008' is the actual ShoutCast Admin page, which is correct ... but it's not the audio stream ... to stream the audio (to hear it) it must have http:// in front of that URL ... i.e. ... http://st8.webradioworld.net:8008 ...\r\n\r\nIf 'st8.webradioworld.net:8008' is put into VLC (on a PC) it errors out, like in AlexaPi ...\r\n\r\nBut if you put http://st8.webradioworld.net:8008 into VLC (or any media player for that matter) it does start streaming the audio ...\r\n\r\nSo it looks like the TuneIn audio stream URL (in my example) is being grabbed right but not parsing correctly because it's missing the vital bit at the beginning (http://) to tell Pi VLC it's actually audio ...\r\n\r\nThat's what I'm getting from my log above ... does that make sense? ... wish I knew where I could ammend the stream URL to add   http://  at the beginning to see if that works ...\r\n"},"comment":{"url":"https://api.github.com/repos/sammachin/AlexaPi/issues/comments/216279196","html_url":"https://github.com/sammachin/AlexaPi/issues/71#issuecomment-216279196","issue_url":"https://api.github.com/repos/sammachin/AlexaPi/issues/71","id":216279196,"user":{"login":"Hoki-gcav","id":17747505,"avatar_url":"https://avatars.githubusercontent.com/u/17747505?v=3","gravatar_id":"","url":"https://api.github.com/users/Hoki-gcav","html_url":"https://github.com/Hoki-gcav","followers_url":"https://api.github.com/users/Hoki-gcav/followers","following_url":"https://api.github.com/users/Hoki-gcav/following{/other_user}","gists_url":"https://api.github.com/users/Hoki-gcav/gists{/gist_id}","starred_url":"https://api.github.com/users/Hoki-gcav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hoki-gcav/subscriptions","organizations_url":"https://api.github.com/users/Hoki-gcav/orgs","repos_url":"https://api.github.com/users/Hoki-gcav/repos","events_url":"https://api.github.com/users/Hoki-gcav/events{/privacy}","received_events_url":"https://api.github.com/users/Hoki-gcav/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T16:10:13Z","updated_at":"2016-05-02T16:10:13Z","body":"That worked! Wow I'm incompetent. I didn't factor in that there might be a different radio 1 beside the BBC's... .-.\r\nThis works brilliantly, I'm gonna need to get a proper sound card for this pi now cus I'm gonna be using this a lot ^-^"}}