Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed custom station with unicode char in title

  • Loading branch information...
commit 13c6f5c648ac85fcd5d040755a2a08067006ff9b 1 parent 6062bc3
@dersphere authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 addon.py
View
4 addon.py
@@ -127,7 +127,9 @@ def custom_my_station(station_id):
for param in ('name', 'thumbnail', 'stream_url'):
heading = _('please_enter') % _(param)
station[param] = __keyboard(heading, station.get(param, '')) or ''
- station_id = station['id'] = station.get('name', 'custom')
+ station_name = station.get('name', 'custom')
+ station_id = station_name.decode('ascii', 'ignore').encode('ascii')
+ station['id'] = station_id
station['is_custom'] = '1'
if station_id:
my_stations[station_id] = station
Please sign in to comment.
Something went wrong with that request. Please try again.