From 9d12e8a4aaf7008bd20a2ac8e9530bfd7f62e009 Mon Sep 17 00:00:00 2001 From: zhushenwudi <30340027+zhushenwudi@users.noreply.github.com> Date: Sun, 25 Jul 2021 11:13:12 +0800 Subject: [PATCH] Update test.py --- src/you_get/test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/you_get/test.py b/src/you_get/test.py index 84ac2e3e..7d39b5f1 100644 --- a/src/you_get/test.py +++ b/src/you_get/test.py @@ -8,13 +8,12 @@ url = "https://www.bilibili.com/video/BV1GV411p7P9" path = os.path.dirname(os.path.realpath(__file__)) def getJson(url): - from you_get import common as you try: __console__ = sys.stdout f = io.StringIO() sys.stdout = f sys.argv = ['you-get', url, '--json'] - you.main() + you_get.main() text = f.getvalue() sys.stdout = __console__ print(text)