Welcome Guest.   Make a donation to an author on the site September 18, 2014, 10:44:35 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
View the new Member Awards and Badges page.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: Prev 1 2 [3] 4 Next   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: NANY 2011 Release: Ethervane Radio 0.2.4  (Read 29502 times)
tranglos
Supporting Member
**
Posts: 1,079



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #50 on: January 11, 2011, 07:39:07 PM »

Quote
The program doesn't yet have its own web site - that will happen eventually.


if you want some space on our member server just ask!

Thanks, mouser, that's very kind. (I actually still have a login, but never used it.) All I need is time :-)



Logged

tranglos
Supporting Member
**
Posts: 1,079



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #51 on: January 11, 2011, 07:43:42 PM »

@tranglos

The radio station was 'Afterhours'. No problem playing this station with RadioSure (also Baas based).

OK, I have good news, kind-of. The previous release of ER does not crash in this way. It still won't play the station (in the case of CJFH, the server returns 200 OK, but also sends a redirection URL to the correct playlist file. Browsers handle this situation somehow, ER does not, yet).

But it is clear now that the crashes are caused by some change I've introduced in the last few days, so I will definitely be able to fix the problem. And the stations should eventually be playable.

Logged

bob99
Supporting Member
**
Posts: 324

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #52 on: January 11, 2011, 09:56:59 PM »


Tried running it on my Win 7 x64 with "CJFH" station and it also crashed.  It didn't just go away like in XP. Win 7 popped up a screen "Ethervane Radio Has Stopped Working" but it did not have a reason why.
Even after I closed the pop-up the icon is still in the system tray. In fact I now have two icons in the tray since I tried running it twice.  I checked the program folder and do not see a log file.  Would it be different in Win 7?


Logged
tranglos
Supporting Member
**
Posts: 1,079



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #53 on: January 11, 2011, 10:05:32 PM »

The crashing bug has been fixed. I couldn't really let it go, so I installed Delphi on the laptop and found the problem. No other changes in this release, but ER should no longer crash/disappear on trying to play a station.

Download link in the top message:
http://www.donationcoder....opic=25068.0;attach=54553


Tech note: the error would occur after ER downloaded and analyzed a playlist that appeared to be empty (no valid links to audio streams were found in the playlist). Now ER will no longer crash, but for some stations it still cannot read the playlists properly. The situation with CJFH is a good example: when ER asks for the playlist, the server responds with '200 OK' message, so the body of the response should contain the playlist. Turns out, the body contains a random html web page with a redirection URL (to the real playlist) embedded in a refresh directive. I've never been a web admin, but this is not right: the server's response code contradicts what the server actually does. It's like being told the light is green, when it is actually red. I'll try to handle such pathological cases later.

For now - and here's the reward for having read this far - there is a configuration setting that may let ER play more stations, including the dreaded CJFH and perhaps others that were causing the crashing problem before. Close ER and edit the configuration file (found under "Application Data/ethervane/ethervane radio"); the file is named "ethervaneradio-config.ini". In the file, find the line

Quote
SelfHandlePlaylists=True

and change it to

Quote
SelfHandlePlaylists=False

Save the file and restart ER. Now the BASS library will be handling all the playlists requests itself. Normally, ER downloads and parses all playlists, because according to the docs, BASS only supports m3u and pls formats. However, the docs appear to be inaccurate, and BASS supports other popular playlists formats as well, such as asx, so there may be no need for ER to do any handling of playlists directly.
Logged

tranglos
Supporting Member
**
Posts: 1,079



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #54 on: January 11, 2011, 10:09:05 PM »

Tried running it on my Win 7 x64 with "CJFH" station and it also crashed.  It didn't just go away like in XP. Win 7 popped up a screen "Ethervane Radio Has Stopped Working" but it did not have a reason why.

Thanks, Bob! I've just posted an updated version that should not crash anymore. More explanation and download link in my post immediately above this one.

Logged

bob99
Supporting Member
**
Posts: 324

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #55 on: January 11, 2011, 10:23:40 PM »


No problem.  I'll get the latest.
I knew it would be fixed... just not this fast Thmbsup
Looking forward to your other additions to ER as it evolves.
Logged
PhilB66
Supporting Member
**
Posts: 1,510


View Profile Give some DonationCredits to this forum member
« Reply #56 on: January 11, 2011, 10:46:04 PM »

Thanks for the quick fix. Works fine on XP SP3.  Thmbsup
Logged
belight
Supporting Member
**
Posts: 2


View Profile Give some DonationCredits to this forum member
« Reply #57 on: January 12, 2011, 03:38:26 AM »

Thanks - I love it.
Logged
bob99
Supporting Member
**
Posts: 324

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #58 on: January 12, 2011, 09:22:09 AM »


Tranglos

It is working on my XP sp2.  Meaning no shutdowns using the random selection.  But the CJFH test still isn't even after the config change to False.  I have to head out but will try again this evening to make sure I did everything correctly and let you know what is happening (or not happening).  Some stations not playing isn't a problem for me, there are still plenty of good ones to listen to.  I know this is still a work in progress.

