From aa6f35cd5cff4d810a2491b940e42d0a0672f304 Mon Sep 17 00:00:00 2001 From: hjdhnx Date: Fri, 26 Aug 2022 12:03:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=8E=A9=E5=81=B6=E5=A7=90?= =?UTF-8?q?=E5=A7=90=E6=B2=A1=E6=9C=89=E5=9B=BE=E7=89=87=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/cms.py | 1 + utils/htmlParser.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/models/cms.py b/models/cms.py index 973789e..6ded232 100644 --- a/models/cms.py +++ b/models/cms.py @@ -204,6 +204,7 @@ class CMS: "vod_remarks": desc, "vod_content": content, }) + print(videos) result['list'] = videos result['page'] = fypage result['pagecount'] = 9999 diff --git a/utils/htmlParser.py b/utils/htmlParser.py index 85739d6..32570f0 100644 --- a/utils/htmlParser.py +++ b/utils/htmlParser.py @@ -26,7 +26,7 @@ class jsoup: ret = ret.html() else: ret = ret.attr(option) - if pd and option in ['url','src','href','data-original']: + if pd and option in ['url','src','href','data-original','data-src']: ret = urljoin(self.MY_URL,ret) else: # ret = doc(parse+':first') -- GitLab