Advertisement
albspirit86

test

Aug 6th, 2014
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. test storeid
  2.  
  3.  
  4.  
  5. } elsif ($x =~ m/^http\:\/\/.*(youtube|google).*videoplayback.*/){
  6. @itag = m/[&?](itag=[0-9]*)/;
  7. @ids = m/[&?]id\=([^\&\s]*)/;
  8. @mime = m/[&?](mime\=[^\&\s]*)/;
  9. @cpn = m/[&?]cpn\=([^\&\s]*)/;
  10. $fn = "/var/log/squid/@cpn";
  11. if (-e $fn) {
  12. open FH,"<".$fn ;
  13. $id = <FH>;
  14. chomp $id ;
  15. close FH ;
  16. } else {
  17. $id = $ids[0] ;
  18. }
  19. @range = m/[&?](range=[^\&\s]*)/;
  20. $out = "http://video-srv.youtube.com.SQUIDINTERNAL/id=" . $id . "&@itag@range@mime";
  21.  
  22. ---------------------
  23. elsif ($x =~ m/^http\:\/\/.*(youtube|google).*videoplayback.*/)
  24. elsif ($x =~ m/^http\:\/\/.*(youtube|googlevideo).*videoplayback.*/)
  25.  
  26. #squid conf
  27. acl youtube url_regex -i (youtube|google).*\/videoplayback\?.*
  28. acl youtube url_regex -i (youtube|googlevideo).*\/videoplayback\?.*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement