imperialwool commited on
Commit
dc0c76c
1 Parent(s): 3a32016
Files changed (2) hide show
  1. routes/config.json +1 -1
  2. routes/helpers.py +5 -3
routes/config.json CHANGED
@@ -5,5 +5,5 @@
5
  "static-path": "/app/static",
6
  "previews-path": "/app/static/previews",
7
  "signatures-db": "/app/signatures.db",
8
- "buildVersion": "1.0 build58"
9
  }
 
5
  "static-path": "/app/static",
6
  "previews-path": "/app/static/previews",
7
  "signatures-db": "/app/signatures.db",
8
+ "buildVersion": "1.0 build59"
9
  }
routes/helpers.py CHANGED
@@ -54,9 +54,11 @@ def checkSignature(signature: str):
54
 
55
  # Hook for yt-dlp
56
  def thisIsHook(d):
57
- if d['total_bytes'] > 52428800:
58
- print("\nFILE IS BIG, ABORT!!!\n")
59
- raise Exception(f"Too long file (recieved {d['total_bytes']/1048576}MB, max is 50MB)")
 
 
60
 
61
  # Get variable from request
62
  def getFromRequest(request, thing: str):
 
54
 
55
  # Hook for yt-dlp
56
  def thisIsHook(d):
57
+ try:
58
+ if d['total_bytes'] > 52428800:
59
+ print("\nFILE IS BIG, ABORT!!!\n")
60
+ raise Exception(f"Too long file (recieved {d['total_bytes']/1048576}MB, max is 50MB)")
61
+ except: pass
62
 
63
  # Get variable from request
64
  def getFromRequest(request, thing: str):