From 1d963e6f5ba2df00538fe6d35ca90ad5deb27cdc Mon Sep 17 00:00:00 2001 From: Zhao Zuohong Date: Tue, 21 Feb 2023 20:38:09 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A5=20Remove=20author=20information?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/__init__.py | 1 - video/__init__.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/manager/__init__.py b/manager/__init__.py index 9acbb5e..a3fe0d3 100644 --- a/manager/__init__.py +++ b/manager/__init__.py @@ -37,7 +37,6 @@ class Manager: { "number": v.number, "title": v.title, - "author": v.author, "received": v.received_bytes, "total": v.length, } diff --git a/video/__init__.py b/video/__init__.py index 9b0a7b6..b14ff39 100644 --- a/video/__init__.py +++ b/video/__init__.py @@ -7,7 +7,6 @@ from os import PathLike class Video: def __init__(self, video_number: str): self.title = None - self.author = None self.received_bytes = 0 self.length = 0 video_number = video_number.strip() @@ -35,7 +34,6 @@ class Video: except: raise BiliBiliAPIException("Error happens with bilibili-api-python.") self.title = info["title"] - self.author = info["owner"]["name"] def get_url(self): try: