Merge lp:~renamer-developers/renamer/842236-unicode-filenames into lp:renamer
Proposed by
Jonathan Jacobs
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Jonathan Jacobs | ||||
Approved revision: | 92 | ||||
Merged at revision: | 89 | ||||
Proposed branch: | lp:~renamer-developers/renamer/842236-unicode-filenames | ||||
Merge into: | lp:renamer | ||||
Diff against target: |
321 lines (+119/-52) 6 files modified
renamer/application.py (+7/-0) renamer/logging.py (+5/-0) renamer/plugins/audio.py (+2/-2) renamer/plugins/tv.py (+28/-11) renamer/test/test_tvrage.py (+22/-38) renamer/util.py (+55/-1) |
||||
To merge this branch: | bzr merge lp:~renamer-developers/renamer/842236-unicode-filenames | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tristan Seligmann | Needs Fixing | ||
Review via email: mp+75075@code.launchpad.net |
To post a comment you must log in.
26 + # If we put non-ASCII unicode in here, then log.msg just neglects to emit
27 + # it for whatever bizarre reason.
I don't think it so much "neglects to emit it" as "blows up with a UnicodeDecodeError" due to unicode->str coercion. Either way, calling log.msg with a unicode object is not support, so we definitely shouldn't be doing it.
30 + getattr(sys.stdin, 'encoding', None) or sys.getdefaulte ncoding( ))
Shouldn't this be sys.stdout? This is kinda awful anyway, but I suppose there's no better way to do it.
107 - Look up TV episode metadata on TV Rage.
108 + Construct the TV Rage URL to the quickinfo page for the seriesName,
109 + season and episode.
The site seems to refer to itself as "TVRage" not "TV Rage", this needs to be fixed in a few places.
237 +class BodyReceiver( Protocol) :
_buffer needs to be documented.
261 + def connectionLost( self, reason): getvalue( ).decode( self.encoding) callback( data)
262 + data = self._buffer.
263 + self.finished.
This needs to do error handling. Something like:
def connectionLost( self, reason): check(Potential DataLoss, RequestDone) is None:
self.finished. errback( reason) getvalue( ).decode( self.encoding)
self.finished. callback( data)
if reason.
else:
data = self._buffer.