[mythtv-commits] Ticket #6242: A "grabber" query engine for thetvdb.com - based on tmdb.pl functionality
MythTV
mythtv at cvs.mythtv.org
Sun Apr 12 23:36:06 UTC 2009
#6242: A "grabber" query engine for thetvdb.com - based on tmdb.pl functionality
------------------------------------+---------------------------------------
Reporter: r.d.vaughan at rogers.com | Owner: awithers
Type: enhancement | Status: assigned
Priority: minor | Milestone: unknown
Component: Plugin - MythVideo | Version: unknown
Severity: low | Resolution:
Mlocked: 0 |
------------------------------------+---------------------------------------
Comment(by Marc Tousignant <drayson at net1plus.com>):
R.D. you are incorrect.
My version
{{{
scripts # ./ttvdb.py -v
Title: (thetvdb.com Query Engine); Version: (v0.9.2); Author:
(R.D.Vaughan)
This python script uses the included python module tvdb_api.py (v0.6 or
higher). Also found at
'http://pypi.python.org/pypi?%3Aaction=search&term=tvnamer&submit=search'
thanks to the authors 'dbr/Ben' for this excellant module.
The tvdb_api.py module uses the full access XML api published by
thetvdb.com see:
'http://thetvdb.com/wiki/index.php?title=Programmers_API'
Users of this script are encouraged to populate thetvdb.com with TV show
information, posters,
fan art and banners. The richer the source the more valuable the script.
}}}
The errors that can be caused:
./ttvdb.py -l en -mD Heroes 1 1:
{{{
Traceback (most recent call last):
File "./ttvdb.py", line 1091, in <module>
main()
File "./ttvdb.py", line 970, in main
Getseries_episode_data(t, opts, series_season_ep,
language=opts.language)
File "./ttvdb.py", line 632, in Getseries_episode_data
print extra_data
File "./ttvdb.py", line 335, in write
self.out.write(obj.encode(self.encoding))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xed' in
position 175: ordinal not in range(128)
}}}
./ttvdb.py -l en -mD "denno coil" 1 1
{{{
Traceback (most recent call last):
File "./ttvdb.py", line 1091, in <module>
main()
File "./ttvdb.py", line 970, in main
Getseries_episode_data(t, opts, series_season_ep,
language=opts.language)
File "./ttvdb.py", line 622, in Getseries_episode_data
print u'%s%s' % (data_titles[index], key_values[index])
File "./ttvdb.py", line 335, in write
self.out.write(obj.encode(self.encoding))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u201c' in
position 18: ordinal not in range(128)
}}}
Both of these 'ascii' errors can be fixed by changing line 335 from
{{{
self.out.write(obj.encode(self.encoding))
}}}
to
{{{
self.out.write(obj.encode("utf-8"))
}}}
The cast members error I was reporting about after I fixed the 'ascii'
errors however, got fixed in 0.9.2.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/6242#comment:16>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list