From 699f3932e1b3f27ffc80a8c086d2c8f6fe5d492c Mon Sep 17 00:00:00 2001 From: yoshiko2 Date: Tue, 9 Nov 2021 18:43:59 +0800 Subject: [PATCH] Delete studio replace --- WebCrawler/__init__.py | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/WebCrawler/__init__.py b/WebCrawler/__init__.py index d837f45..6781686 100644 --- a/WebCrawler/__init__.py +++ b/WebCrawler/__init__.py @@ -214,45 +214,6 @@ def get_data_from_json(file_number, oCC): # 从JSON返回元数据 cover_small = tmpArr[0].strip('\"').strip('\'') # ====================处理异常字符 END================== #\/:*?"<>| - # === 替换Studio片假名 - studio = studio.replace('アイエナジー','Energy') - studio = studio.replace('アイデアポケット','Idea Pocket') - studio = studio.replace('アキノリ','AKNR') - studio = studio.replace('アタッカーズ','Attackers') - studio = re.sub('アパッチ.*','Apache',studio) - studio = studio.replace('アマチュアインディーズ','SOD') - studio = studio.replace('アリスJAPAN','Alice Japan') - studio = studio.replace('オーロラプロジェクト・アネックス','Aurora Project Annex') - studio = studio.replace('クリスタル映像','Crystal 映像') - studio = studio.replace('グローリークエスト','Glory Quest') - studio = studio.replace('ダスッ!','DAS!') - studio = studio.replace('ディープス','DEEP’s') - studio = studio.replace('ドグマ','Dogma') - studio = studio.replace('プレステージ','PRESTIGE') - studio = studio.replace('ムーディーズ','MOODYZ') - studio = studio.replace('メディアステーション','宇宙企画') - studio = studio.replace('ワンズファクトリー','WANZ FACTORY') - studio = studio.replace('エスワン ナンバーワンスタイル','S1') - studio = studio.replace('エスワンナンバーワンスタイル','S1') - studio = studio.replace('SODクリエイト','SOD') - studio = studio.replace('サディスティックヴィレッジ','SOD') - studio = studio.replace('V&Rプロダクツ','V&R PRODUCE') - studio = studio.replace('V&RPRODUCE','V&R PRODUCE') - studio = studio.replace('レアルワークス','Real Works') - studio = studio.replace('マックスエー','MAX-A') - studio = studio.replace('ピーターズMAX','PETERS MAX') - studio = studio.replace('プレミアム','PREMIUM') - studio = studio.replace('ナチュラルハイ','NATURAL HIGH') - studio = studio.replace('マキシング','MAXING') - studio = studio.replace('エムズビデオグループ','M’s Video Group') - studio = studio.replace('ミニマム','Minimum') - studio = studio.replace('ワープエンタテインメント','WAAP Entertainment') - studio = studio.replace('pacopacomama,パコパコママ','pacopacomama') - studio = studio.replace('パコパコママ','pacopacomama') - studio = re.sub('.*/妄想族','妄想族',studio) - studio = studio.replace('/',' ') - # === 替换Studio片假名 END - # 返回处理后的json_data json_data['title'] = title json_data['original_title'] = title