mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 03:55:24 +00:00
[API] Add print "search_url" \ 2
This commit is contained in:
parent
682dafd134
commit
f6508f7d5a
@ -56,7 +56,7 @@ def title_search(word_to_search: str) -> int:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
response = httpx.get(
|
response = httpx.get(
|
||||||
url=f"{site_constant.FULL_URL}/?s={word_to_search}",
|
url=search_url,
|
||||||
headers={'user-agent': get_userAgent()},
|
headers={'user-agent': get_userAgent()},
|
||||||
timeout=max_timeout
|
timeout=max_timeout
|
||||||
)
|
)
|
||||||
|
@ -56,7 +56,6 @@ def title_search(word_to_search: str) -> int:
|
|||||||
search_url = f"{site_constant.FULL_URL}/search/?&q={word_to_search}&quick=1&type=videobox_video&nodes=11"
|
search_url = f"{site_constant.FULL_URL}/search/?&q={word_to_search}&quick=1&type=videobox_video&nodes=11"
|
||||||
console.print(f"[cyan]Search url: [yellow]{search_url}")
|
console.print(f"[cyan]Search url: [yellow]{search_url}")
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
response = httpx.get(
|
response = httpx.get(
|
||||||
url=search_url,
|
url=search_url,
|
||||||
|
@ -60,7 +60,7 @@ def title_search(title_search: str) -> int:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
response = httpx.get(
|
response = httpx.get(
|
||||||
url=f"{site_constant.FULL_URL}/api/search?q={title_search}",
|
url=search_url,
|
||||||
headers={'user-agent': get_userAgent()},
|
headers={'user-agent': get_userAgent()},
|
||||||
timeout=max_timeout
|
timeout=max_timeout
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user