🩹 Strip video number before processing

This commit is contained in:
zhbaor 2023-02-20 19:56:09 +08:00
parent 02a1fbc554
commit 8077378510

View file

@ -6,6 +6,7 @@ import os
class Video: class Video:
def __init__(self, video_number: str): def __init__(self, video_number: str):
video_number = video_number.strip()
if len(video_number) <= 2: if len(video_number) <= 2:
raise InvalidVideoNumberException( raise InvalidVideoNumberException(
f"The video number {video_number} is too short!" f"The video number {video_number} is too short!"