Optimize logging
This commit is contained in:
parent
4a98bf27a6
commit
88ebf718d5
1 changed files with 6 additions and 6 deletions
|
@ -97,7 +97,7 @@ class PlayUtils():
|
||||||
LOG.info('Plex clip or music track, not transcoding')
|
LOG.info('Plex clip or music track, not transcoding')
|
||||||
return False
|
return False
|
||||||
videoCodec = self.api.video_codec()
|
videoCodec = self.api.video_codec()
|
||||||
LOG.info("videoCodec: %s" % videoCodec)
|
LOG.info("videoCodec: %s", videoCodec)
|
||||||
if self.item.force_transcode is True:
|
if self.item.force_transcode is True:
|
||||||
LOG.info('User chose to force-transcode')
|
LOG.info('User chose to force-transcode')
|
||||||
return True
|
return True
|
||||||
|
@ -118,8 +118,8 @@ class PlayUtils():
|
||||||
return False
|
return False
|
||||||
if bitrate > self.get_max_bitrate():
|
if bitrate > self.get_max_bitrate():
|
||||||
LOG.info('Video bitrate of %s is higher than the maximal video'
|
LOG.info('Video bitrate of %s is higher than the maximal video'
|
||||||
'bitrate of %s that the user chose. Transcoding'
|
'bitrate of %s that the user chose. Transcoding',
|
||||||
% (bitrate, self.get_max_bitrate()))
|
bitrate, self.get_max_bitrate())
|
||||||
return True
|
return True
|
||||||
try:
|
try:
|
||||||
resolution = int(videoCodec['resolution'])
|
resolution = int(videoCodec['resolution'])
|
||||||
|
@ -128,9 +128,9 @@ class PlayUtils():
|
||||||
return False
|
return False
|
||||||
if 'h265' in codec or 'hevc' in codec:
|
if 'h265' in codec or 'hevc' in codec:
|
||||||
if resolution >= self.getH265():
|
if resolution >= self.getH265():
|
||||||
LOG.info("Option to transcode h265/HEVC enabled. Resolution "
|
LOG.info('Option to transcode h265/HEVC enabled. Resolution '
|
||||||
"of the media: %s, transcoding limit resolution: %s"
|
'of the media: %s, transcoding limit resolution: %s',
|
||||||
% (str(resolution), str(self.getH265())))
|
resolution, self.getH265())
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue