Update ADC_function.py
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import requests
|
import requests
|
||||||
from lxml import etree
|
from lxml import etree
|
||||||
|
import re
|
||||||
import config
|
import config
|
||||||
|
|
||||||
SUPPORT_PROXY_TYPE = ("http", "socks5", "socks5h")
|
SUPPORT_PROXY_TYPE = ("http", "socks5", "socks5h")
|
||||||
@@ -469,7 +469,7 @@ def is_uncensored(number):
|
|||||||
if re.match('^\d{4,}', number) or re.match('n\d{4}', number) or 'HEYZO' in number.upper():
|
if re.match('^\d{4,}', number) or re.match('n\d{4}', number) or 'HEYZO' in number.upper():
|
||||||
return True
|
return True
|
||||||
configs = config.Config().get_uncensored()
|
configs = config.Config().get_uncensored()
|
||||||
prefix_list = str(configs[0]).split('|')
|
prefix_list = str(configs).split(',')
|
||||||
for pre in prefix_list:
|
for pre in prefix_list:
|
||||||
if pre.upper() in number.upper():
|
if pre.upper() in number.upper():
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user