mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 22:16:37 +00:00
Use f-string for logged messages
This commit is contained in:
parent
be404d0c61
commit
5478dbfb00
@ -113,9 +113,9 @@ def copy_thumbnail(self):
|
|||||||
if not self.thumb_file_exists:
|
if not self.thumb_file_exists:
|
||||||
return
|
return
|
||||||
log.info(
|
log.info(
|
||||||
'Copying media thumbnail from: {} to: {}',
|
'Copying media thumbnail'
|
||||||
self.thumb.path,
|
f' from: {self.thumb.path}'
|
||||||
self.thumbpath,
|
f' to: {self.thumbpath}'
|
||||||
)
|
)
|
||||||
# copyfile returns the destination, so we may as well pass that along
|
# copyfile returns the destination, so we may as well pass that along
|
||||||
return copyfile(self.thumb.path, self.thumbpath)
|
return copyfile(self.thumb.path, self.thumbpath)
|
||||||
@ -124,7 +124,7 @@ def copy_thumbnail(self):
|
|||||||
def write_nfo_file(self):
|
def write_nfo_file(self):
|
||||||
if not self.source.write_nfo:
|
if not self.source.write_nfo:
|
||||||
return
|
return
|
||||||
log.info('Writing media NFO file to: {}', self.nfopath)
|
log.info(f'Writing media NFO file to: {self.nfopath}')
|
||||||
try:
|
try:
|
||||||
# write_text_file returns bytes written
|
# write_text_file returns bytes written
|
||||||
return write_text_file(self.nfopath, self.nfoxml)
|
return write_text_file(self.nfopath, self.nfoxml)
|
||||||
|
Loading…
Reference in New Issue
Block a user