Not working
See original GitHub issueIssue Description
stations file: https://cloud.disroot.org/s/oRqZB7dFLriYDxL
pyradio -d -u mpv -s br.csv
2020-03-07 00:22:15,296 - pyradio.radio - INFO - TUI initialization on python v. 3.8.1 (default, Jan 22 2020, 06:38:00) [GCC 9.2.0] on Linux
2020-03-07 00:22:15,296 - pyradio.radio - INFO - Terminal supports 256 colors
2020-03-07 00:22:15,296 - pyradio.radio - INFO - RyRadio built from git: https://github.com/coderholic/pyradio/commit/gb9c2af3 (rev. 0)
2020-03-07 00:22:15,296 - pyradio.themes - ERROR - DE _do_init_pairs:
{'Stations': [7, 0], 'Status Bar': [0, 2], 'Normal Cursor': [0, 5], 'Active Cursor': [0, 2], 'Active Station': [2, 0], 'PyRadio URL': [4, 0], 'Messages Border': [3, 0], 'Edit Cursor': [7, 5], 'Colors': 8, 'Name': 'dark', 'Path': ''}
2020-03-07 00:22:15,296 - pyradio.player - INFO - Probing available multimedia players...
2020-03-07 00:22:15,296 - pyradio.player - INFO - Implemented players: mpv, mplayer, cvlc
2020-03-07 00:22:15,297 - pyradio.player - INFO - <class 'pyradio.player.MpvPlayer'> supported.
2020-03-07 00:22:15,298 - pyradio.radio - ERROR - DE ===== _put:startPos -> 0, force = False
2020-03-07 00:22:15,299 - pyradio.radio - DEBUG - detectUpdateThread: starting...
2020-03-07 00:22:15,299 - pyradio.log - DEBUG - Status: "Selected player: mpv"
2020-03-07 00:22:15,299 - pyradio.log - DEBUG - Status right: "Press ? for help"
2020-03-07 00:22:15,299 - pyradio.window_stack - DEBUG - MODE: NORMAL_MODE -> FOREIGN_PLAYLIST_ASK_MODE - [[0, 0], [300, 0]]
2020-03-07 00:22:17,344 - pyradio.window_stack - DEBUG - CLOSE MODE: FOREIGN_PLAYLIST_ASK_MODE -> NORMAL_MODE - [[0, 0]]
2020-03-07 00:22:17,345 - pyradio.radio - DEBUG - Canceling: Move foreign playlist...
2020-03-07 00:22:17,801 - pyradio.log - DEBUG - Status: "Playing Bons Tempos FM 1"
2020-03-07 00:22:17,813 - pyradio.log - DEBUG - Status: "Station: "Bons Tempos FM 1" - Opening connection..."
2020-03-07 00:22:17,813 - pyradio.player - INFO - Selected Station: "Bons Tempos FM 1"
2020-03-07 00:22:17,916 - pyradio.player - DEBUG - --input-ipc-server is supported.
2020-03-07 00:22:17,917 - pyradio.player - INFO - MPV updateStatus thread started.
2020-03-07 00:22:17,918 - pyradio.player - INFO - Player started
2020-03-07 00:22:24,930 - pyradio.log - DEBUG - Status: "Connecting to: "Bons Tempos FM 1""
2020-03-07 00:22:30,372 - pyradio.player - INFO - MPV updateStatus thread stopped.
2020-03-07 00:22:30,387 - pyradio.radio - INFO - start of playback NOT detected!!!
2020-03-07 00:22:30,387 - pyradio.log - DEBUG - Status: "Failed to connect to: "Bons Tempos FM 1""
pyradio -d -u vlc -s br.csv
2020-03-07 00:26:28,693 - pyradio.radio - INFO - TUI initialization on python v. 3.8.1 (default, Jan 22 2020, 06:38:00) [GCC 9.2.0] on Linux
2020-03-07 00:26:28,693 - pyradio.radio - INFO - Terminal supports 256 colors
2020-03-07 00:26:28,693 - pyradio.radio - INFO - RyRadio built from git: https://github.com/coderholic/pyradio/commit/gb9c2af3 (rev. 0)
2020-03-07 00:26:28,693 - pyradio.themes - ERROR - DE _do_init_pairs:
{'Stations': [7, 0], 'Status Bar': [0, 2], 'Normal Cursor': [0, 5], 'Active Cursor': [0, 2], 'Active Station': [2, 0], 'PyRadio URL': [4, 0], 'Messages Border': [3, 0], 'Edit Cursor': [7, 5], 'Colors': 8, 'Name': 'dark', 'Path': ''}
2020-03-07 00:26:28,693 - pyradio.player - INFO - Probing available multimedia players...
2020-03-07 00:26:28,693 - pyradio.player - INFO - Implemented players: mpv, mplayer, cvlc
2020-03-07 00:26:28,694 - pyradio.player - INFO - <class 'pyradio.player.VlcPlayer'> supported.
2020-03-07 00:26:28,695 - pyradio.radio - ERROR - DE ===== _put:startPos -> 0, force = False
2020-03-07 00:26:28,696 - pyradio.radio - DEBUG - detectUpdateThread: starting...
2020-03-07 00:26:28,696 - pyradio.log - DEBUG - Status: "Selected player: vlc"
2020-03-07 00:26:28,696 - pyradio.log - DEBUG - Status right: "Press ? for help"
2020-03-07 00:26:28,696 - pyradio.window_stack - DEBUG - MODE: NORMAL_MODE -> FOREIGN_PLAYLIST_ASK_MODE - [[0, 0], [300, 0]]
2020-03-07 00:26:30,068 - pyradio.window_stack - DEBUG - CLOSE MODE: FOREIGN_PLAYLIST_ASK_MODE -> NORMAL_MODE - [[0, 0]]
2020-03-07 00:26:30,069 - pyradio.radio - DEBUG - Canceling: Move foreign playlist...
2020-03-07 00:26:34,884 - pyradio.log - DEBUG - Status: "Playing Bons Tempos FM 1"
2020-03-07 00:26:34,884 - pyradio.log - DEBUG - Status: "Station: "Bons Tempos FM 1" - Opening connection..."
2020-03-07 00:26:34,884 - pyradio.player - INFO - Selected Station: "Bons Tempos FM 1"
2020-03-07 00:26:34,889 - pyradio.player - DEBUG - updateStatus thread started.
2020-03-07 00:26:34,890 - pyradio.player - INFO - Player started
2020-03-07 00:26:34,945 - pyradio.player - DEBUG - User input: [00007f108c001670] http stream debug: resolving www.radios.com.br ...
2020-03-07 00:26:34,946 - pyradio.log - DEBUG - Status: "Connecting to: "Bons Tempos FM 1""
2020-03-07 00:26:40,327 - pyradio.player - DEBUG - User input: [00007f108c001670] http stream debug: outgoing request:
2020-03-07 00:26:40,687 - pyradio.player - DEBUG - User input: [00007f108c001670] http stream debug: incoming response:
2020-03-07 00:26:40,688 - pyradio.player - DEBUG - User input: [00007f108c001670] http stream debug: connection failed
2020-03-07 00:26:44,890 - pyradio.player - DEBUG - Command: voldown 0
2020-03-07 00:26:44,896 - pyradio.player - DEBUG - User input: ( audio volume: 0,0 )
2020-03-07 00:26:44,901 - pyradio.player - DEBUG - Command: volume 128
2020-03-07 00:26:44,901 - pyradio.player - DEBUG - Unmuting VLC on exit: 128 (25%)
2020-03-07 00:26:44,901 - pyradio.player - DEBUG - Command: shutdown
2020-03-07 00:26:45,010 - pyradio.player - INFO - updateStatus thread stopped.
2020-03-07 00:26:45,010 - pyradio.radio - INFO - start of playback NOT detected!!!
2020-03-07 00:26:45,010 - pyradio.log - DEBUG - Status: "Failed to connect to: "Bons Tempos FM 1""
With simple mpv https://www.radios.com.br/players/listen-radio.m3u\?radio\=37027
works fine.
I am using the package available at https://aur.archlinux.org/packages/pyradio-git/
Issue Analytics
- State:
- Created 3 years ago
- Comments:10
Top Results From Across the Web
138 Synonyms & Antonyms for NOT WORKING - Thesaurus.com
synonyms for not working · baseless · false · inoperative · irrational · null · unreasonable · unscientific · unsound ...
Read more >Working Not Working
Trusted by over 2000 of the world's most innovative companies to staff their creative projects.
Read more >Not Working: Cohen, Josh - Amazon.com
'Not Working' is an excellent companion to existentialism or those reading that subject or the subject of work, its philosophy and stress caused...
Read more >Not Working: Where Have All the Good Jobs Gone?
Not Working is about those who can't find full-time work at a decent wage—the underemployed—and how their plight is contributing to widespread ...
Read more >Fix an installed Android app that isn't working - Google Support
Try the following steps if an app installed on your phone has any of these problems: Crashing. Won't open. Won't respond. Isn't working...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes.
Your logs seem to be quite similar to mine. https://hastebin.com/osakiganel.sql
The redirection is there all right. Look at mplayer’s behaviour when using [1] with http:
== Start of Code Playing http://www.radios.com.br/old_php/players/streaming/playlist.php?format=m3u&radio=37027. get_path(‘sub/’) -> ‘/home/spiros/.mplayer/sub/’ Filename for url is now http://www.radios.com.br/old_php/players/streaming/playlist.php?format=m3u&radio=37027 Filename for url is now http://www.radios.com.br/old_php/players/streaming/playlist.php?format=m3u&radio=37027 STREAM_HTTP(1), URL: http://www.radios.com.br/old_php/players/streaming/playlist.php?format=m3u&radio=37027 Resolving www.radios.com.br for AF_INET… Connecting to server www.radios.com.br[104.25.51.105]: 80…
— HTTP DEBUG HEADER — START — protocol: [HTTP/1.1] http minor version: [1] uri: [(null)] method: [(null)] status code: [301] reason phrase: [Moved Permanently] body size: [299] Fields: 0 - Date: Mon, 09 Mar 2020 16:33:58 GMT 1 - Content-Type: text/html; charset=iso-8859-1 2 - Connection: close 3 - Set-Cookie: __cfduid=d66991f457e499c91e375b75820e56e411583771637; expires=Wed, 08-Apr-20 16:33:57 GMT; path=/; domain=.radios.com.br; HttpOnly; SameSite=Lax 4 - Location: https://www.radios.com.br/old_php/players/streaming/playlist.php?format=m3u&radio=37027 5 - CF-Cache-Status: DYNAMIC 6 - Server: cloudflare 7 - CF-RAY: 57163360c930d214-MAN — HTTP DEBUG HEADER — END — Filename for url is now https://www.radios.com.br/old_php/players/streaming/playlist.php?format=m3u&radio=37027 Unsupported http 301 redirect to https protocol Filename for url is now http://www.radios.com.br/old_php/players/streaming/playlist.php?format=m3u&radio=37027 Filename for url is now http://www.radios.com.br/old_php/players/streaming/playlist.php?format=m3u&radio=37027 STREAM_ASF, URL: http://www.radios.com.br/old_php/players/streaming/playlist.php?format=m3u&radio=37027 Trying ASF/HTTP… Resolving www.radios.com.br for AF_INET… Connecting to server www.radios.com.br[104.25.52.105]: 80…
Server returned 301:Moved Permanently Failed to parse header. ===> ASF/HTTP failed Failed, exiting. Filename for url is now http://www.radios.com.br/old_php/players/streaming/playlist.php?format=m3u&radio=37027 Filename for url is now http://www.radios.com.br/old_php/players/streaming/playlist.php?format=m3u&radio=37027 STREAM_HTTP(2), URL: http://www.radios.com.br/old_php/players/streaming/playlist.php?format=m3u&radio=37027 Resolving www.radios.com.br for AF_INET… Connecting to server www.radios.com.br[104.25.51.105]: 80…
— HTTP DEBUG HEADER — START — protocol: [HTTP/1.1] http minor version: [1] uri: [(null)] method: [(null)] status code: [301] reason phrase: [Moved Permanently] body size: [299] Fields: 0 - Date: Mon, 09 Mar 2020 16:33:59 GMT 1 - Content-Type: text/html; charset=iso-8859-1 2 - Connection: close 3 - Set-Cookie: __cfduid=d8e554e97d14e2f6fb753ad7880b7d6441583771639; expires=Wed, 08-Apr-20 16:33:59 GMT; path=/; domain=.radios.com.br; HttpOnly; SameSite=Lax 4 - Location: https://www.radios.com.br/old_php/players/streaming/playlist.php?format=m3u&radio=37027 5 - CF-Cache-Status: DYNAMIC 6 - Server: cloudflare 7 - CF-RAY: 5716336b7ca6e597-MAN — HTTP DEBUG HEADER — END — Filename for url is now https://www.radios.com.br/old_php/players/streaming/playlist.php?format=m3u&radio=37027 Unsupported http 301 redirect to https protocol No stream found to handle url http://www.radios.com.br/old_php/players/streaming/playlist.php?format=m3u&radio=37027
vo: x11 uninit called but X11 not initialized…
Exiting… (End of file) == End of Code
It’s actually a double redirection: [1] to https://www.radios.com.br/old_php/players/streaming/playlist.php?format=m3u&radio=37027 and https://www.radios.com.br/old_php/players/streaming/playlist.php?format=m3u&radio=37027 to [2] (returned as an m3u playlist)
About https: I have forced https to http because I’ve had stations not being able to connect because of it. I don’t know about that though; it seemed like a fix at the time…
Yes, maybe we can close this one, ok?