Skip to content

Commit

Permalink
Fix: servs has been moved to configjs (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
eight04 authored Dec 10, 2023
1 parent ae4228c commit 468b300
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions comiccrawler/mods/seemh.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,14 @@ def get_images(html, url):
with VM(js) as vm:
files, path, params = vm.run("[cInfo.files, cInfo.path, cInfo.sl]")

# find server
# "http://c.3qfm.com/scripts/core_5C348B32A78647FF4208EACA42FC5F84.js"
# getpath()
corejs_url = re.search(
r'src="([^"]+?/core_\w+?\.js)"',
html
).group(1)
corejs = grabhtml(urljoin(url, corejs_url), referer=url)

# cache server list
servs = re.search(r"var servs=(.+?),pfuncs=", corejs).group(1)
servs = re.search(r"var servs=(.+)", configjs).group(1)
servs = eval(servs)
servs = [host["h"] for category in servs for host in category["hosts"]]

Expand Down

0 comments on commit 468b300

Please sign in to comment.