<?xml version="1.0" encoding="ISO-8859-1"?>
<vpi xmlns='http://virtual-presence.org/schemas/vpi'>

  <!-- 
  http://youtube.com/watch?v=kCd8cn5FE4M&feature=bz303
  http://youtube.com/watch?feature=bz303&v=kCd8cn5FE4M
  http://www.youtube.com/watch?feature=bz303&v=ZCd8cn5FE4M
  http://de.youtube.com/watch?feature=bz303v=kCd8cn5FE4M
  http://www.youtube.com/
  -->
  
  <location match='^https?://(www.|([^.]+\.))?(youtube\.[a-zA-Z]+)(:[0-9]+)?/.*v=([a-hA-H])[-+a-zA-Z0-9]+.*'>
    <service>jabber:location.virtual-presence.org</service>
    <name hash="SHA1">\2\3-a-h</name>
    <destination>http://youtube.com/</destination>
    <topology level="query"/>
  </location>

  <location match='^https?://(www.|([^.]+\.))?(youtube\.[a-zA-Z]+)(:[0-9]+)?/.*v=([i-qI-Q])[-+a-zA-Z0-9]+.*'>
    <service>jabber:location.virtual-presence.org</service>
    <name hash="SHA1">\2\3-i-q</name>
    <destination>http://youtube.com/</destination>
    <topology level="query"/>
  </location>

  <location match='^https?://(www.|([^.]+\.))?(youtube\.[a-zA-Z]+)(:[0-9]+)?/.*v=([r-zR-Z])[-+a-zA-Z0-9]+.*'>
    <service>jabber:location.virtual-presence.org</service>
    <name hash="SHA1">\2\3-r-z</name>
    <destination>http://youtube.com/</destination>
    <topology level="query"/>
  </location>

  <location match='^https?://(www.|([^.]+\.))?(youtube\.[a-zA-Z]+)(:[0-9]+)?/.*v=([^a-zA-Z])[-+a-zA-Z0-9]+.*'>
    <service>jabber:location.virtual-presence.org</service>
    <name hash="SHA1">\2\3-other</name>
    <destination>http://youtube.com/</destination>
    <topology level="query"/>
  </location>

  <location match='^https?://(www.|([^.]+\.))?(youtube\.[a-zA-Z]+)(:[0-9]+)?'>
    <service>jabber:location.virtual-presence.org</service>
    <name hash="SHA1">\3</name>
    <destination>http://youtube.com/</destination>
  </location>

  <delegate>
    <uri>http://lms.virtual-presence.org/firebat-2.7.7/name/default.xml</uri>
  </delegate>

</vpi>
