/Assets/scrapers/metadata.themoviedb.org/tmdb.xml

# · XML · 148 lines · 148 code · 0 blank · 0 comment · 0 complexity · 0af177911f3c227c8137b51887bc69f9 MD5 · raw file

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <scraper framework="1.1" date="2012-01-16">
  3. <CreateSearchUrl dest="3">
  4. <RegExp input="$$1" output="&lt;url&gt;http://api.tmdb.org/3/search/movie?api_key=f7f51775877e0bb6703520952b3c7840&amp;amp;query=\1&amp;amp;year=$$4&amp;amp;language=$INFO[language]&lt;/url&gt;" dest="3">
  5. <RegExp input="$$2" output="\1" dest="4">
  6. <expression clear="yes">(.+)</expression>
  7. </RegExp>
  8. <expression noclean="1" />
  9. </RegExp>
  10. </CreateSearchUrl>
  11. <NfoUrl dest="3">
  12. <RegExp input="$$1" output="&lt;details&gt;&lt;url&gt;http://api.tmdb.org/3/movie/\2?api_key=f7f51775877e0bb6703520952b3c7840&amp;amp;language=$INFO[language]&lt;/url&gt;&lt;id&gt;\2&lt;/id&gt;&lt;/details&gt;" dest="3">
  13. <expression clear="yes" noclean="1">(themoviedb.org/movie/)([0-9]*)</expression>
  14. </RegExp>
  15. <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;tmdb-$INFO[language]-tt\1.json&quot;&gt;http://api.tmdb.org/3/movie/tt\1?api_key=f7f51775877e0bb6703520952b3c7840&amp;amp;language=$INFO[language]&lt;/url&gt;&lt;id&gt;tt\1&lt;/id&gt;&lt;/details&gt;" dest="3">
  16. <expression>imdb....?/title/tt([0-9]+)</expression>
  17. </RegExp>
  18. <RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;tmdb-$INFO[language]-tt\1.json&quot;&gt;http://api.tmdb.org/3/movie/tt\1?api_key=f7f51775877e0bb6703520952b3c7840&amp;amp;language=$INFO[language]&lt;/url&gt;&lt;id&gt;tt\1&lt;/id&gt;&lt;/details&gt;" dest="3">
  19. <expression>imdb....?/Title\?t{0,2}([0-9]+)</expression>
  20. </RegExp>
  21. </NfoUrl>
  22. <GetSearchResults dest="8">
  23. <RegExp input="$$3" output="&lt;results&gt;\1&lt;/results&gt;" dest="8">
  24. <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\3&lt;/title&gt;&lt;id&gt;\2&lt;/id&gt;&lt;year&gt;\1&lt;/year&gt;&lt;url cache=&quot;tmdb-$INFO[language]-\2.json&quot;&gt;http://api.tmdb.org/3/movie/\2?api_key=f7f51775877e0bb6703520952b3c7840&amp;amp;language=$INFO[language]&lt;/url&gt;&lt;/entity&gt;" dest="3">
  25. <expression repeat="yes">&quot;release_date&quot;:&quot;([0-9]+)-.*?&quot;id&quot;:([0-9]*),&quot;original_title&quot;:&quot;[^&quot;]*&quot;,&quot;original_language&quot;:&quot;[^&quot;]*&quot;,&quot;title&quot;:&quot;([^&quot;]*)&quot;</expression>
  26. </RegExp>
  27. <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\3&lt;/title&gt;&lt;id&gt;\2&lt;/id&gt;&lt;year&gt;\1&lt;/year&gt;&lt;url cache=&quot;tmdb-$INFO[language]-\2.json&quot;&gt;http://api.tmdb.org/3/movie/\2?api_key=f7f51775877e0bb6703520952b3c7840&amp;amp;language=$INFO[language]&lt;/url&gt;&lt;/entity&gt;" dest="3+">
  28. <expression repeat="yes">&quot;release_date&quot;:&quot;([0-9]+)-.*?&quot;id&quot;:([0-9]*),&quot;original_title&quot;:&quot;([^&quot;]*)&quot;,&quot;original_language&quot;:&quot;[^&quot;]*&quot;</expression>
  29. </RegExp>
  30. <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;id&gt;\1&lt;/id&gt;&lt;url cache=&quot;tmdb-$INFO[language]-\1.json&quot;&gt;http://api.tmdb.org/3/movie/\1?api_key=f7f51775877e0bb6703520952b3c7840&amp;amp;language=$INFO[language]&lt;/url&gt;&lt;/entity&gt;" dest="3+">
  31. <expression repeat="yes">&quot;release_date&quot;:null.*?&quot;id&quot;:([0-9]*),&quot;original_title&quot;:&quot;([^&quot;]*)&quot;,&quot;original_language&quot;:&quot;[^&quot;]*&quot;</expression>
  32. </RegExp>
  33. <expression noclean="1" />
  34. </RegExp>
  35. </GetSearchResults>
  36. <GetDetails dest="3">
  37. <RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="3">
  38. <RegExp input="$$1" output="&lt;id&gt;\1&lt;/id&gt;" dest="5">
  39. <expression noclean="1">&quot;id&quot;:([0-9]*),&quot;imdb</expression>
  40. </RegExp>
  41. <RegExp input="$$1" output="&lt;id&gt;\1&lt;/id&gt;" dest="5+">
  42. <expression clear="yes" noclean="1">&quot;id&quot;:[0-9]*,&quot;imdb_id&quot;:&quot;([^&quot;]*)</expression>
  43. </RegExp>
  44. <RegExp input="$$1" output="\1" dest="9">
  45. <expression fixchars="1">&quot;original_title&quot;:&quot;([^&quot;]*)</expression>
  46. </RegExp>
  47. <RegExp conditional="keeporiginaltitle" input="$$9" output="&lt;title&gt;\1&lt;/title&gt;" dest="5+">
  48. <expression/>
  49. </RegExp>
  50. <RegExp conditional="!keeporiginaltitle" input="$$2" output="&lt;chain function=&quot;GetTMDBTitleByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
  51. <expression />
  52. </RegExp>
  53. <RegExp input="$$9" output="&lt;originaltitle&gt;\1&lt;/originaltitle&gt;" dest="5+">
  54. <expression/>
  55. </RegExp>
  56. <RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="5+">
  57. <expression noclean="1">&quot;release_date&quot;:&quot;([0-9]+)-</expression>
  58. </RegExp>
  59. <RegExp input="$$1" output="\1" dest="10">
  60. <expression clear="yes" noclean="1">&quot;runtime&quot;:([0-9]+)</expression>
  61. </RegExp>
  62. <RegExp input="$$10" output="&lt;url function=&quot;ParseFallbackTMDBRuntime&quot; cache=&quot;tmdb-en-$$2.json&quot;&gt;http://api.tmdb.org/3/movie/$$2?api_key=f7f51775877e0bb6703520952b3c7840&amp;amp;language=en&lt;/url&gt;" dest="5+">
  63. <expression>^$</expression>
  64. </RegExp>
  65. <RegExp input="$$10" output="&lt;runtime&gt;\1&lt;/runtime&gt;" dest="5+">
  66. <expression>(.+)</expression>
  67. </RegExp>
  68. <RegExp input="$INFO[RatingS]" output="&lt;chain function=&quot;GetIMDBRatingById&quot;&gt;$$6&lt;/chain&gt;" dest="5+">
  69. <RegExp input="$$1" output="\1" dest="6">
  70. <expression noclean="1">&quot;id&quot;:[0-9]*,&quot;imdb_id&quot;:&quot;([^&quot;]*)</expression>
  71. </RegExp>
  72. <expression>IMDb</expression>
  73. </RegExp>
  74. <RegExp input="$INFO[RatingS]" output="&lt;chain function=&quot;GetTMDBRatingByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
  75. <expression>TMDb</expression>
  76. </RegExp>
  77. <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBStudioByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
  78. <expression />
  79. </RegExp>
  80. <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBCountryByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
  81. <expression />
  82. </RegExp>
  83. <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBDirectorsByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
  84. <expression />
  85. </RegExp>
  86. <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBWitersByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
  87. <expression />
  88. </RegExp>
  89. <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBCertificationsByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
  90. <expression />
  91. </RegExp>
  92. <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBSetByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
  93. <expression />
  94. </RegExp>
  95. <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBSetIdByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
  96. <expression />
  97. </RegExp>
  98. <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBPlotByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
  99. <expression />
  100. </RegExp>
  101. <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBTaglineByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
  102. <expression />
  103. </RegExp>
  104. <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBCastByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
  105. <expression />
  106. </RegExp>
  107. <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBGenresByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
  108. <expression />
  109. </RegExp>
  110. <RegExp input="$$2" output="&lt;chain function=&quot;GetTMDBThumbsByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
  111. <expression />
  112. </RegExp>
  113. <RegExp conditional="fanart" input="$$2" output="&lt;chain function=&quot;GetTMDBFanartByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
  114. <expression />
  115. </RegExp>
  116. <RegExp conditional="trailer" input="$$2" output="&lt;chain function=&quot;GetTMDBTrailerByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
  117. <expression />
  118. </RegExp>
  119. <RegExp input="$INFO[TrailerQ]" output="&lt;chain function=&quot;GetHDTrailersnet480p&quot;&gt;$$6&lt;/chain&gt;" dest="5+">
  120. <RegExp input="$$1" output="\1" dest="6">
  121. <expression clear="yes" noclean="1">&quot;original_title&quot;:&quot;([^&quot;]*)</expression>
  122. </RegExp>
  123. <expression>480p</expression>
  124. </RegExp>
  125. <RegExp input="$INFO[TrailerQ]" output="&lt;chain function=&quot;GetHDTrailersnet720p&quot;&gt;$$6&lt;/chain&gt;" dest="5+">
  126. <RegExp input="$$1" output="\1" dest="6">
  127. <expression clear="yes" noclean="1">&quot;original_title&quot;:&quot;([^&quot;]*)</expression>
  128. </RegExp>
  129. <expression>720p</expression>
  130. </RegExp>
  131. <RegExp input="$INFO[TrailerQ]" output="&lt;chain function=&quot;GetHDTrailersnet1080p&quot;&gt;$$6&lt;/chain&gt;" dest="5+">
  132. <RegExp input="$$1" output="\1" dest="6">
  133. <expression clear="yes" noclean="1">&quot;original_title&quot;:&quot;([^&quot;]*)</expression>
  134. </RegExp>
  135. <expression>1080p</expression>
  136. </RegExp>
  137. <expression noclean="1" />
  138. </RegExp>
  139. </GetDetails>
  140. <ParseFallbackTMDBRuntime dest="5">
  141. <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
  142. <RegExp input="$$1" output="&lt;runtime&gt;\1&lt;/runtime&gt;" dest="2">
  143. <expression noclean="1">&quot;runtime&quot;:([0-9]+)</expression>
  144. </RegExp>
  145. <expression noclean="1" />
  146. </RegExp>
  147. </ParseFallbackTMDBRuntime>
  148. </scraper>