milaq / YCast

Self hosted vTuner internet radio service emulation
Other
243 stars 93 forks source link

stations.yml doesn't appear on the hardware #35

Open PrzemoF opened 4 years ago

PrzemoF commented 4 years ago

I use Denon DRA-100. I see "Radiobrowser" on the hardware, but it's empty. "My Stations" - empty. "Recently played" - works, "Search by Keyword" - works. I used the default stations.yml file and a slightly modified one. No errors reported in the command line.

milaq commented 4 years ago

Hi, please supply the debug logs and, if you can, a packet capture of the situation.

Cheers

PrzemoF commented 4 years ago

`pi@raspberrypi:~ $ sudo python3 -m ycast -l 127.0.0.1 -p 8010 -c /home/pi/stations.yml -d 2020-02-27 08:17:28 INFO: YCast (1.0.0) server starting 2020-02-27 08:17:28 DEBUG: Debug logging enabled

Electronic: Deep House Lounge: http://198.15.94.34:8006 Ibiza Sonica: http://s1.sonicabroadcast.com:7005/stream Bassdrive: http://50.7.98.106:8200 SomaFM Fluid: http://ice1.somafm.com/fluid-128-mp3

Chillout: Joint Radio: http://radio.jointil.net:9998 SomaFM DEF CON Radio: http://ice1.somafm.com/defcon-256-mp3 SomaFM Drone Zone: http://ice1.somafm.com/dronezone-256-mp3 SomaFM Mission Control: http://ice1.somafm.com/missioncontrol-128-mp3 The Jazz Groove: http://west-mp3-128.streamthejazzgroove.com Radionomy Downbeat: http://streaming.radionomy.com/TempoOfTheDownbeat1

Casual: 76Radio: http://192.240.102.133:9566/stream SomaFM Beat Blender: http://ice1.somafm.com/beatblender-128-mp3 Jazz Radio Electro Swing: http://jazz-wr04.ice.infomaniak.ch/jazz-wr04-128.mp3 SomaFM Groove Salad: http://ice1.somafm.com/groovesalad-256-mp3 SomaFM Lush: http://ice1.somafm.com/lush-128-mp3 Allzic Radio R&B: http://allzic10.ice.infomaniak.ch/allzic10.mp3 The UK 1940s Radio Station: http://91.121.134.23:8100/1 pi@raspberrypi:~ $ ls -la /home/pi/stations.yml -rw-r--r-- 1 pi pi 1098 lut 18 14:31 /home/pi/stations.yml`

PrzemoF commented 4 years ago

Packet capture in wireshark format: http://opencyclingcomputer.eu/YCast/mystations_packet_capture.pcap I tried to attach it here, but no avail. Let me know if you prefer other format. P.S. Thank you for creating YCast!

PrzemoF commented 4 years ago

