skiwithpete / alarmpi

This is the latest version of the alarm clock for Raspberry Pi project.
116 stars 49 forks source link

Cannot escape symbols in Stocks #16

Open TylerCode opened 7 years ago

TylerCode commented 7 years ago

For example, using Ivona, if you have the S&P 500 stock on your list (or in my specific case, the voo stock) it will simply stop working after it pronounces the "S".

Can provide any additional details.

skiwithpete commented 7 years ago

try adding this line symbol = symbol.replace("&",' and ').strip() to get_stocks.py on line 32.

Let me know if that works, and I'll add it to the main branch.

TylerCode commented 7 years ago

That worked perfectly, should probably add some of the common symbols for example, I've seen % and - in several stocks. (Probably just replace - with nothing.)