<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hey folks,<div>I noticed an old thread discussing how the initial configuration of tv_grab_nz-py fails due to the macron in Màori Television in freeview xml. I made a minor change to the script to make any channel names (now and in the future) as follows; sorry, didn't put together a patch since it was so simple.</div><div><br></div><div>Add the following after the other imports (without the quotes):</div><div>"from unidecode import unidecode"</div><div><br></div><div>On line 226 (or 227 after adding the above), alter the input prompt to replace unicode characters in channel[1] with nice safe ascii (again, without quotes):</div><div>"use = raw_input('Use channel %s (%s)? [y/N]' % (unidecode(channel[1]), channel[0]))"</div><div><br></div><div>Done!</div><div>Be sure to install unidecode (sudo easy_import unidecode) and the initial configuration works fine; "<span style="font-size: 12pt;">Màori" is replaced with "Maori" which I'm sure is close enough to prevent confusion...</span></div><div><br></div><div>Cheers</div><div>Wayne</div>                                      </div></body>
</html>