`pi@raspberrypi:~/YCast $ sudo tcpdump host 192.168.1.100 -v tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes 08:42:43.880560 IP (tos 0x0, ttl 128, id 48587, offset 0, flags [none], proto TCP (6), length 44) 192.168.1.100.1111 > 192.168.1.31.http: Flags [S], cksum 0xac2d (correct), seq 4809525, win 65535, options [mss 1460], length 0 08:42:43.880630 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 44) 192.168.1.31.http > 192.168.1.100.1111: Flags [S.], cksum 0x6bfc (correct), seq 4004044646, ack 4809526, win 29200, options [mss 1460], length 0 08:42:43.880981 IP (tos 0x0, ttl 128, id 48588, offset 0, flags [none], proto TCP (6), length 40) 192.168.1.100.1111 > 192.168.1.31.http: Flags [.], cksum 0xf5c9 (correct), ack 1, win 65535, length 0 08:42:43.881488 IP (tos 0x0, ttl 128, id 48589, offset 0, flags [none], proto TCP (6), length 279) 192.168.1.100.1111 > 192.168.1.31.http: Flags [P.], cksum 0x294f (correct), seq 1:240, ack 1, win 65535, length 239: HTTP, length: 239 GET /setupapp/denon/asp/browsexm2/loginXML.asp?mac=A9B9FEC13457F4B4B37B44141FE1A2B7&fver=1.754333&dlang=eng&startitems=1&enditems=10 HTTP/1.1 Host: denon.vtuner.com Connection: close User-Agent: Mozilla/4.0 (compatible) Accept: /

08:42:43.881558 IP (tos 0x0, ttl 64, id 4343, offset 0, flags [DF], proto TCP (6), length 40) 192.168.1.31.http > 192.168.1.100.1111: Flags [.], cksum 0x7f9a (correct), ack 240, win 30016, length 0 08:42:43.938847 IP (tos 0x0, ttl 64, id 4344, offset 0, flags [DF], proto TCP (6), length 817) 192.168.1.31.http > 192.168.1.100.1111: Flags [P.], cksum 0xdfda (correct), seq 1:778, ack 240, win 30016, length 777: HTTP, length: 777 HTTP/1.1 200 OK Date: Thu, 27 Feb 2020 08:42:43 GMT Server: Werkzeug/1.0.0 Python/3.7.3 Content-Type: text/html; charset=utf-8 Content-Length: 581 Vary: Accept-Encoding Connection: close

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><ListOfItems><ItemCount>-1</ItemCount><Item><ItemType>Dir</ItemType><Title>Radiobrowser</Title><UrlDir>http://127.0.0.1:8010/ycast/radiobrowser/?vtuner=true</UrlDir><UrlDirBackUp>http://127.0.0.1:8010/ycast/radiobrowser/?vtuner=true</UrlDirBackUp><DirCount>4</DirCount></Item><Item><ItemType>Dir</ItemType><Title>My Stations</Title><UrlDir>http://127.0.0.1:8010/ycast/my_stations/?vtuner=true</UrlDir><UrlDirBackUp>http://127.0.0.1:8010/ycast/my_stations/?vtuner=true</UrlDirBackUp><DirCount>4</DirCount></Item></ListOfItems>[!http]

08:42:43.939481 IP (tos 0x0, ttl 128, id 48591, offset 0, flags [none], proto TCP (6), length 40) 192.168.1.100.1111 > 192.168.1.31.http: Flags [.], cksum 0xf4da (correct), ack 778, win 64758, length 0 08:42:44.011004 IP (tos 0x0, ttl 64, id 58272, offset 0, flags [DF], proto TCP (6), length 817) 192.168.1.31.http > 192.168.1.100.1112: Flags [P.], cksum 0xcb1d (correct), seq 3158584327:3158585104, ack 4873892, win 30016, length 777: HTTP, length: 777 HTTP/1.1 200 OK Date: Thu, 27 Feb 2020 08:42:44 GMT Server: Werkzeug/1.0.0 Python/3.7.3 Content-Type: text/html; charset=utf-8 Content-Length: 581 Vary: Accept-Encoding Connection: close

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><ListOfItems><ItemCount>-1</ItemCount><Item><ItemType>Dir</ItemType><Title>Radiobrowser</Title><UrlDir>http://127.0.0.1:8010/ycast/radiobrowser/?vtuner=true</UrlDir><UrlDirBackUp>http://127.0.0.1:8010/ycast/radiobrowser/?vtuner=true</UrlDirBackUp><DirCount>4</DirCount></Item><Item><ItemType>Dir</ItemType><Title>My Stations</Title><UrlDir>http://127.0.0.1:8010/ycast/my_stations/?vtuner=true</UrlDir><UrlDirBackUp>http://127.0.0.1:8010/ycast/my_stations/?vtuner=true</UrlDirBackUp><DirCount>4</DirCount></Item></ListOfItems>[!http]

08:42:44.011109 IP (tos 0x0, ttl 64, id 58273, offset 0, flags [DF], proto TCP (6), length 40) 192.168.1.31.http > 192.168.1.100.1112: Flags [F.], cksum 0x67d4 (correct), seq 777, ack 1, win 30016, length 0 08:42:44.011807 IP (tos 0x0, ttl 128, id 48599, offset 0, flags [none], proto TCP (6), length 40) 192.168.1.100.1112 > 192.168.1.31.http: Flags [.], cksum 0xe01e (correct), ack 777, win 64758, length 0 08:42:44.011876 IP (tos 0x0, ttl 128, id 48600, offset 0, flags [none], proto TCP (6), length 40) 192.168.1.100.1112 > 192.168.1.31.http: Flags [.], cksum 0xe01d (correct), ack 778, win 64758, length 0 08:42:44.019408 IP (tos 0x0, ttl 128, id 48601, offset 0, flags [none], proto TCP (6), length 40) 192.168.1.100.1112 > 192.168.1.31.http: Flags [F.], cksum 0xdd13 (correct), seq 1, ack 778, win 65535, length 0 08:42:44.019422 IP (tos 0x0, ttl 64, id 58274, offset 0, flags [DF], proto TCP (6), length 40) 192.168.1.31.http > 192.168.1.100.1112: Flags [.], cksum 0x67d3 (correct), ack 2, win 30016, length 0 `