rename images on copy to same as song for music.simp
parent
5919c45e18
commit
c9923cbca1
2
app.py
2
app.py
|
@ -1070,7 +1070,7 @@ class Irc_bot:
|
|||
ex_ = os.path.exists(img_location)
|
||||
if ex_:
|
||||
ftype = fname.split('.')[1]
|
||||
playlist_image = os.path.join(playlist_directory, f"{v['title']}.{ftype}")
|
||||
playlist_image = os.path.join(playlist_directory, f"{rm_na_space(v['title'])}.{ftype}")
|
||||
shutil.copyfile(img_location, playlist_image, follow_symlinks = True)
|
||||
log.info(f"[Copied image to i2music] {rm_na_space(v['title'])}.{ftype}")
|
||||
completed += 1
|
||||
|
|
Loading…
Reference in New Issue