mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-08 11:03:38 +00:00
Fix image scan log for show titles that contain "%".
This commit is contained in:
parent
e19ea7b75a
commit
e55fa139f7
2 changed files with 3 additions and 6 deletions
|
@ -1,9 +1,6 @@
|
||||||
### 0.13.0 (2016-xx-xx xx:xx:xx UTC)
|
### 0.12.1 (2016-12-19 12:00:00 UTC)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[develop changelog]
|
|
||||||
|
|
||||||
|
* Fix image scan log for show titles that contain "%"
|
||||||
|
|
||||||
|
|
||||||
### 0.12.0 (2016-12-19 03:00:00 UTC)
|
### 0.12.0 (2016-12-19 03:00:00 UTC)
|
||||||
|
|
|
@ -193,7 +193,7 @@ class ImageCache:
|
||||||
img_parser.stream._input.close()
|
img_parser.stream._input.close()
|
||||||
|
|
||||||
msg_success = u'Treating image as %s'\
|
msg_success = u'Treating image as %s'\
|
||||||
+ u' with extracted aspect ratio from %s' % path
|
+ u' with extracted aspect ratio from %s' % path.replace('%', '%%')
|
||||||
# most posters are around 0.68 width/height ratio (eg. 680/1000)
|
# most posters are around 0.68 width/height ratio (eg. 680/1000)
|
||||||
if 0.55 < img_ratio < 0.8:
|
if 0.55 < img_ratio < 0.8:
|
||||||
logger.log(msg_success % 'poster', logger.DEBUG)
|
logger.log(msg_success % 'poster', logger.DEBUG)
|
||||||
|
|
Loading…
Reference in a new issue