[brickset] Fix manual scrobbling and admin

This commit is contained in:
2025-06-09 10:36:13 -04:00
parent 8773542099
commit e980e3c5c9
10 changed files with 120 additions and 30 deletions

View File

@ -57,6 +57,8 @@ class VideoMetadata:
def as_dict_with_cover_and_genres(self) -> tuple:
video_dict = vars(self)
cover = video_dict.pop("cover_url")
cover = None
if "cover_url" in video_dict.keys():
cover = video_dict.pop("cover_url")
genres = video_dict.pop("genres")
return video_dict, cover, genres