Skip to content

Commit

Permalink
Avoid stop encoder on BBot dettect
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel authored and daniel committed Jul 27, 2019
1 parent 5c76f7f commit 4920f0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/Cache/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function getStart() {
}
}

if($isBot && $_SERVER['REQUEST_URI'] !== '/login'){
if($isBot && $_SERVER['REQUEST_URI'] !== '/login' && $_SERVER['REQUEST_URI'] !== '/youPHPTubeEncoder.json'){
if(empty($_SERVER['HTTP_USER_AGENT'])){
$_SERVER['HTTP_USER_AGENT'] = "";
}
Expand Down

0 comments on commit 4920f0c

Please sign in to comment.