From a15aded0a036d9995a8fb3331032636722bb17e3 Mon Sep 17 00:00:00 2001 From: sundxfansky Date: Fri, 22 Mar 2024 04:40:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=E9=9C=80=E6=B7=BB=E5=8A=A0=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/douban/scraper.py | 6 ------ app/modules/themoviedb/scraper.py | 9 --------- 2 files changed, 15 deletions(-) diff --git a/app/modules/douban/scraper.py b/app/modules/douban/scraper.py index cd532592..59905453 100644 --- a/app/modules/douban/scraper.py +++ b/app/modules/douban/scraper.py @@ -83,10 +83,6 @@ class DoubanScraper: @staticmethod def __gen_common_nfo(mediainfo: MediaInfo, doc, root): - # 添加时间 - DomUtils.add_node(doc, root, "dateadded", - time.strftime('%Y-%m-%d %H:%M:%S', - time.localtime(time.time()))) # 简介 xplot = DomUtils.add_node(doc, root, "plot") xplot.appendChild(doc.createCDATASection(mediainfo.overview or "")) @@ -166,8 +162,6 @@ class DoubanScraper: logger.info(f"正在生成季NFO文件:{season_path.name}") doc = minidom.Document() root = DomUtils.add_node(doc, doc, "season") - # 添加时间 - DomUtils.add_node(doc, root, "dateadded", time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time()))) # 简介 xplot = DomUtils.add_node(doc, root, "plot") xplot.appendChild(doc.createCDATASection(mediainfo.overview or "")) diff --git a/app/modules/themoviedb/scraper.py b/app/modules/themoviedb/scraper.py index dd78640b..ce5f034e 100644 --- a/app/modules/themoviedb/scraper.py +++ b/app/modules/themoviedb/scraper.py @@ -151,10 +151,6 @@ class TmdbScraper: """ 生成公共NFO """ - # 添加时间 - DomUtils.add_node(doc, root, "dateadded", - time.strftime('%Y-%m-%d %H:%M:%S', - time.localtime(time.time()))) # TMDB DomUtils.add_node(doc, root, "tmdbid", mediainfo.tmdb_id or "") uniqueid_tmdb = DomUtils.add_node(doc, root, "uniqueid", mediainfo.tmdb_id or "") @@ -267,9 +263,6 @@ class TmdbScraper: logger.info(f"正在生成季NFO文件:{season_path.name}") doc = minidom.Document() root = DomUtils.add_node(doc, doc, "season") - # 添加时间 - DomUtils.add_node(doc, root, "dateadded", - time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time()))) # 简介 xplot = DomUtils.add_node(doc, root, "plot") xplot.appendChild(doc.createCDATASection(seasoninfo.get("overview") or "")) @@ -306,8 +299,6 @@ class TmdbScraper: logger.info(f"正在生成剧集NFO文件:{file_path.name}") doc = minidom.Document() root = DomUtils.add_node(doc, doc, "episodedetails") - # 添加时间 - DomUtils.add_node(doc, root, "dateadded", time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time()))) # TMDBID uniqueid = DomUtils.add_node(doc, root, "uniqueid", str(episodeinfo.get("id"))) uniqueid.setAttribute("type", "tmdb")