From 8cafe0ba82fe56fd55ba6d97590bf26f30188523 Mon Sep 17 00:00:00 2001 From: yzqzss Date: Sat, 3 Jun 2023 19:30:10 +0800 Subject: [PATCH] =?UTF-8?q?UP=20=E7=9A=84=20mid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _biliarchiver_upload_bvid.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_biliarchiver_upload_bvid.py b/_biliarchiver_upload_bvid.py index a45367d..4825974 100644 --- a/_biliarchiver_upload_bvid.py +++ b/_biliarchiver_upload_bvid.py @@ -88,9 +88,10 @@ def upload_bvid(bvid): # UTC time 'date': time.strftime("%Y-%m-%d", time.gmtime(pubdate)), 'year': time.strftime("%Y", time.gmtime(pubdate)), - 'bvid': bvid, 'aid': bv_info['data']['View']['aid'], + 'bvid': bvid, 'cid': cid, + 'mid': bv_info['data']['View']['owner']['mid'], "subject": "; ".join( tags ), # Keywords should be separated by ; but it doesn't matter much; the alternative is to set one per field with subject[0], subject[1], ...