[mythtv-users] Excellent mythvidexport.py - issue with national chars

Warpme warpme at o2.pl
Tue May 24 20:09:50 UTC 2011


Hi,

As my recordings is growing really quickly - I'm trying to move some of 
them to mythvideo as here I have support for external media.
For doing this I'm trying use beautiful script  mythvidexport.py 
(http://www.mythtv.org/wiki/Mythvidexport.py)
While it is for 0.24 and I'm on master - it looks like script works OK 
as long as content metadata hasn't national chars.
If it has national chars - following error is returned:

[root at mythtv bin]# /usr/local/bin/mythvidexport.py --tformat 
--listingonly --seekdata --cutlist 13350

2011-05-24 21:43:06.611 mythvidexport.py:
     Traceback (most recent call last):
       File "/usr/local/bin/mythvidexport.py", line 368, in main
         export = VIDEO(opts,int(args[0]))
       File "/usr/local/bin/mythvidexport.py", line 83, in __init__
         '%s - %s' % (self.rec.title, self.rec.subtitle))
       File "/usr/lib/python2.7/site-packages/MythTV/logging.py", line 
213, in __call__
         self.log(level, message, detail)
       File "/usr/lib/python2.7/site-packages/MythTV/logging.py", line 
195, in log
         buff.write(' -- %s' % detail)
     UnicodeEncodeError: 'ascii' codec can't encode character u'\u0105' 
in position 33: ordinal not in range(128)

I'm too weak in python & mythtv py bindings to correct issue mysef.
Has anybody idea how to fix this issue ?

Thx in advance

-------------- next part --------------
A non-text attachment was scrubbed...
Name: warpme.vcf
Type: text/x-vcard
Size: 83 bytes
Desc: not available
Url : http://www.mythtv.org/pipermail/mythtv-users/attachments/20110524/6cd93e8c/attachment.vcf 


More information about the mythtv-users mailing list