🐛 Fix adding AV number
This commit is contained in:
parent
5d15b3c372
commit
fd7d6b97de
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue