Advertisement
Guest User

Untitled

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