Advertisement
mcfang

xbmc videos 76

Oct 20th, 2013
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 12.30 KB | None | 0 0
  1. ALTER VIEW `MyVideos76`.`files` AS
  2. SELECT idFile, idPath, strFilename, playCount0 AS playCount, lastPlayed0 AS lastPlayed, dateAdded FROM `MyVideos76`.`globalfiles`;
  3. ALTER VIEW `User1Videos76`.`files` AS
  4. SELECT idFile, idPath, strFilename, playCount1 AS playCount, lastPlayed1 AS lastPlayed, dateAdded FROM `MyVideos76`.`globalfiles`;
  5. ALTER VIEW `User1Videos76`.`actorlinkepisode` AS
  6. SELECT * FROM `MyVideos76`.`actorlinkepisode`;
  7. ALTER VIEW `User1Videos76`.`actorlinkmovie` AS
  8. SELECT * FROM `MyVideos76`.`actorlinkmovie`;
  9. ALTER VIEW `User1Videos76`.`actorlinktvshow` AS
  10. SELECT * FROM `MyVideos76`.`actorlinktvshow`;
  11. ALTER VIEW `User1Videos76`.`actors` AS
  12. SELECT * FROM `MyVideos76`.`actors`;
  13. ALTER VIEW `User1Videos76`.`art` AS
  14. SELECT * FROM `MyVideos76`.`art`;
  15. ALTER VIEW `User1Videos76`.`artistlinkmusicvideo` AS
  16. SELECT * FROM `MyVideos76`.`artistlinkmusicvideo`;
  17. ALTER VIEW `User1Videos76`.`country` AS
  18. SELECT * FROM `MyVideos76`.`country`;
  19. ALTER VIEW `User1Videos76`.`countrylinkmovie` AS
  20. SELECT * FROM `MyVideos76`.`countrylinkmovie`;
  21. ALTER VIEW `User1Videos76`.`directorlinkepisode` AS
  22. SELECT * FROM `MyVideos76`.`directorlinkepisode`;
  23. ALTER VIEW `User1Videos76`.`directorlinkmovie` AS
  24. SELECT * FROM `MyVideos76`.`directorlinkmovie`;
  25. ALTER VIEW `User1Videos76`.`directorlinkmusicvideo` AS
  26. SELECT * FROM `MyVideos76`.`directorlinkmusicvideo`;
  27. ALTER VIEW `User1Videos76`.`directorlinktvshow` AS
  28. SELECT * FROM `MyVideos76`.`directorlinktvshow`;
  29. ALTER VIEW `User1Videos76`.`episode` AS
  30. SELECT * FROM `MyVideos76`.`episode`;
  31. ALTER VIEW `User1Videos76`.`genre` AS
  32. SELECT * FROM `MyVideos76`.`genre`;
  33. ALTER VIEW `User1Videos76`.`genrelinkmovie` AS
  34. SELECT * FROM `MyVideos76`.`genrelinkmovie`;
  35. ALTER VIEW `User1Videos76`.`genrelinkmusicvideo` AS
  36. SELECT * FROM `MyVideos76`.`genrelinkmusicvideo`;
  37. ALTER VIEW `User1Videos76`.`genrelinktvshow` AS
  38. SELECT * FROM `MyVideos76`.`genrelinktvshow`;
  39. ALTER VIEW `User1Videos76`.`movie` AS
  40. SELECT * FROM `MyVideos76`.`movie`;
  41. ALTER VIEW `User1Videos76`.`movielinktvshow` AS
  42. SELECT * FROM `MyVideos76`.`movielinktvshow`;
  43. ALTER VIEW `User1Videos76`.`musicvideo` AS
  44. SELECT * FROM `MyVideos76`.`musicvideo`;
  45. ALTER VIEW `User1Videos76`.`path` AS
  46. SELECT * FROM `MyVideos76`.`path`;
  47. ALTER VIEW `User1Videos76`.`seasons` AS
  48. SELECT * FROM `MyVideos76`.`seasons`;
  49. ALTER VIEW `User1Videos76`.`sets` AS
  50. SELECT * FROM `MyVideos76`.`sets`;
  51. ALTER VIEW `User1Videos76`.`settings` AS
  52. SELECT * FROM `MyVideos76`.`settings`;
  53. ALTER VIEW `User1Videos76`.`stacktimes` AS
  54. SELECT * FROM `MyVideos76`.`stacktimes`;
  55. ALTER VIEW `User1Videos76`.`streamdetails` AS
  56. SELECT * FROM `MyVideos76`.`streamdetails`;
  57. ALTER VIEW `User1Videos76`.`studio` AS
  58. SELECT * FROM `MyVideos76`.`studio`;
  59. ALTER VIEW `User1Videos76`.`studiolinkmovie` AS
  60. SELECT * FROM `MyVideos76`.`studiolinkmovie`;
  61. ALTER VIEW `User1Videos76`.`studiolinkmusicvideo` AS
  62. SELECT * FROM `MyVideos76`.`studiolinkmusicvideo`;
  63. ALTER VIEW `User1Videos76`.`studiolinktvshow` AS
  64. SELECT * FROM `MyVideos76`.`studiolinktvshow`;
  65. ALTER VIEW `User1Videos76`.`tag` AS
  66. SELECT * FROM `MyVideos76`.`tag`;
  67. ALTER VIEW `User1Videos76`.`taglinks` AS
  68. SELECT * FROM `MyVideos76`.`taglinks`;
  69. ALTER VIEW `User1Videos76`.`tvshow` AS
  70. SELECT * FROM `MyVideos76`.`tvshow`;
  71. ALTER VIEW `User1Videos76`.`tvshowlinkpath` AS
  72. SELECT * FROM `MyVideos76`.`tvshowlinkpath`;
  73. ALTER VIEW `User1Videos76`.`version` AS
  74. SELECT * FROM `MyVideos76`.`version`;
  75. ALTER VIEW `User1Videos76`.`writerlinkepisode` AS
  76. SELECT * FROM `MyVideos76`.`writerlinkepisode`;
  77. ALTER VIEW `User1Videos76`.`writerlinkmovie` AS
  78. SELECT * FROM `MyVideos76`.`writerlinkmovie`;
  79.  
  80. ALTER VIEW `User1Videos76`.`movieview` AS select
  81. `User1Videos76`.`movie`.`idMovie` AS `idMovie`,
  82. `User1Videos76`.`movie`.`idFile` AS `idFile`,
  83. `User1Videos76`.`movie`.`c00` AS `c00`,
  84. `User1Videos76`.`movie`.`c01` AS `c01`,
  85. `User1Videos76`.`movie`.`c02` AS `c02`,
  86. `User1Videos76`.`movie`.`c03` AS `c03`,
  87. `User1Videos76`.`movie`.`c04` AS `c04`,
  88. `User1Videos76`.`movie`.`c05` AS `c05`,
  89. `User1Videos76`.`movie`.`c06` AS `c06`,
  90. `User1Videos76`.`movie`.`c07` AS `c07`,
  91. `User1Videos76`.`movie`.`c08` AS `c08`,
  92. `User1Videos76`.`movie`.`c09` AS `c09`,
  93. `User1Videos76`.`movie`.`c10` AS `c10`,
  94. `User1Videos76`.`movie`.`c11` AS `c11`,
  95. `User1Videos76`.`movie`.`c12` AS `c12`,
  96. `User1Videos76`.`movie`.`c13` AS `c13`,
  97. `User1Videos76`.`movie`.`c14` AS `c14`,
  98. `User1Videos76`.`movie`.`c15` AS `c15`,
  99. `User1Videos76`.`movie`.`c16` AS `c16`,
  100. `User1Videos76`.`movie`.`c17` AS `c17`,
  101. `User1Videos76`.`movie`.`c18` AS `c18`,
  102. `User1Videos76`.`movie`.`c19` AS `c19`,
  103. `User1Videos76`.`movie`.`c20` AS `c20`,
  104. `User1Videos76`.`movie`.`c21` AS `c21`,
  105. `User1Videos76`.`movie`.`c22` AS `c22`,
  106. `User1Videos76`.`movie`.`c23` AS `c23`,
  107. `User1Videos76`.`movie`.`idSet` AS `idSet`,
  108. `User1Videos76`.`sets`.`strSet` AS `strSet`,
  109. `User1Videos76`.`files`.`strFilename` AS `strFileName`,
  110. `User1Videos76`.`path`.`strPath` AS `strPath`,
  111. `User1Videos76`.`files`.`playCount` AS `playCount`,
  112. `User1Videos76`.`files`.`lastPlayed` AS `lastPlayed`,
  113. `User1Videos76`.`files`.`dateAdded` AS `dateAdded`,
  114. `User1Videos76`.`bookmark`.`timeInSeconds` AS `resumeTimeInSeconds`,
  115. `User1Videos76`.`bookmark`.`totalTimeInSeconds` AS `totalTimeInSeconds`
  116. from ((`User1Videos76`.`movie` left join `User1Videos76`.`sets` on((`User1Videos76`.`sets`.`idSet` = `User1Videos76`.`movie`.`idSet`)) join `User1Videos76`.`files` on((`User1Videos76`.`files`.`idFile` = `User1Videos76`.`movie`.`idFile`))) join `User1Videos76`.`path` on((`User1Videos76`.`path`.`idPath` = `User1Videos76`.`files`.`idPath`))left join `User1Videos76`.`bookmark` on((`User1Videos76`.`bookmark`.`idFile` = `User1Videos76`.`movie`.`idFile` AND `User1Videos76`.`bookmark`.`type` = 1)));
  117.  
  118. ALTER VIEW `User1Videos76`.`musicvideoview` AS select
  119. `User1Videos76`.`musicvideo`.`idMVideo` AS `idMVideo`,
  120. `User1Videos76`.`musicvideo`.`idFile` AS `idFile`,
  121. `User1Videos76`.`musicvideo`.`c00` AS `c00`,
  122. `User1Videos76`.`musicvideo`.`c01` AS `c01`,
  123. `User1Videos76`.`musicvideo`.`c02` AS `c02`,
  124. `User1Videos76`.`musicvideo`.`c03` AS `c03`,
  125. `User1Videos76`.`musicvideo`.`c04` AS `c04`,
  126. `User1Videos76`.`musicvideo`.`c05` AS `c05`,
  127. `User1Videos76`.`musicvideo`.`c06` AS `c06`,
  128. `User1Videos76`.`musicvideo`.`c07` AS `c07`,
  129. `User1Videos76`.`musicvideo`.`c08` AS `c08`,
  130. `User1Videos76`.`musicvideo`.`c09` AS `c09`,
  131. `User1Videos76`.`musicvideo`.`c10` AS `c10`,
  132. `User1Videos76`.`musicvideo`.`c11` AS `c11`,
  133. `User1Videos76`.`musicvideo`.`c12` AS `c12`,
  134. `User1Videos76`.`musicvideo`.`c13` AS `c13`,
  135. `User1Videos76`.`musicvideo`.`c14` AS `c14`,
  136. `User1Videos76`.`musicvideo`.`c15` AS `c15`,
  137. `User1Videos76`.`musicvideo`.`c16` AS `c16`,
  138. `User1Videos76`.`musicvideo`.`c17` AS `c17`,
  139. `User1Videos76`.`musicvideo`.`c18` AS `c18`,
  140. `User1Videos76`.`musicvideo`.`c19` AS `c19`,
  141. `User1Videos76`.`musicvideo`.`c20` AS `c20`,
  142. `User1Videos76`.`musicvideo`.`c21` AS `c21`,
  143. `User1Videos76`.`musicvideo`.`c22` AS `c22`,
  144. `User1Videos76`.`musicvideo`.`c23` AS `c23`,
  145. `User1Videos76`.`files`.`strFilename` AS `strFileName`,
  146. `User1Videos76`.`path`.`strPath` AS `strPath`,
  147. `User1Videos76`.`files`.`playCount` AS `playCount`,
  148. `User1Videos76`.`files`.`lastPlayed` AS `lastPlayed`,
  149. `User1Videos76`.`files`.`dateAdded` AS `dateAdded`,
  150. `User1Videos76`.`bookmark`.`timeInSeconds` AS `resumeTimeInSeconds`,
  151. `User1Videos76`.`bookmark`.`totalTimeInSeconds` AS `totalTimeInSeconds`
  152. from ((`User1Videos76`.`musicvideo` join `User1Videos76`.`files` on((`User1Videos76`.`files`.`idFile` = `User1Videos76`.`musicvideo`.`idFile`))) join `User1Videos76`.`path` on((`User1Videos76`.`path`.`idPath` = `User1Videos76`.`files`.`idPath`))left join `User1Videos76`.`bookmark` on((`User1Videos76`.`bookmark`.`idFile` = `User1Videos76`.`musicvideo`.`idFile` AND `User1Videos76`.`bookmark`.`type` = 1)));
  153.  
  154. /* fine to here debug rest episodeview/tvshowview */
  155.  
  156. ALTER VIEW `User1Videos76`.`episodeview` AS select
  157. `User1Videos76`.`episode`.`idEpisode` AS `idEpisode`,
  158. `User1Videos76`.`episode`.`idFile` AS `idFile`,
  159. `User1Videos76`.`episode`.`c00` AS `c00`,
  160. `User1Videos76`.`episode`.`c01` AS `c01`,
  161. `User1Videos76`.`episode`.`c02` AS `c02`,
  162. `User1Videos76`.`episode`.`c03` AS `c03`,
  163. `User1Videos76`.`episode`.`c04` AS `c04`,
  164. `User1Videos76`.`episode`.`c05` AS `c05`,
  165. `User1Videos76`.`episode`.`c06` AS `c06`,
  166. `User1Videos76`.`episode`.`c07` AS `c07`,
  167. `User1Videos76`.`episode`.`c08` AS `c08`,
  168. `User1Videos76`.`episode`.`c09` AS `c09`,
  169. `User1Videos76`.`episode`.`c10` AS `c10`,
  170. `User1Videos76`.`episode`.`c11` AS `c11`,
  171. `User1Videos76`.`episode`.`c12` AS `c12`,
  172. `User1Videos76`.`episode`.`c13` AS `c13`,
  173. `User1Videos76`.`episode`.`c14` AS `c14`,
  174. `User1Videos76`.`episode`.`c15` AS `c15`,
  175. `User1Videos76`.`episode`.`c16` AS `c16`,
  176. `User1Videos76`.`episode`.`c17` AS `c17`,
  177. `User1Videos76`.`episode`.`c18` AS `c18`,
  178. `User1Videos76`.`episode`.`c19` AS `c19`,
  179. `User1Videos76`.`episode`.`c20` AS `c20`,
  180. `User1Videos76`.`episode`.`c21` AS `c21`,
  181. `User1Videos76`.`episode`.`c22` AS `c22`,
  182. `User1Videos76`.`episode`.`c23` AS `c23`,
  183. `User1Videos76`.`episode`.`idShow` AS `idShow`,
  184. `User1Videos76`.`files`.`strFilename` AS `strFileName`,
  185. `User1Videos76`.`path`.`strPath` AS `strPath`,
  186. `User1Videos76`.`files`.`playCount` AS `playCount`,
  187. `User1Videos76`.`files`.`lastPlayed` AS `lastPlayed`,
  188. `User1Videos76`.`files`.`dateAdded` AS `dateAdded`,
  189. `User1Videos76`.`tvshow`.`c00` AS `strTitle`,
  190. `User1Videos76`.`tvshow`.`c14` AS `strStudio`,
  191. `User1Videos76`.`tvshow`.`c05` AS `premiered`,
  192. `User1Videos76`.`tvshow`.`c13` AS `mpaa`,
  193. `User1Videos76`.`tvshow`.`c16` AS `strShowPath`,
  194. `User1Videos76`.`bookmark`.`timeInSeconds` AS `resumeTimeInSeconds`,
  195. `User1Videos76`.`bookmark`.`totalTimeInSeconds` AS `totalTimeInSeconds`,
  196. `User1Videos76`.`seasons`.`idSeason` AS `idSeason`
  197.  from ((`User1Videos76`.`episode` join `User1Videos76`.`files` on((`User1Videos76`.`files`.`idFile` = `User1Videos76`.`episode`.`idFile`))) join `User1Videos76`.`tvshow` on((`User1Videos76`.`tvshow`.`idShow` = `User1Videos76`.`episode`.`idShow`)) left join `User1Videos76`.`seasons` on((`User1Videos76`.`seasons`.`idShow` = `User1Videos76`.`episode`.`idShow` AND `User1Videos76`.`seasons`.`season` = `User1Videos76`.`episode`.`c12`)) join `User1Videos76`.`path` on((`User1Videos76`.`files`.`idPath` = `User1Videos76`.`path`.`idPath`))left join `User1Videos76`.`bookmark` on((`User1Videos76`.`bookmark`.`idFile` = `User1Videos76`.`episode`.`idFile` AND `User1Videos76`.`bookmark`.`type` = 1)) );
  198.  
  199.  
  200. ALTER VIEW `User1Videos76`.`tvshowview` AS select
  201. `User1Videos76`.`tvshow`.`idShow` AS `idShow`,
  202. `User1Videos76`.`tvshow`.`c00` AS `c00`,
  203. `User1Videos76`.`tvshow`.`c01` AS `c01`,
  204. `User1Videos76`.`tvshow`.`c02` AS `c02`,
  205. `User1Videos76`.`tvshow`.`c03` AS `c03`,
  206. `User1Videos76`.`tvshow`.`c04` AS `c04`,
  207. `User1Videos76`.`tvshow`.`c05` AS `c05`,
  208. `User1Videos76`.`tvshow`.`c06` AS `c06`,
  209. `User1Videos76`.`tvshow`.`c07` AS `c07`,
  210. `User1Videos76`.`tvshow`.`c08` AS `c08`,
  211. `User1Videos76`.`tvshow`.`c09` AS `c09`,
  212. `User1Videos76`.`tvshow`.`c10` AS `c10`,
  213. `User1Videos76`.`tvshow`.`c11` AS `c11`,
  214. `User1Videos76`.`tvshow`.`c12` AS `c12`,
  215. `User1Videos76`.`tvshow`.`c13` AS `c13`,
  216. `User1Videos76`.`tvshow`.`c14` AS `c14`,
  217. `User1Videos76`.`tvshow`.`c15` AS `c15`,
  218. `User1Videos76`.`tvshow`.`c16` AS `c16`,
  219. `User1Videos76`.`tvshow`.`c17` AS `c17`,
  220. `User1Videos76`.`tvshow`.`c18` AS `c18`,
  221. `User1Videos76`.`tvshow`.`c19` AS `c19`,
  222. `User1Videos76`.`tvshow`.`c20` AS `c20`,
  223. `User1Videos76`.`tvshow`.`c21` AS `c21`,
  224. `User1Videos76`.`tvshow`.`c22` AS `c22`,
  225. `User1Videos76`.`tvshow`.`c23` AS `c23`,
  226. `User1Videos76`.`path`.`strPath` AS `strPath`,
  227. `User1Videos76`.`path`.`dateAdded` AS `dateAdded`,
  228. MAX(`User1Videos76`.`files`.`lastPlayed`) AS `lastPlayed`,
  229. nullif(count(`User1Videos76`.`episode`.`c12`),0) AS `totalCount`,
  230. count(`User1Videos76`.`files`.`playCount`) AS `watchedcount`,
  231. nullif(count(distinct `User1Videos76`.`episode`.`c12`),0) AS `totalSeasons`
  232. from (((`User1Videos76`.`tvshow` left join `User1Videos76`.`tvshowlinkpath` on((`User1Videos76`.`tvshowlinkpath`.`idShow` = `User1Videos76`.`tvshow`.`idShow`))) left join `User1Videos76`.`path` on((`User1Videos76`.`path`.`idPath` = `User1Videos76`.`tvshowlinkpath`.`idPath`))) left join `User1Videos76`.`episode` on((`User1Videos76`.`episode`.`idShow` = `User1Videos76`.`tvshow`.`idShow`)) left join `User1Videos76`.`files` on((`User1Videos76`.`files`.`idFile` = `User1Videos76`.`episode`.`idFile`))) group by `User1Videos76`.`tvshow`.`idShow`;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement