Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.78 KB | None | 0 0
  1.     <category>
  2.         <pattern>Cuantos  capitulos totales tiene (la serie) *</pattern>
  3.     <template>
  4.             <think><set var="serie"><star/></set></think>
  5.             <think><set var="bucle1"><map><name><get var="serie"/></name>temporada<get var="contador"/></map></set></think>
  6.             <think><set var="contador">1</set></think>
  7.             <think><set var="total">0</set></think>
  8.  
  9.             <condition var="blucle1">
  10.             <li><value>unknown</value></li>
  11.             <li>
  12.                 <think><set var="contadorcaps">0</set></think>
  13.                 <think><set var="contador"><map name="successor"><get var="contador"/></map></set></think>
  14.                 <think><set name="capitulos"><srai>decode_fields <map><name><get var="serie"/>></name>temporada<get var="contador"/></map></srai></set></think>
  15.                 <think><set name="tmp"><srai>COUNT <get name="capitulos"/></srai></set> </think>
  16.                 <think><set name="numerocaps"><map><name>mitades</name><get name="tmp"/></map></set></think>
  17.                
  18.                 <condition var="contadorcaps">
  19.                 <li><value> <get name="numerocaps"/> </value></li>
  20.                 <li>
  21.                     <think><set var="contadorcaps"><map name="successor"><get var="contadorcaps"/></map></set></think>
  22.                     <think><set var="contadorcaps"><map name="successor"><get var="total"/></map></set></think>
  23.                     <loop/>
  24.                 </li>
  25.                 </condition>
  26.                 <think><set var="bucle1"><map><name><star/></name>temporada<get var="contador"/></map></set></think>
  27.                 <loop/>
  28.             </li>
  29.             </condition>
  30.             La serie <get var="serie"/> tiene <get var="total"/> capitulos totales
  31.     </template>
  32.     </category>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement