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
=== modified file 'ibid/core.py'
--- ibid/core.py 2009-07-15 22:28:01 +0000
+++ ibid/core.py 2009-08-12 11:32:15 +0000
@@ -24,8 +24,12 @@
24 try:24 try:
25 processor.process(event)25 processor.process(event)
26 except:26 except:
27 self.log.exception(u"Exception occured in %s processor of %s plugin",27 self.log.exception(
28 processor.__class__.__name__, processor.name)28 u'Exception occured in %s processor of %s plugin.\n'
29 u'Event: %s',
30 processor.__class__.__name__,
31 processor.name,
32 event)
29 event.complain = u'exception'33 event.complain = u'exception'
30 if 'session' in event:34 if 'session' in event:
31 event.session.rollback()35 event.session.rollback()
3236
=== modified file 'ibid/plugins/lookup.py'
--- ibid/plugins/lookup.py 2009-08-08 14:02:08 +0000
+++ ibid/plugins/lookup.py 2009-08-12 11:12:01 +0000
@@ -797,12 +797,9 @@
797797
798 for field in ('Latest Episode', 'Next Episode'):798 for field in ('Latest Episode', 'Next Episode'):
799 if field in show_dict:799 if field in show_dict:
800 format_from = '%b/%d/%Y'
801 format_to = '%d %B %Y'
802 ep, name, date = show_dict[field].split('^', 2)800 ep, name, date = show_dict[field].split('^', 2)
803 if date.count('/') < 2:801 format_from = '/'.join(('%b', '%d', '%Y')[-1 - date.count('/'):])
804 format_from = '%b/%Y'802 format_to = ' '.join(('%d', '%B', '%Y')[-1 - date.count('/'):])
805 format_to = '%B %Y'
806 date = strftime(format_to, strptime(date, format_from))803 date = strftime(format_to, strptime(date, format_from))
807 show_dict[field] = u'%s - "%s" - %s' % (ep, name, date) 804 show_dict[field] = u'%s - "%s" - %s' % (ep, name, date)
808 return show_dict805 return show_dict

Subscribers

People subscribed via source and target branches