ckreutzer / python-tvrage
python-tvrage is a client interface for tvrage.com's XML-based api feeds (see http://www.tvrage.com/xmlfeeds.php).
Clone this repository (size: 18.3 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/ckreutzer/python-tvrage/
| commit 16: | 67c08b5fe91d |
| parent 15: | 05c5bcda19a7 |
| branch: | default |
fixed the encoding of Episode.summary
5 months ago
Changed (Δ18 bytes):
raw changeset »
tvrage/api.py (1 lines added, 1 lines removed)
Up to file-list tvrage/api.py:
| … | … | @@ -70,7 +70,7 @@ class Episode(object): |
70 |
70 |
summary = re.search( |
71 |
71 |
r"<table width='100%'><tr><td>(.*?)<br>", page, |
72 |
72 |
re.MULTILINE).group(1).strip() |
73 |
return |
|
73 |
return unicode(summary, 'utf-8') |
|
74 |
74 |
except Exception, e: |
75 |
75 |
print('Episode.summary: %s, %s' % (self, e)) |
76 |
76 |
except URLError, e: |
