[mythtvnz] tv_grab_nz-py configuration issues

Nick Rout nick.rout at gmail.com
Wed Dec 18 08:44:59 GMT 2013


On Wed, Dec 18, 2013 at 9:31 PM, Andrew Taylor <aretaylor at gmail.com> wrote:
> Hi Steve
>
> I gave it a go... but no luck...
> Traceback (most recent call last):
>   File "./tv_grab_nz-py", line 227, in <module>
>     use = raw_input('Use channel %s (%s)? [y/N]' % (channel[1], channel[0]))
> UnicodeEncodeError: 'ascii' codec can't encode character u'\u0101' in
> position 13: ordinal not in range(128)


Top posting not allowed.

Just write your config file by hand if you need to. Format is
plaintext with each line like this:

channel=tv1.freeviewnz.tv

for the channels you want. It's name should be

~USER/.mythtv/FreeviewHD.xmltv

where USER is the user which runs mythbackend.

You can get a list of valid channels by downloading the xmltv file and
searching it

wget http://epg.org.nz/freeview.xml.gz
zgrep "<channel id=" freeview.xml.gz

Clunky but effective.

Author of tv_nz_grab-py - help??



>
> Cheers
>
> A.
>
>
> On 18 December 2013 13:46, Steve Holdoway <steve at greengecko.co.nz> wrote:
>>
>> On Wed, 2013-12-18 at 11:28 +1300, Andrew Taylor wrote:
>> > Hi
>> >
>> >
>> > Apologies if this has been answered before, I had a search through the
>> > archive but couldn't find a working answer.
>> >
>> >
>> > I downloaded the latest tv_grab_nz-py from nice.net.nz and made the
>> > adjustments mentioned by stephen in this thread:
>> > http://www.gossamer-threads.com/lists/mythtv/mythtvnz/559187
>> >
>> >
>> > From:
>> > doc = ElementTree.parse(StringIO(text)).getroot()
>> > ----
>> > To:
>> > parser = ElementTree.XMLParser(encoding="ISO-8859-1")
>> > doc = ElementTree.parse(StringIO(text), parser=parser).getroot()
>> >
>> >
>> >
>> > But it still dies in the configuration for me when it gets to Marori
>> > TV with the unicodeEncodeError .
>> >
>> >
>> > Is there anything else I am missing?
>> > Running Ubuntu 12.04LTS Server (fresh install) with tvheadend and xbmc
>> >
>> >
>> >
>> >
>> > Cheers
>> >
>> >
>> >
>> >
>> > Andrew
>> >
>> I have no idea if this is relevant or not, but ISO-8859-1 usually means
>> the old windows-1252 character set, which probably doesn't support Maori
>> specific characters. Does UTF-8 encoding work any better??
>>
>> Cheers,
>>
>>
>> Steve
>>
>> --
>> Steve Holdoway BSc(Hons) MIITP
>> http://www.greengecko.co.nz
>> Linkedin: http://www.linkedin.com/in/steveholdoway
>> Skype: sholdowa
>>
>>
>> _______________________________________________
>> mythtvnz mailing list
>> mythtvnz at lists.linuxnut.co.nz
>> http://lists.ourshack.com/mailman/listinfo/mythtvnz
>> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>
>
>
> _______________________________________________
> mythtvnz mailing list
> mythtvnz at lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>



More information about the mythtvnz mailing list