fixing support for waifu2x_ncnn_vulkan

This commit is contained in:
k4yt3x 2019-08-03 23:15:03 -04:00
parent f42a8ab71f
commit 9be46f7d62

View File

@ -4,7 +4,7 @@
Name: Video2X FFmpeg Controller Name: Video2X FFmpeg Controller
Author: K4YT3X Author: K4YT3X
Date Created: Feb 24, 2018 Date Created: Feb 24, 2018
Last Modified: July 27, 2019 Last Modified: August 3, 2019
Description: This class handles all FFmpeg related operations. Description: This class handles all FFmpeg related operations.
""" """
@ -159,8 +159,7 @@ class Ffmpeg:
# Dev: SAT3LL # Dev: SAT3LL
# rename all .png.png suffixes to .png # rename all .png.png suffixes to .png
import re import re
import shutil regex = re.compile(r'\.png\.png$', re.IGNORECASE)
regex = re.compile(r'\.png\.png$')
for frame_name in upscaled_frames.iterdir(): for frame_name in upscaled_frames.iterdir():
(upscaled_frames / frame_name).rename(upscaled_frames / regex.sub('.png', str(frame_name))) (upscaled_frames / frame_name).rename(upscaled_frames / regex.sub('.png', str(frame_name)))
# END WORKAROUND # END WORKAROUND