Skip to content

Commit 0a03be0

Browse files
committed
api: Add search verify=False
1 parent 57cc01b commit 0a03be0

File tree

27 files changed

+106
-108
lines changed

27 files changed

+106
-108
lines changed

StreamingCommunity/Api/Site/1337xx/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
# Variable
2323
indice = 3
2424
_useFor = "film_serie"
25-
_deprecate = False
26-
_priority = 2
25+
_priority = 0
2726
_engineDownload = "tor"
2827

2928
console = Console()

StreamingCommunity/Api/Site/1337xx/site.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ def title_search(query: str) -> int:
4343
console.print(f"[cyan]Search url: [yellow]{search_url}")
4444

4545
try:
46-
response = httpx.get(search_url, headers={'user-agent': get_userAgent()}, timeout=max_timeout, follow_redirects=True)
46+
response = httpx.get(
47+
search_url,
48+
headers={'user-agent': get_userAgent()},
49+
timeout=max_timeout,
50+
follow_redirects=True
51+
)
4752
response.raise_for_status()
4853

4954
except Exception as e:

StreamingCommunity/Api/Site/altadefinizione/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
# Variable
2626
indice = 2
2727
_useFor = "film_serie"
28-
_deprecate = False
29-
_priority = 1
28+
_priority = 0
3029
_engineDownload = "hls"
3130

3231
msg = Prompt()

StreamingCommunity/Api/Site/altadefinizione/site.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ def title_search(query: str) -> int:
4646
console.print(f"[cyan]Search url: [yellow]{search_url}")
4747

4848
try:
49-
response = httpx.post(search_url, headers={'user-agent': get_userAgent()}, timeout=max_timeout, follow_redirects=True)
49+
response = httpx.post(
50+
search_url,
51+
headers={'user-agent': get_userAgent()},
52+
timeout=max_timeout,
53+
follow_redirects=True
54+
)
5055
response.raise_for_status()
5156

5257
except Exception as e:

StreamingCommunity/Api/Site/animeunity/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
# Variable
2626
indice = 1
2727
_useFor = "anime"
28-
_deprecate = False
29-
_priority = 2
28+
_priority = 0
3029
_engineDownload = "mp4"
3130

3231
msg = Prompt()

StreamingCommunity/Api/Site/animeworld/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
# Variable
2121
indice = 8
2222
_useFor = "anime"
23-
_deprecate = False
24-
_priority = 2
23+
_priority = 0
2524
_engineDownload = "mp4"
2625

2726
msg = Prompt()

StreamingCommunity/Api/Site/animeworld/site.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ def title_search(query: str) -> int:
7070

7171
# Make the GET request
7272
try:
73-
response = httpx.get(search_url, headers={'User-Agent': get_userAgent()})
73+
response = httpx.get(
74+
search_url,
75+
headers={'User-Agent': get_userAgent()},
76+
timeout=max_timeout,
77+
verify=False
78+
)
7479

7580
except Exception as e:
7681
console.print(f"Site: {site_constant.SITE_NAME}, request search error: {e}")

StreamingCommunity/Api/Site/cb01new/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
# Variable
2323
indice = 4
2424
_useFor = "film"
25-
_deprecate = False
26-
_priority = 2
25+
_priority = 0
2726
_engineDownload = "mp4"
2827

2928
msg = Prompt()

StreamingCommunity/Api/Site/cb01new/site.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@ def title_search(query: str) -> int:
4444
console.print(f"[cyan]Search url: [yellow]{search_url}")
4545

4646
try:
47-
response = httpx.get(url=search_url, headers={'user-agent': get_userAgent()}, timeout=max_timeout, follow_redirects=True)
47+
response = httpx.get(
48+
search_url,
49+
headers={'user-agent': get_userAgent()},
50+
timeout=max_timeout,
51+
follow_redirects=True,
52+
verify=False
53+
)
4854
response.raise_for_status()
4955

5056
except Exception as e:

StreamingCommunity/Api/Site/ddlstreamitaly/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
# Variable
2424
indice = 6
2525
_useFor = "serie"
26-
_deprecate = False
27-
_priority = 2
26+
_priority = 0
2827
_engineDownload = "mp4"
2928

3029
msg = Prompt()

0 commit comments

Comments
 (0)