🐛 Fix adding AV number

This commit is contained in:
zhbaor 2023-02-23 21:44:10 +08:00
parent 5d15b3c372
commit fd7d6b97de

View file

@ -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: