File tree Expand file tree Collapse file tree 27 files changed +106
-108
lines changed
Expand file tree Collapse file tree 27 files changed +106
-108
lines changed Original file line number Diff line number Diff line change 2222# Variable
2323indice = 3
2424_useFor = "film_serie"
25- _deprecate = False
26- _priority = 2
25+ _priority = 0
2726_engineDownload = "tor"
2827
2928console = Console ()
Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change 2525# Variable
2626indice = 2
2727_useFor = "film_serie"
28- _deprecate = False
29- _priority = 1
28+ _priority = 0
3029_engineDownload = "hls"
3130
3231msg = Prompt ()
Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change 2525# Variable
2626indice = 1
2727_useFor = "anime"
28- _deprecate = False
29- _priority = 2
28+ _priority = 0
3029_engineDownload = "mp4"
3130
3231msg = Prompt ()
Original file line number Diff line number Diff line change 2020# Variable
2121indice = 8
2222_useFor = "anime"
23- _deprecate = False
24- _priority = 2
23+ _priority = 0
2524_engineDownload = "mp4"
2625
2726msg = Prompt ()
Original file line number Diff line number Diff 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 } " )
Original file line number Diff line number Diff line change 2222# Variable
2323indice = 4
2424_useFor = "film"
25- _deprecate = False
26- _priority = 2
25+ _priority = 0
2726_engineDownload = "mp4"
2827
2928msg = Prompt ()
Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change 2323# Variable
2424indice = 6
2525_useFor = "serie"
26- _deprecate = False
27- _priority = 2
26+ _priority = 0
2827_engineDownload = "mp4"
2928
3029msg = Prompt ()
You can’t perform that action at this time.
0 commit comments