Thanks again for the great N.A.N.Y. program/entry!
Logged
tranglos
Supporting Member
**
Posts: 1,079



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #59 on: January 12, 2011, 10:24:18 AM »

But the CJFH test still isn't even after the config change to False.

This is to be expected. The server is really configured in an abnormal manner. Only browsers can handle such unusual cases, because a lot of programmer time is devoted to making sure every last website can be displayed, no matter how badly designed.

At least with ER handling playlists by itself, rather than handing them all off to the BASS library, I can tweak the code so that more stations can play successfully. In some cases the station is simply gone, but there are probably many other stations like CJFH - they exist, but require much "special attention" to handle.

Side note: I had no idea how many badly configured sites exist. You'd think website owners, radio stations in particular, would go out of their way to make it easy for people to reach them. But that would be too rational for human beings to be smiley In the early days of the web, where html documents were nearly all hand-crafted, syntax errors in html were the norm, things like mismatched tags, etc. Today most output is computer-generated, so it takes only one small effort to get things right, but still there are monsters out there.

I was writing a parser for ASX playlists, which seems to be the most common format in use today (more common than m3u and pls put together). It's a very simple XML format. There were originally about 5400 asx playlists in the database, and of those, over 1100 (about 20%) were invalid XML. Tags were unmatched, tag case was all over the place (XML tags are case sensitive, so that <FOO> </foo> is not valid), and sometimes the playlist had the asx extension, but in fact was m3u or some other format. That meant I could not be using a regular XML parser for these files, and instead had to spend a few days writing code to handle all those misshapen formats. It was an interesting experience!
Logged

bob99
Supporting Member
**
Posts: 324

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #60 on: January 12, 2011, 08:25:18 PM »


Installing on my Win 7 tonight.  Meant to ask before.  Should I 1st delete the files in the folder where I placed the earlier version or will they be overwritten after I unzip and copy or move the latest version to the folder? Should I have also deleted the files in the user app data folder before updating?  I noticed on my XP this morning that even after updating it had still remembered some favorites I had chosen during my random selections with the previous version. Ver 0.1.2b didn't attempt to create the database file like the 1st installation did.
Logged
tranglos
Supporting Member
**
Posts: 1,079



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #61 on: January 12, 2011, 09:01:07 PM »

Installing on my Win 7 tonight.  Meant to ask before.  Should I 1st delete the files in the folder where I placed the earlier version or will they be overwritten after I unzip and copy or move the latest version to the folder? Should I have also deleted the files in the user app data folder before updating?  

You did well. Just extract the new version over the earlier files. There's no need to delete anything in app data.

I noticed on my XP this morning that even after updating it had still remembered some favorites I had chosen during my random selections with the previous version. Ver 0.1.2b didn't attempt to create the database file like the 1st installation did.

That's because the database already exists. Your favorites (and now, history) will persist, as they should.

In case I need to change the structure of the database with some future release, I'll do my best to keep the existing data, but I'm not making this a cross-my-heart promise as long as ER is at alpha stage. That said, I'm not planning on any heavy restructuring.

As for the configuration, it's still partly in flux. You can keep the configuration file as well, or you can delete it, so that ER will create a new one with all the default settings. (Defaults can change between versions, as was the case with volume control.) Pretty soon I'll add a proper configuration dialog, so this will be less of an issue.

Logged

PhilB66
Supporting Member
**
Posts: 1,510


View Profile Give some DonationCredits to this forum member
« Reply #62 on: January 12, 2011, 09:06:06 PM »

I use Ethervane Radio portable. I only replaced the .exe. If you delete the configuration files (.ini) they will be recreated once you run ER but you will lose your settings. Also, the DB is still at version 1.0. You do not need to delete the file but you may delete the 'Distrib' folder with the EthervaneRadio.xml file in it. It's not needed after ER created the DB file (.sqlite).
« Last Edit: January 12, 2011, 09:07:44 PM by PhilB66 » Logged
PhilB66
Supporting Member
**
Posts: 1,510


View Profile Give some DonationCredits to this forum member
« Reply #63 on: January 12, 2011, 09:25:59 PM »

@tranglos

How do I flush the 'History' listing? I tried to manipulate the ethervaneradio-config.ini file by changin the HistorySpan=o but ER still shows a list of radio stations under the 'History' tab. I also changed HistoryMaintain to false but no help there either, the list is still there.
Logged
tranglos
Supporting Member
**
Posts: 1,079



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #64 on: January 13, 2011, 07:20:53 AM »

@tranglos

How do I flush the 'History' listing? I tried to manipulate the ethervaneradio-config.ini file by changin the HistorySpan=o but ER still shows a list of radio stations under the 'History' tab. I also changed HistoryMaintain to false but no help there either, the list is still there.

These config options don't do anything yet, and right now there is no way to clear the history inside the program. There are three things you can do:

1) delete the database entirely. ER will recreate it, as long as you have kept the "Distrib" folder from the original zip file. Downside: you'll lose your Favorites as well.

