BinaryONe commited on
Commit
72617d0
·
1 Parent(s): e566133

APP - Minor Changes Masked Print Statements - sparkdrive

Browse files
FileStream/config.py CHANGED
@@ -47,4 +47,4 @@ class Server:
47
  HAS_SSL = str(env.get("HAS_SSL","0").lower()) in ("1", "true", "t","yes", "y")
48
  NO_PORT = str(env.get("NO_PORT","0").lower()) in ("1", "true", "t","yes", "y")
49
  FQDN = str(env.get("FQDN", BIND_ADDRESS))
50
- URL = str(env.get("URL", "https://privateone-tele_api.hf.space/"))
 
47
  HAS_SSL = str(env.get("HAS_SSL","0").lower()) in ("1", "true", "t","yes", "y")
48
  NO_PORT = str(env.get("NO_PORT","0").lower()) in ("1", "true", "t","yes", "y")
49
  FQDN = str(env.get("FQDN", BIND_ADDRESS))
50
+ URL = str(env.get("URL", "https://privateone-teleapi.hf.space/"))
FileStream/server/routes_api.py CHANGED
@@ -37,15 +37,16 @@ async def list_all_files_tmdb(request):
37
  #print(files)
38
  response=[]
39
  async for row in files:
40
- print(row['file']['caption'])
41
  try :
42
- print("* Response",search_tmdb(row['file']['caption'] if row['file']['caption'] else row['file']['file_name']))
43
  resp = search_tmdb( str(row['file']['caption']) if str(row['file']['caption']) else str(row['file']['file_name']))
44
  if resp != None :
45
  #resp= dict(resp)
46
  print("TMDB Response :",resp)
47
  response.append(resp)
48
  else:
 
49
  continue
50
  except Exception as e:
51
  print("Error ",e)
 
37
  #print(files)
38
  response=[]
39
  async for row in files:
40
+ #print(row['file']['caption'])
41
  try :
42
+ #print("* Response",search_tmdb(row['file']['caption'] if row['file']['caption'] else row['file']['file_name']))
43
  resp = search_tmdb( str(row['file']['caption']) if str(row['file']['caption']) else str(row['file']['file_name']))
44
  if resp != None :
45
  #resp= dict(resp)
46
  print("TMDB Response :",resp)
47
  response.append(resp)
48
  else:
49
+ print("\n * Skipped:",row['file']['caption'],str(row['file']['file_name']))
50
  continue
51
  except Exception as e:
52
  print("Error ",e)