Skip to content

Commit

Permalink
add submodule and redirect JavSP metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
glyh committed Apr 16, 2024
1 parent 45d4446 commit 58a6319
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "data"]
path = data
url = [email protected]:glyh/JavSP-meta.git
3 changes: 2 additions & 1 deletion JavSP.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@

actressAliasMap = {}
if cfg.NFO.fix_actress_name:
actressAliasFilePath = mei_path("data/actress_alias.json")

actressAliasFilePath = mei_path("data/aliases/ja_JP/actress_alias.json")
with open(actressAliasFilePath, "r", encoding="utf-8") as file:
actressAliasMap = json.load(file)

Expand Down
1 change: 1 addition & 0 deletions data
Submodule data added at 72bfe6
2 changes: 1 addition & 1 deletion web/javbus.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


logger = logging.getLogger(__name__)
genre_map = GenreMap('data/genre_javbus.csv')
genre_map = GenreMap('data/genres/javbus.csv')
permanent_url = 'https://www.javbus.com'
if cfg.Network.proxy:
base_url = permanent_url
Expand Down
4 changes: 2 additions & 2 deletions web/javdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
request.headers['Accept-Language'] = 'zh-CN,zh;q=0.9,zh-TW;q=0.8,en-US;q=0.7,en;q=0.6,ja;q=0.5'

logger = logging.getLogger(__name__)
genre_map = GenreMap('data/genre_javdb.csv')
genre_map = GenreMap('data/genres/javdb.csv')
permanent_url = 'https://javdb.com'
if cfg.Network.proxy:
base_url = permanent_url
Expand Down Expand Up @@ -231,7 +231,7 @@ def collect_actress_alias(type=0, use_original=True):

actressAliasMap = {}

actressAliasFilePath = "data/actress_alias.json"
actressAliasFilePath = "data/aliases/ja_JP/actress_alias.json"
# 检查文件是否存在
if not os.path.exists(actressAliasFilePath):
# 如果文件不存在,创建文件并写入空字典
Expand Down

0 comments on commit 58a6319

Please sign in to comment.