🐛 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:
|
else:
|
||||||
self.number = "AV" + video_number[2:]
|
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":
|
if video_number[:2].upper() != "BV":
|
||||||
raise InvalidVideoNumberException(f"Invalid video number {video_number}!")
|
raise InvalidVideoNumberException(f"Invalid video number {video_number}!")
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue