Search squid archive

Re: YouTube and other streaming media (caching)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks!  I've opened the bugzilla ticket.

BTW, the script is in perl, I forgot the first line of the script (sorry!):

---------------------------------
#!/usr/bin/perl
$|=1;
while (<>) {
  @X = split;
  $url = $X[0];
  $url =~ s@^http://(.*?)/get_video\?(.*)video_id=(.*?)&.*@squid://videos.youtube.INTERNAL/ID=$3@;
  $url =~ s@^http://(.*?)/get_video\?(.*)video_id=(.*?)$@squid://videos.youtube.INTERNAL/ID=$3@;
  $url =~ s@^http://(.*?)/videodownload\?(.*)docid=(.*?)$@squid://videos.google.INTERNAL/ID=$3@;
  $url =~ s@^http://(.*?)/videodownload\?(.*)docid=(.*?)&.*@squid://videos.google.INTERNAL/ID=$3@;

# Uncomment this if the use of "squid://" is unaceptable:
#  $url =~ s@^squid://@^http://@;

  print "$url\n";
}

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux