<?xml version="1.0" encoding="utf-8"?>
<service name="picasa"
         version="$Id: picasa.xml 19961 2008-08-25 21:05:29Z richard $"
         xmlns="http://www.flock.com/web-detective#">

  <strings>
    <string name="domains"
            value="google.com,google.ae,google.as,google.at,google.az,google.be,google.bi,google.ca,google.cd,google.cg,google.ch,google.ci,google.cl,google.co.cr,google.co.hu,google.co.il,google.co.im,google.co.in,google.co.je,google.co.jp,google.co.kr,google.co.ls,google.co.nz,google.co.th,google.co.uk,google.co.ve,google.co.za,google.com.ag,google.com.ar,google.com.au,google.com.br,google.com.co,google.com.cu,google.com.do,google.com.ec,google.com.fj,google.com.gi,google.com.gr,google.com.hk,google.com.jm,google.com.mt,google.com.mx,google.com.my,google.com.na,google.com.nf,google.com.ni,google.com.np,google.com.pa,google.com.pe,google.com.ph,google.com.pk,google.com.pr,google.com.py,google.com.sg,google.com.sv,google.com.tr,google.com.tw,google.com.ua,google.com.uy,google.de,google.dj,google.dk,google.es,google.fi,google.fm,google.fr,google.ge,google.gg,google.gl,google.gm,google.hn,google.ie,google.it,google.kz,google.li,google.lt,google.lu,google.lv,google.ms,google.mu,google.mw,google.nl,google.off.ai,google.pl,google.pn,google.pt,google.ro,google.ru,google.rw,google.se,google.sh,google.sk,google.sm,google.td,google.tt,google.uz,google.vg,google.vn,google.vu" />

    <string name="userprofile">
      <![CDATA[http://picasaweb.google.com/home/]]>
    </string>

    <string name="homePageURL" locale="default">
      <![CDATA[http://picasaweb.google.com/]]>
    </string>

    <string name="loginURL" locale="default">
      <![CDATA[https://www.google.com/accounts/ServiceLogin?hl=en_US&continue=http%3A%2F%2Fpicasaweb.google.com%2F&service=lh2&passive=true/]]>
    </string>
  </strings>

  <sessioncookies>
    <cookie host=".picasaweb.google.com" name="lh" path="/"/>
    <cookie host=".google.com" name="SID" path="/"/>
    <cookie host=".picasaweb.google.ae" name="lh" path="/" />
    <cookie host=".google.ae" name="SID" path="/" />
    <cookie host=".picasaweb.google.as" name="lh" path="/" />
    <cookie host=".google.as" name="SID" path="/" />
    <cookie host=".picasaweb.google.at" name="lh" path="/" />
    <cookie host=".google.at" name="SID" path="/" />
    <cookie host=".picasaweb.google.az" name="lh" path="/" />
    <cookie host=".google.az" name="SID" path="/" />
    <cookie host=".picasaweb.google.be" name="lh" path="/" />
    <cookie host=".google.be" name="SID" path="/" />
    <cookie host=".picasaweb.google.bi" name="lh" path="/" />
    <cookie host=".google.bi" name="SID" path="/" />
    <cookie host=".picasaweb.google.ca" name="lh" path="/" />
    <cookie host=".google.ca" name="SID" path="/" />
    <cookie host=".picasaweb.google.cd" name="lh" path="/" />
    <cookie host=".google.cd" name="SID" path="/" />
    <cookie host=".picasaweb.google.cg" name="lh" path="/" />
    <cookie host=".google.cg" name="SID" path="/" />
    <cookie host=".picasaweb.google.ch" name="lh" path="/" />
    <cookie host=".google.ch" name="SID" path="/" />
    <cookie host=".picasaweb.google.ci" name="lh" path="/" />
    <cookie host=".google.ci" name="SID" path="/" />
    <cookie host=".picasaweb.google.cl" name="lh" path="/" />
    <cookie host=".google.cl" name="SID" path="/" />
    <cookie host=".picasaweb.google.co.cr" name="lh" path="/" />
    <cookie host=".google.co.cr" name="SID" path="/" />
    <cookie host=".picasaweb.google.co.hu" name="lh" path="/" />
    <cookie host=".google.co.hu" name="SID" path="/" />
    <cookie host=".picasaweb.google.co.il" name="lh" path="/" />
    <cookie host=".google.co.il" name="SID" path="/" />
    <cookie host=".picasaweb.google.co.im" name="lh" path="/" />
    <cookie host=".google.co.im" name="SID" path="/" />
    <cookie host=".picasaweb.google.co.in" name="lh" path="/" />
    <cookie host=".google.co.in" name="SID" path="/" />
    <cookie host=".picasaweb.google.co.je" name="lh" path="/" />
    <cookie host=".google.co.je" name="SID" path="/" />
    <cookie host=".picasaweb.google.co.jp" name="lh" path="/" />
    <cookie host=".google.co.jp" name="SID" path="/" />
    <cookie host=".picasaweb.google.co.kr" name="lh" path="/" />
    <cookie host=".google.co.kr" name="SID" path="/" />
    <cookie host=".picasaweb.google.co.ls" name="lh" path="/" />
    <cookie host=".google.co.ls" name="SID" path="/" />
    <cookie host=".picasaweb.google.co.nz" name="lh" path="/" />
    <cookie host=".google.co.nz" name="SID" path="/" />
    <cookie host=".picasaweb.google.co.th" name="lh" path="/" />
    <cookie host=".google.co.th" name="SID" path="/" />
    <cookie host=".picasaweb.google.co.uk" name="lh" path="/" />
    <cookie host=".google.co.uk" name="SID" path="/" />
    <cookie host=".picasaweb.google.co.ve" name="lh" path="/" />
    <cookie host=".google.co.ve" name="SID" path="/" />
    <cookie host=".picasaweb.google.co.za" name="lh" path="/" />
    <cookie host=".google.co.za" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.ag" name="lh" path="/" />
    <cookie host=".google.com.ag" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.ar" name="lh" path="/" />
    <cookie host=".google.com.ar" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.au" name="lh" path="/" />
    <cookie host=".google.com.au" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.br" name="lh" path="/" />
    <cookie host=".google.com.br" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.co" name="lh" path="/" />
    <cookie host=".google.com.co" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.cu" name="lh" path="/" />
    <cookie host=".google.com.cu" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.do" name="lh" path="/" />
    <cookie host=".google.com.do" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.ec" name="lh" path="/" />
    <cookie host=".google.com.ec" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.fj" name="lh" path="/" />
    <cookie host=".google.com.fj" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.gi" name="lh" path="/" />
    <cookie host=".google.com.gi" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.gr" name="lh" path="/" />
    <cookie host=".google.com.gr" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.hk" name="lh" path="/" />
    <cookie host=".google.com.hk" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.jm" name="lh" path="/" />
    <cookie host=".google.com.jm" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.mt" name="lh" path="/" />
    <cookie host=".google.com.mt" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.mx" name="lh" path="/" />
    <cookie host=".google.com.mx" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.my" name="lh" path="/" />
    <cookie host=".google.com.my" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.na" name="lh" path="/" />
    <cookie host=".google.com.na" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.nf" name="lh" path="/" />
    <cookie host=".google.com.nf" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.ni" name="lh" path="/" />
    <cookie host=".google.com.ni" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.np" name="lh" path="/" />
    <cookie host=".google.com.np" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.pa" name="lh" path="/" />
    <cookie host=".google.com.pa" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.pe" name="lh" path="/" />
    <cookie host=".google.com.pe" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.ph" name="lh" path="/" />
    <cookie host=".google.com.ph" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.pk" name="lh" path="/" />
    <cookie host=".google.com.pk" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.pr" name="lh" path="/" />
    <cookie host=".google.com.pr" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.py" name="lh" path="/" />
    <cookie host=".google.com.py" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.sg" name="lh" path="/" />
    <cookie host=".google.com.sg" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.sv" name="lh" path="/" />
    <cookie host=".google.com.sv" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.tr" name="lh" path="/" />
    <cookie host=".google.com.tr" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.tw" name="lh" path="/" />
    <cookie host=".google.com.tw" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.ua" name="lh" path="/" />
    <cookie host=".google.com.ua" name="SID" path="/" />
    <cookie host=".picasaweb.google.com.uy" name="lh" path="/" />
    <cookie host=".google.com.uy" name="SID" path="/" />
    <cookie host=".picasaweb.google.de" name="lh" path="/" />
    <cookie host=".google.de" name="SID" path="/" />
    <cookie host=".picasaweb.google.dj" name="lh" path="/" />
    <cookie host=".google.dj" name="SID" path="/" />
    <cookie host=".picasaweb.google.dk" name="lh" path="/" />
    <cookie host=".google.dk" name="SID" path="/" />
    <cookie host=".picasaweb.google.es" name="lh" path="/" />
    <cookie host=".google.es" name="SID" path="/" />
    <cookie host=".picasaweb.google.fi" name="lh" path="/" />
    <cookie host=".google.fi" name="SID" path="/" />
    <cookie host=".picasaweb.google.fm" name="lh" path="/" />
    <cookie host=".google.fm" name="SID" path="/" />
    <cookie host=".picasaweb.google.fr" name="lh" path="/" />
    <cookie host=".google.fr" name="SID" path="/" />
    <cookie host=".picasaweb.google.ge" name="lh" path="/" />
    <cookie host=".google.ge" name="SID" path="/" />
    <cookie host=".picasaweb.google.gg" name="lh" path="/" />
    <cookie host=".google.gg" name="SID" path="/" />
    <cookie host=".picasaweb.google.gl" name="lh" path="/" />
    <cookie host=".google.gl" name="SID" path="/" />
    <cookie host=".picasaweb.google.gm" name="lh" path="/" />
    <cookie host=".google.gm" name="SID" path="/" />
    <cookie host=".picasaweb.google.hn" name="lh" path="/" />
    <cookie host=".google.hn" name="SID" path="/" />
    <cookie host=".picasaweb.google.ie" name="lh" path="/" />
    <cookie host=".google.ie" name="SID" path="/" />
    <cookie host=".picasaweb.google.it" name="lh" path="/" />
    <cookie host=".google.it" name="SID" path="/" />
    <cookie host=".picasaweb.google.kz" name="lh" path="/" />
    <cookie host=".google.kz" name="SID" path="/" />
    <cookie host=".picasaweb.google.li" name="lh" path="/" />
    <cookie host=".google.li" name="SID" path="/" />
    <cookie host=".picasaweb.google.lt" name="lh" path="/" />
    <cookie host=".google.lt" name="SID" path="/" />
    <cookie host=".picasaweb.google.lu" name="lh" path="/" />
    <cookie host=".google.lu" name="SID" path="/" />
    <cookie host=".picasaweb.google.lv" name="lh" path="/" />
    <cookie host=".google.lv" name="SID" path="/" />
    <cookie host=".picasaweb.google.ms" name="lh" path="/" />
    <cookie host=".google.ms" name="SID" path="/" />
    <cookie host=".picasaweb.google.mu" name="lh" path="/" />
    <cookie host=".google.mu" name="SID" path="/" />
    <cookie host=".picasaweb.google.mw" name="lh" path="/" />
    <cookie host=".google.mw" name="SID" path="/" />
    <cookie host=".picasaweb.google.nl" name="lh" path="/" />
    <cookie host=".google.nl" name="SID" path="/" />
    <cookie host=".picasaweb.google.off.ai" name="lh" path="/" />
    <cookie host=".google.off.ai" name="SID" path="/" />
    <cookie host=".picasaweb.google.pl" name="lh" path="/" />
    <cookie host=".google.pl" name="SID" path="/" />
    <cookie host=".picasaweb.google.pn" name="lh" path="/" />
    <cookie host=".google.pn" name="SID" path="/" />
    <cookie host=".picasaweb.google.pt" name="lh" path="/" />
    <cookie host=".google.pt" name="SID" path="/" />
    <cookie host=".picasaweb.google.ro" name="lh" path="/" />
    <cookie host=".google.ro" name="SID" path="/" />
    <cookie host=".picasaweb.google.ru" name="lh" path="/" />
    <cookie host=".google.ru" name="SID" path="/" />
    <cookie host=".picasaweb.google.rw" name="lh" path="/" />
    <cookie host=".google.rw" name="SID" path="/" />
    <cookie host=".picasaweb.google.se" name="lh" path="/" />
    <cookie host=".google.se" name="SID" path="/" />
    <cookie host=".picasaweb.google.sh" name="lh" path="/" />
    <cookie host=".google.sh" name="SID" path="/" />
    <cookie host=".picasaweb.google.sk" name="lh" path="/" />
    <cookie host=".google.sk" name="SID" path="/" />
    <cookie host=".picasaweb.google.sm" name="lh" path="/" />
    <cookie host=".google.sm" name="SID" path="/" />
    <cookie host=".picasaweb.google.td" name="lh" path="/" />
    <cookie host=".google.td" name="SID" path="/" />
    <cookie host=".picasaweb.google.tt" name="lh" path="/" />
    <cookie host=".google.tt" name="SID" path="/" />
    <cookie host=".picasaweb.google.uz" name="lh" path="/" />
    <cookie host=".google.uz" name="SID" path="/" />
    <cookie host=".picasaweb.google.vg" name="lh" path="/" />
    <cookie host=".google.vg" name="SID" path="/" />
    <cookie host=".picasaweb.google.vn" name="lh" path="/" />
    <cookie host=".google.vn" name="SID" path="/" />
    <cookie host=".picasaweb.google.vu" name="lh" path="/" />
    <cookie host=".google.vu" name="SID" path="/" />
  </sessioncookies>

  <detect type="signup">
    <url domain="google.com">
      <path contains="/accounts/NewAccount" />
      <querystring contains="picasaweb.google" />
    </url>
    <form>
      <xpath name="username" extract="value">
        <![CDATA[//input[@name="Email"]]]>
      </xpath>
      <xpath name="password" extract="value">
        <![CDATA[//input[@type="password"][@name="PasswdAgain"]]]>
      </xpath>
    </form>
  </detect>

  <detect type="login">
    <url>
      <host domain="google.com" />
      <path contains="/accounts/ServiceLogin" />
      <querystring contains="picasaweb.google" />
    </url>
    <form>
      <xpath name="username" extract="value">
        <![CDATA[//input[@id="Email"]]]>
      </xpath>
      <xpath name="password" extract="value">
        <![CDATA[//input[@id="Passwd"]]]>
      </xpath>
    </form>
  </detect>

  <detect type="login">
    <!-- Used after a failed login attempt -->
    <url>
      <host domain="google.com" />
      <path contains="/accounts/ServiceLoginAuth" />
    </url>
    <document>
      <xpath><![CDATA[//head/title[contains(.,"Picasa")]]]></xpath>
    </document>
    <form>
      <xpath name="username" extract="value">
        <![CDATA[//input[@id="Email"]]]>
      </xpath>
      <xpath name="password" extract="value">
        <![CDATA[//input[@id="Passwd"]]]>
      </xpath>
    </form>
  </detect>

  <detect type="login">
    <url>
      <path contains="/accounts/Login" />
      <querystring contains="picasaweb.google" />
    </url>
    <form>
      <xpath name="username" extract="value">
        <![CDATA[//input[@id="Email"]]]>
      </xpath>
      <xpath name="password" extract="value">
        <![CDATA[//input[@id="Passwd"]]]>
      </xpath>
    </form>
  </detect>

  <detect type="loggedin">
    <url><host contains="picasaweb.google." /></url>
    <xpath><![CDATA[//div[@id="guser" and count(//a[@id="lhid_login"])=0]]]></xpath>
  </detect>

  <!-- Don't login account until TOS agreement confirmed
       c.f. https://bugzilla.flock.com/show_bug.cgi?id=11328 -->
  <detect type="loggedin">
    <url>
      <host contains="picasaweb.google." />
      <path notcontains="tosAgreement" />
    </url>
    <xpath><![CDATA[//td[@id="lhid_userinfo" and count(//a[@id="lhid_login"])=0]]]></xpath>
  </detect>

  <!-- For Google Accounts that use Gmail addresses for login -->
  <detect type="accountinfo">
    <url><host contains="picasaweb.google." /></url>
    <xpath>
      <![CDATA[//div[@id="guser"]//b/text()]]>
      <regexp re1="email" re2="accountid">
        <![CDATA[/((.+)@g(?:|oogle)mail\.com)/]]>
      </regexp>
    </xpath>
  </detect>

  <!-- For older Google Accounts that don't use Gmail addresses for login.
       Checking for a Gmail address should always happen before this rule -->
  <detect type="accountinfo">
    <url><host contains="picasaweb.google." /></url>
    <xpath>
      <![CDATA[//div[@id="guser"]//b/text()]]>
      <regexp re1="email" re2="accountid">
        <![CDATA[/((.+))/]]>
      </regexp>
    </xpath>
  </detect>

  <!-- BEGIN Picasa redirects user to a special landing page on first time login -->

  <!-- For Google Accounts that use Gmail addresses for login -->
  <detect type="accountinfo">
    <url><host contains="picasaweb.google." /></url>
    <xpath>
      <![CDATA[//td[@id="lhid_userinfo"]//b/text()]]>
      <regexp re1="email" re2="accountid">
        <![CDATA[/((.+)@g(?:|oogle)mail\.com)/]]>
      </regexp>
    </xpath>
  </detect>

  <!-- For older Google Accounts that don't use Gmail addresses for login.
       Checking for a Gmail address should always happen before this rule -->
  <detect type="accountinfo">
    <url><host contains="picasaweb.google." /></url>
    <xpath>
      <![CDATA[//td[@id="lhid_userinfo"]//b/text()]]>
      <regexp re1="email" re2="accountid">
        <![CDATA[/((.+))/]]>
      </regexp>
    </xpath>
  </detect>

  <!-- END Picasa redirect -->

  <detect type="loggedout">
    <url domain="google.com"/>
    <xpath>
      <![CDATA[//div[@id="gaia_loginbox"]/form[@action="ServiceLoginAuth"]]]>
    </xpath>
  </detect>

  <detect type="person">
    <url>
      <host contains="picasaweb.google." />
      <regexp>
        <![CDATA[/\picasaweb\.google\.(com|ae|as|at|az|be|bi|ca|cd|cg|ch|ci|cl|co\.cr|co\.hu|co\.il|co\.im|co\.in|co\.je|co\.jp|co\.kr|co\.ls|co\.nz|co\.th|co\.uk|co\.ve|co\.za|com\.ag|com\.ar|com\.au|com\.br|com\.co|com\.cu|com\.do|com\.ec|com\.fj|com\.gi|com\.gr|com\.hk|com\.jm|com\.mt|com\.mx|com\.my|com\.na|com\.nf|com\.ni|com\.np|com\.pa|com\.pe|com\.ph|com\.pk|com\.pr|com\.py|com\.sg|com\.sv|com\.tr|com\.tw|com\.ua|com\.uy|de|dj|dk|es|fi|fm|fr|ge|gg|gl|gm|hn|ie|it|kz|li|lt|lu|lv|ms|mu|mw|nl|off\.ai|pl|pn|pt|ro|ru|rw|se|sh|sk|sm|td|tt|uz|vg|vn|vu)\/[^\/]+\/?$/]]>
      </regexp>
    </url>
    <results>
      <document>
        <regexp re1="userid" re2="username">
          <![CDATA[/var _user = {name:'(.+)',nickname:'([^']+)',/]]>
        </regexp>
      </document>
    </results>
  </detect>

  <!-- for media magic -->
  <detect type="person">
    <regexp re1="domain" re2="ext" re3="userid">
      <![CDATA[/^http:\/\/lh[0-9]\.(google|ggpht)\.(com|ae|as|at|az|be|bi|ca|cd|cg|ch|ci|cl|co\.cr|co\.hu|co\.il|co\.im|co\.in|co\.je|co\.jp|co\.kr|co\.ls|co\.nz|co\.th|co\.uk|co\.ve|co\.za|com\.ag|com\.ar|com\.au|com\.br|com\.co|com\.cu|com\.do|com\.ec|com\.fj|com\.gi|com\.gr|com\.hk|com\.jm|com\.mt|com\.mx|com\.my|com\.na|com\.nf|com\.ni|com\.np|com\.pa|com\.pe|com\.ph|com\.pk|com\.pr|com\.py|com\.sg|com\.sv|com\.tr|com\.tw|com\.ua|com\.uy|de|dj|dk|es|fi|fm|fr|ge|gg|gl|gm|hn|ie|it|kz|li|lt|lu|lv|ms|mu|mw|nl|off\.ai|pl|pn|pt|ro|ru|rw|se|sh|sk|sm|td|tt|uz|vg|vn|vu)\/([^\/]+)\/.+\./i]]>
    </regexp>
  </detect>

  <detect type="person_and_album">
    <url>
      <host contains="picasaweb.google." />
      <regexp>
        <![CDATA[/\picasaweb\.google\.(com|ae|as|at|az|be|bi|ca|cd|cg|ch|ci|cl|co\.cr|co\.hu|co\.il|co\.im|co\.in|co\.je|co\.jp|co\.kr|co\.ls|co\.nz|co\.th|co\.uk|co\.ve|co\.za|com\.ag|com\.ar|com\.au|com\.br|com\.co|com\.cu|com\.do|com\.ec|com\.fj|com\.gi|com\.gr|com\.hk|com\.jm|com\.mt|com\.mx|com\.my|com\.na|com\.nf|com\.ni|com\.np|com\.pa|com\.pe|com\.ph|com\.pk|com\.pr|com\.py|com\.sg|com\.sv|com\.tr|com\.tw|com\.ua|com\.uy|de|dj|dk|es|fi|fm|fr|ge|gg|gl|gm|hn|ie|it|kz|li|lt|lu|lv|ms|mu|mw|nl|off\.ai|pl|pn|pt|ro|ru|rw|se|sh|sk|sm|td|tt|uz|vg|vn|vu)\/[^\/]+\/[^\/]+\/?/]]>
      </regexp>
    </url>
    <results>
      <document>
        <regexp re1="userid" re2="username">
          <![CDATA[/var _user = {name:'(.+)',nickname:'([^']+)',/]]>
        </regexp>
        <regexp re1="albumid" re2="albumname">
          <![CDATA[/var _album = {id:'([0-9]+)'.+,title:'([^']+)',/]]>
        </regexp>
      </document>
    </results>
  </detect>

  <detect type="ownsDocument">
    <url><host contains="picasaweb.google." /></url>
  </detect>

  <detect type="ownsDocument"><!-- Login page -->
    <url domain="google.com">
      <querystring contains="service=lh2" />
    </url>
  </detect>

  <detect type="isStreamUrl">
    <regexp>
      <![CDATA[/^http:\/\/lh[0-9]\.(google|ggpht)\.(com|ae|as|at|az|be|bi|ca|cd|cg|ch|ci|cl|co\.cr|co\.hu|co\.il|co\.im|co\.in|co\.je|co\.jp|co\.kr|co\.ls|co\.nz|co\.th|co\.uk|co\.ve|co\.za|com\.ag|com\.ar|com\.au|com\.br|com\.co|com\.cu|com\.do|com\.ec|com\.fj|com\.gi|com\.gr|com\.hk|com\.jm|com\.mt|com\.mx|com\.my|com\.na|com\.nf|com\.ni|com\.np|com\.pa|com\.pe|com\.ph|com\.pk|com\.pr|com\.py|com\.sg|com\.sv|com\.tr|com\.tw|com\.ua|com\.uy|de|dj|dk|es|fi|fm|fr|ge|gg|gl|gm|hn|ie|it|kz|li|lt|lu|lv|ms|mu|mw|nl|off\.ai|pl|pn|pt|ro|ru|rw|se|sh|sk|sm|td|tt|uz|vg|vn|vu)\/.+\./i]]>
    </regexp>
  </detect>

  <detect type="isStreamUrl">
    <regexp>
      <![CDATA[/^http:\/\/video\.google\.(com|ae|as|at|az|be|bi|ca|cd|cg|ch|ci|cl|co\.cr|co\.hu|co\.il|co\.im|co\.in|co\.je|co\.jp|co\.kr|co\.ls|co\.nz|co\.th|co\.uk|co\.ve|co\.za|com\.ag|com\.ar|com\.au|com\.br|com\.co|com\.cu|com\.do|com\.ec|com\.fj|com\.gi|com\.gr|com\.hk|com\.jm|com\.mt|com\.mx|com\.my|com\.na|com\.nf|com\.ni|com\.np|com\.pa|com\.pe|com\.ph|com\.pk|com\.pr|com\.py|com\.sg|com\.sv|com\.tr|com\.tw|com\.ua|com\.uy|de|dj|dk|es|fi|fm|fr|ge|gg|gl|gm|hn|ie|it|kz|li|lt|lu|lv|ms|mu|mw|nl|off\.ai|pl|pn|pt|ro|ru|rw|se|sh|sk|sm|td|tt|uz|vg|vn|vu)\/googleplayer\.swf/i]]>
    </regexp>
  </detect>

</service>
