randydev commited on
Commit
1cafdf9
1 Parent(s): ba8726e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +6 -6
main.py CHANGED
@@ -77,9 +77,9 @@ HUGGING_TOKEN = os.environ["HUGGING_TOKEN"]
77
  SOURCE_UNSPLASH_URL = os.environ["SOURCE_UNSPLASH_URL"]
78
  SOURCE_OCR_URL = os.environ["SOURCE_OCR_URL"]
79
  SOURCE_ALPHA_URL = os.environ["SOURCE_ALPHA_URL"]
80
- SOURCR_WAIFU_URL = os.environ["SOURCR_WAIFU_URL"]
81
- SOURCR_TIKTOK_WTF_URL = os.environ["SOURCR_TIKTOK_WTF_URL"]
82
- SOURCR_TIKTOK_TECH_URL = os.environ["SOURCR_TIKTOK_TECH_URL"]
83
  DEVELOPER_ID = os.environ["DEVELOPER_ID"]
84
 
85
  description = """
@@ -433,7 +433,7 @@ def waifu_pics(
433
  types: str="sfw",
434
  category: str="neko"
435
  ):
436
- waifu_api = f"{SOURCR_WAIFU_URL}/{types}"
437
  waifu_param = f"{waifu_api}/{category}"
438
 
439
  response = requests.get(waifu_param)
@@ -571,7 +571,7 @@ def whois_ip_address(ip_address: str=None):
571
 
572
  @app.get("/ryuzaki/tiktok_douyin")
573
  def tiktok_douyin(tiktok_url: str=None):
574
- response = requests.get(f"{SOURCR_TIKTOK_WTF_URL}={tiktok_url}")
575
  if response.status_code != 200:
576
  return "Error request:"
577
  try:
@@ -595,7 +595,7 @@ def tiktok_douyin(tiktok_url: str=None):
595
 
596
  @app.get("/ryuzaki/tiktok")
597
  def tiktok_downloader(tiktok_url: Union[str, None] = None, only_video: bool=None):
598
- api_devs = SOURCR_TIKTOK_TECH_URL
599
  parameter = f"tiktok?url={tiktok_url}"
600
  api_url = f"{api_devs}/{parameter}"
601
  response = requests.get(api_url)
 
77
  SOURCE_UNSPLASH_URL = os.environ["SOURCE_UNSPLASH_URL"]
78
  SOURCE_OCR_URL = os.environ["SOURCE_OCR_URL"]
79
  SOURCE_ALPHA_URL = os.environ["SOURCE_ALPHA_URL"]
80
+ SOURCE_WAIFU_URL = os.environ["SOURCE_WAIFU_URL"]
81
+ SOURCE_TIKTOK_WTF_URL = os.environ["SOURCE_TIKTOK_WTF_URL"]
82
+ SOURCE_TIKTOK_TECH_URL = os.environ["SOURCE_TIKTOK_TECH_URL"]
83
  DEVELOPER_ID = os.environ["DEVELOPER_ID"]
84
 
85
  description = """
 
433
  types: str="sfw",
434
  category: str="neko"
435
  ):
436
+ waifu_api = f"{SOURCE_WAIFU_URL}/{types}"
437
  waifu_param = f"{waifu_api}/{category}"
438
 
439
  response = requests.get(waifu_param)
 
571
 
572
  @app.get("/ryuzaki/tiktok_douyin")
573
  def tiktok_douyin(tiktok_url: str=None):
574
+ response = requests.get(f"{SOURCE_TIKTOK_WTF_URL}={tiktok_url}")
575
  if response.status_code != 200:
576
  return "Error request:"
577
  try:
 
595
 
596
  @app.get("/ryuzaki/tiktok")
597
  def tiktok_downloader(tiktok_url: Union[str, None] = None, only_video: bool=None):
598
+ api_devs = SOURCE_TIKTOK_TECH_URL
599
  parameter = f"tiktok?url={tiktok_url}"
600
  api_url = f"{api_devs}/{parameter}"
601
  response = requests.get(api_url)