2) Download a free program to manipulate SQLite databases, such as SQLiteSpy (doesn't require installation). Open the database file in this program. There is a pane on top where you can type commands. Paste the following code:
Quote
DELETE FROM [history];
and hit F9. This will clear the contents of the history table.

3) In the configuration file, in the section "EthervaneRadio.HistoryMenuOptions", set the menu item count to zero. Make the following change:

Quote
[EthervaneRadio.HistoryMenuOptions]
MaxMenuItemCount=0

Methods 1 and 2 will clear the history, but it will start growing again as you use the program. Method 3 will ensure the History menu stays empty.
« Last Edit: January 13, 2011, 07:59:43 AM by tranglos » Logged

PhilB66
Supporting Member
**
Posts: 1,510


View Profile Give some DonationCredits to this forum member
« Reply #65 on: January 13, 2011, 07:59:37 PM »

Cleared the history table with SQLiteSpy   thumbs up

Cheers,

Phil
Logged
allen
Charter Member
***
Posts: 1,173



Powered by Beard

see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #66 on: January 14, 2011, 12:59:29 PM »

This is outstanding.

Where is the default db drawn from?
Logged
tranglos
Supporting Member
**
Posts: 1,079



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #67 on: January 14, 2011, 02:35:22 PM »

This is outstanding.

Where is the default db drawn from?

All kinds of sources. Websites, conversion from other formats, etc. I did eliminate a large number of stations that yield 404 and other permanent connection errors, but there still is a number of stations that are or appear defunct. I'll try to trim them at some later point.

Logged

allen
Charter Member
***
Posts: 1,173



Powered by Beard

see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #68 on: January 14, 2011, 03:39:22 PM »

Looks like you have 2/3 of the Blue Mars stations. The third is self-titled

Blue Mars
http://207.200.96.225:8020/listen.pls
Logged
bob99
Supporting Member
**
Posts: 324

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #69 on: January 15, 2011, 03:18:42 PM »



"Playing" with ER.  Using the Find Station I put in a couple of station call letters I knew.  They weren't in the database yet.  Went back to your 1st post and read about the search feature so I tried the city name.  Up pops the stations in the DB for the city. COOL!

Clicked on one of them, sorry don't remember which one, and I got this pop-up:



It's the 1st time it has happened and I've brought up a number of random stations and now some in different city or country searches.
This is on my Win 7 x64 with Windows Security Essentials AV.

If it helps I can go back through the history and see if it happens again.
 

Logged
tranglos
Supporting Member
**
Posts: 1,079



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #70 on: January 15, 2011, 04:33:41 PM »

Clicked on one of them, sorry don't remember which one, and I got this pop-up:

Perfectly normal. It's the Windows Firewall making sure you want to permit ER to use the network.

Most stations use port 80, so ER looks just like a web browser to the firewall. But some stations run on other ports, and if Windows Firewall hasn't yet seen ER access one of those non-typical ports, it may pop up the prompt. Allow or deny as you prefer.
Logged

bob99
Supporting Member
**
Posts: 324

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #71 on: January 16, 2011, 09:39:13 AM »


Thanks. My thoughts were it had to be something to do with the station since it hadn't happened before on others.  Didn't think about the station wanting to come in using a different port.
 
Logged
iebbed
Supporting Member
**
Posts: 1


View Profile Give some DonationCredits to this forum member
« Reply #72 on: January 16, 2011, 06:07:10 PM »

Just wanted to give my heartfelt thanks for a fabulous little piece of software.
Living near the flood stricken region of SE QLD Australia I found myself safe but without phone, TV, radio or mobile phone reception yet amazing still had internet connection.
Your program enabled me to tune into the local and regional radio stations and get the latest news, and updates on the flood and road closures.
Thank you!  Thmbsup
Logged
skwire
Charter Member
***
Posts: 4,073



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #73 on: January 17, 2011, 09:52:07 AM »

Just wanted to give my heartfelt thanks for a fabulous little piece of software.
Living near the flood stricken region of SE QLD Australia I found myself safe but without phone, TV, radio or mobile phone reception yet amazing still had internet connection.
Your program enabled me to tune into the local and regional radio stations and get the latest news, and updates on the flood and road closures.
Thank you!  Thmbsup

That's an awesome first post.   Thmbsup
Logged

superboyac
Charter Member
***
Posts: 5,674


Is your software in my list?

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #74 on: January 17, 2011, 11:49:35 AM »

Just wanted to give my heartfelt thanks for a fabulous little piece of software.
Living near the flood stricken region of SE QLD Australia I found myself safe but without phone, TV, radio or mobile phone reception yet amazing still had internet connection.
Your program enabled me to tune into the local and regional radio stations and get the latest news, and updates on the flood and road closures.
Thank you!  Thmbsup

That's an awesome first post.   Thmbsup
No kidding!  It's really great to hear stuff like that.  Tranglos has really done a lot for people in his coding career.
Logged

Pages: Prev 1 2 [3] 4 Next   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.058s | Server load: 0.07 ]