Skip to content

Commit

Permalink
Revert "Add support jav321"
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdctop authored Mar 23, 2020
1 parent 32a19bb commit 73a0610
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 91 deletions.
15 changes: 0 additions & 15 deletions ADC_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,3 @@ def get_html(url,cookies = None):#网页请求核心
print('[-]Connect Failed! Please check your Proxy or Network!')


def post_html(url: str, query: dict) -> requests.Response:
proxy, timeout, retry_count = get_network_settings()

if proxy:
proxies = {"http": "http://" + proxy, "https": "https://" + proxy}
else:
proxies = {}

for i in range(retry_count):
try:
result = requests.post(url, data=query, proxies=proxies)
return result
except requests.exceptions.ProxyError:
print("[-]Connect retry {}/{}".format(i+1, retry_count))
print("[-]Connect Failed! Please check your Proxy or Network!")
4 changes: 1 addition & 3 deletions core.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import javbus
import javdb
import fanza
import jav321
import requests


Expand Down Expand Up @@ -58,11 +57,10 @@ def getDataFromJSON(file_number, filepath, failed_folder): # 从JSON返回元
"javdb": javdb.main,
"javbus": javbus.main,
"mgstage": mgstage.main,
"jav321": jav321.main,
}

# default fetch order list, from the begining to the end
sources = ["javbus", "javdb", "fanza", "mgstage", "fc2", "avsox", "jav321"]
sources = ["javbus", "javdb", "fanza", "mgstage", "fc2", "avsox"]

# if the input file name matches centain rules,
# move some web service to the begining of the list
Expand Down
73 changes: 0 additions & 73 deletions jav321.py

This file was deleted.

0 comments on commit 73a0610

Please sign in to comment.