-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问能提供漫画网址转换的功能吗? #79
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
from comiccrawler.mission_manager import mission_manager
from comiccrawler.episode_loader import edit_mission_id
POOL_NAMES = ["view", "library"]
TARGET = "ikanman.com"
REPL = "manhuagui.com"
for mission in list(mission_manager.pool.values()):
if TARGET not in mission.url:
continue
old_url = mission.url
with edit_mission_id(mission):
mission.url = old_url.replace(TARGET, REPL)
del mission_manager.pool[old_url]
mission_manager.pool[mission.url] = mission
for name in POOL_NAMES:
pool = getattr(mission_manager, name)
if old_url in pool:
del pool[old_url]
pool[mission.url] = mission
print(old_url, mission.url)
mission_manager.edit = True
mission_manager.save()
|
eight你好, |
@starobots 哪個腳本?舊的 還是 新的? |
下面这个只能改view.json和library.json。pool.json和pool文件夹里面的改不了。 |
我測試了一下,
哪個腳本? |
以前下载了许多在
www.ikanman.com
这个网站的漫画,但现在这个网站的网址改为www.manhuagui.com
了,www.ikanman.com
这个网址已经403了,直接将ikanman替换为manhuagui的话是可以访问的。The text was updated successfully, but these errors were encountered: