diff --git a/video/__init__.py b/video/__init__.py index b14ff39..c5e2db6 100644 --- a/video/__init__.py +++ b/video/__init__.py @@ -21,7 +21,8 @@ class Video: ) else: self.number = "AV" + video_number[2:] - self.v = video.Video(aid=self.number) + self.v = video.Video(aid=int(video_number[2:])) + return if video_number[:2].upper() != "BV": raise InvalidVideoNumberException(f"Invalid video number {video_number}!") else: