diff options
| author | Lint Action <noreply@github.com> | 2022-02-17 16:45:48 +0000 | 
|---|---|---|
| committer | Lint Action <noreply@github.com> | 2022-02-17 16:45:48 +0000 | 
| commit | e7ff55fa0b39805ec759afd5b06c666538f5c7f1 (patch) | |
| tree | 49b5d5c4e2c719485f29d8712d930d5d7b1ef6b7 /ATRI/plugins | |
| parent | f0bd8413c0ec7511e5357e3fed430891c1674cbe (diff) | |
| download | ATRI-e7ff55fa0b39805ec759afd5b06c666538f5c7f1.tar.gz ATRI-e7ff55fa0b39805ec759afd5b06c666538f5c7f1.tar.bz2 ATRI-e7ff55fa0b39805ec759afd5b06c666538f5c7f1.zip  | |
:rotating_light: 自动进行代码格式化
Diffstat (limited to 'ATRI/plugins')
| -rw-r--r-- | ATRI/plugins/applet/__init__.py | 2 | ||||
| -rw-r--r-- | ATRI/plugins/applet/data_source.py | 6 | 
2 files changed, 4 insertions, 4 deletions
diff --git a/ATRI/plugins/applet/__init__.py b/ATRI/plugins/applet/__init__.py index 233df3e..8d89514 100644 --- a/ATRI/plugins/applet/__init__.py +++ b/ATRI/plugins/applet/__init__.py @@ -14,7 +14,7 @@ async def _(event: MessageEvent):          result, is_ok = await Applet().msg_builder(msg)      except Exception:          return -     +      if not is_ok:          return diff --git a/ATRI/plugins/applet/data_source.py b/ATRI/plugins/applet/data_source.py index d2b5151..3fc1bc5 100644 --- a/ATRI/plugins/applet/data_source.py +++ b/ATRI/plugins/applet/data_source.py @@ -47,7 +47,7 @@ class Applet(Service):          pattern = re.compile(r"BV[0-9A-Za-z]{10}")          result = pattern.findall(text)          return result[0] if result else "" -     +      @classmethod      async def msg_builder(cls, text: str) -> tuple:          bv = cls.bili_video_code_catcher(text) @@ -61,10 +61,10 @@ class Applet(Service):              rep = await cls.bili_request(u)              bv = cls.bili_video_code_catcher(rep)              av = cls._bv_dec(bv) -             +          else:              av = cls._bv_dec(bv) -         +          url = URL + av          req = await request.get(url)          res_data = req.json()  | 
