Merge lp:~stefanor/ibid/tvshow-412447 into lp:~ibid-core/ibid/old-trunk-pack-0.92

Proposed by Stefano Rivera
Status: Merged
Approved by: Jonathan Hitchcock
Approved revision: 738
Merged at revision: 745
Proposed branch: lp:~stefanor/ibid/tvshow-412447
Merge into: lp:~ibid-core/ibid/old-trunk-pack-0.92
Diff against target: None lines
To merge this branch: bzr merge lp:~stefanor/ibid/tvshow-412447
Reviewer Review Type Date Requested Status
Jonathan Hitchcock Approve
Jeremy Thurgood (community) Approve
Michael Gorven Approve
Review via email: mp+10021@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Michael Gorven (mgorven) wrote :

 review approve

review: Approve
Revision history for this message
Jeremy Thurgood (jerith) wrote :

Looks reasonable.

review: Approve
Revision history for this message
Jonathan Hitchcock (vhata) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ibid/core.py'
2--- ibid/core.py 2009-07-15 22:28:01 +0000
3+++ ibid/core.py 2009-08-12 11:32:15 +0000
4@@ -24,8 +24,12 @@
5 try:
6 processor.process(event)
7 except:
8- self.log.exception(u"Exception occured in %s processor of %s plugin",
9- processor.__class__.__name__, processor.name)
10+ self.log.exception(
11+ u'Exception occured in %s processor of %s plugin.\n'
12+ u'Event: %s',
13+ processor.__class__.__name__,
14+ processor.name,
15+ event)
16 event.complain = u'exception'
17 if 'session' in event:
18 event.session.rollback()
19
20=== modified file 'ibid/plugins/lookup.py'
21--- ibid/plugins/lookup.py 2009-08-08 14:02:08 +0000
22+++ ibid/plugins/lookup.py 2009-08-12 11:12:01 +0000
23@@ -797,12 +797,9 @@
24
25 for field in ('Latest Episode', 'Next Episode'):
26 if field in show_dict:
27- format_from = '%b/%d/%Y'
28- format_to = '%d %B %Y'
29 ep, name, date = show_dict[field].split('^', 2)
30- if date.count('/') < 2:
31- format_from = '%b/%Y'
32- format_to = '%B %Y'
33+ format_from = '/'.join(('%b', '%d', '%Y')[-1 - date.count('/'):])
34+ format_to = ' '.join(('%d', '%B', '%Y')[-1 - date.count('/'):])
35 date = strftime(format_to, strptime(date, format_from))
36 show_dict[field] = u'%s - "%s" - %s' % (ep, name, date)
37 return show_dict

Subscribers

People subscribed via source and target branches