summaryrefslogtreecommitdiff
path: root/dl.php
diff options
context:
space:
mode:
authormoehm2014-09-14 21:42:16 +0200
committermoehm2014-09-14 21:42:16 +0200
commit8fcfc80ca2bb393a1a4b7d4cd16e1186b7ae3597 (patch)
tree98f363333bb8b416eebb5460d4cf087bfaff2a5e /dl.php
parentf4c4a9791a90c51b1699d5d178199318a2ca2a85 (diff)
downloadvideo-dl-8fcfc80ca2bb393a1a4b7d4cd16e1186b7ae3597.tar.gz
corrected ajax filesize check
Diffstat (limited to 'dl.php')
-rw-r--r--dl.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/dl.php b/dl.php
index ba35a1d..88d597e 100644
--- a/dl.php
+++ b/dl.php
@@ -32,6 +32,9 @@ $curl = curlInfo($info[3]);
if($_GET["task"] == "stream" || $_GET["task"] == "player")
$MAXSIZE = 200000000;
+if($_GET["ddl"])
+ $MAXSIZE = 2000000000;
+
# checks file size
if($curl[2] > $MAXSIZE){ // 50M
$f=BytesHumanSize($curl[2] - $MAXSIZE);