Advertisement
Guest User

picard script

a guest
Aug 31st, 2018
1,628
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.45 KB | None | 0 0
  1. $set(_startswithdate,
  2. $if(
  3. $rsearch(%album%,\(\\A\\d{4}\(-\\d{2}\){0\,2}: \)),
  4. 1,
  5. )
  6. )
  7.  
  8. $set(_livestartswithdate,
  9. $if(
  10. $and(
  11. %_startswithdate%,
  12. $rsearch(%releasetype%,live)
  13. ),
  14. 1,
  15. )
  16. )
  17.  
  18. $set(_broadcaststartswithdate,
  19. $if(
  20. $and(
  21. %_startswithdate%,
  22. $inmulti(%releasetype%,broadcast)
  23. ),
  24. 1,
  25. )
  26. )
  27.  
  28. $if($not(%_placed%),
  29. $if($inmulti(%releasetype%,audiobook),
  30. $set(_placed,1)
  31. Audiobooks/
  32. )
  33. )
  34. $if($not(%_placed%),
  35. albums by artist/
  36. )
  37. $if(
  38. $eq($left($if2(%albumartist%,%artist%),4),The ),
  39. $right($if2(%albumartist%,%artist%), $sub($len($if2(%albumartist%,%artist%)),4))\, The,
  40. $if2(%albumartist%,%artist%)
  41. )
  42. $if(
  43. %artist_disambig%,
  44. \(%artist_disambig%\),
  45. )/
  46.  
  47. $if($not(%_placed%),
  48. $if($eq(%releasestatus%,bootleg),
  49. $if($inmulti(%releasetype%,live),
  50. $set(_placed,1)
  51. Live Bootlegs/,
  52. $if($inmulti(%releasetype%,demo),
  53. $set(_placed,1)
  54. Bootleg Demos/,
  55. Bootlegs/
  56. )
  57. )
  58. )
  59. )
  60. $if($eq(%releasestatus%,promotion),
  61. Promotional/
  62. )
  63.  
  64. $if($not(%_placed%),
  65. $if(
  66. $and(
  67. $not(%_primaryreleasetype%),
  68. $not($eq(%album%,[non-album tracks]))
  69. ),
  70. $set(_placed,1)
  71. Unspecified/
  72. )
  73. )
  74. $if($not(%_placed%),
  75. $if($inmulti(%releasetype%,interview),
  76. $set(_placed,1)
  77. Interviews/
  78. )
  79. )
  80. $if($not(%_placed%),
  81. $if($inmulti(%releasetype%,spokenword),
  82. $set(_placed,1)
  83. Spokenword/
  84. )
  85. )
  86. $if($not(%_placed%),
  87. $if($inmulti(%releasetype%,demo),
  88. $if($inmulti(%releasetype%,single),
  89. $set(_placed,1)
  90. Demo Singles/,
  91. $if($inmulti(%releasetype%,ep),
  92. $set(_placed,1)
  93. Demo EPs/,
  94. $set(_placed,1)
  95. Demos/
  96. )
  97. )
  98. )
  99. )
  100. $if($not(%_placed%),
  101. $if($inmulti(%releasetype%,dj-mix),
  102. $set(_placed,1)
  103. DJ-Mixes/
  104. )
  105. )
  106. $if($not(%_placed%),
  107. $if($inmulti(%releasetype%,mixtape/street),
  108. $set(_placed,1)
  109. Mixtapes/
  110. )
  111. )
  112. $if($not(%_placed%),
  113. $if($inmulti(%releasetype%,remix),
  114. $set(_placed,1)
  115. Remixes/
  116. )
  117. )
  118. $if($not(%_placed%),
  119. $if($inmulti(%releasetype%,soundtrack),
  120. $set(_placed,1)
  121. Soundtracks/
  122. )
  123. )
  124. $if($not(%_placed%),
  125. $if($inmulti(%releasetype%,broadcast),
  126. $set(_placed,1)
  127. Broadcasts/
  128. )
  129. )
  130. $if($not(%_placed%),
  131. $if($inmulti(%releasetype%,other),
  132. $set(_placed,1)
  133. Other/
  134. )
  135. )
  136. $if($not(%_placed%),
  137. $if($inmulti(%releasetype%,single),
  138. $set(_placed,1)
  139. Singles/
  140. )
  141. )
  142. $if($not(%_placed%),
  143. $if(
  144. $and(
  145. $inmulti(%releasetype%,live),
  146. $inmulti(%releasetype%,album)
  147. ),
  148. $set(_placed,1)
  149. Live Albums/
  150. )
  151. )
  152. $if($not(%_placed%),
  153. $if(
  154. $and(
  155. $inmulti(%releasetype%,live),
  156. $inmulti(%releasetype%,ep)
  157. ),
  158. $set(_placed,1)
  159. Live EPs/
  160. )
  161. )
  162. $if($not(%_placed%),
  163. $if(
  164. $and(
  165. $inmulti(%releasetype%,compilation),
  166. $ne(%albumartist%,Various Artists)
  167. ),
  168. $set(_placed,1)
  169. Compilations/
  170. )
  171. )
  172. $if($not(%_placed%),
  173. $if($inmulti(%releasetype%,ep),
  174. $set(_placed,1)
  175. EPs/
  176. )
  177. )
  178. $if(
  179. $not(
  180. $or(%_livestartswithdate%,%_broadcaststartswithdate%)
  181. ),
  182. %originaldate% ,
  183. )
  184. %album%
  185. $if(
  186. %disambig%,
  187. \(%disambig%\),
  188. $if(
  189. %_releasecomment%,
  190. \(%_releasecomment%\),
  191. )
  192. )/
  193. $if(
  194. $gt(%totaldiscs%,1),
  195. Disc %discnumber%
  196. $if(
  197. %discsubtitle%,
  198. : %discsubtitle%,
  199. )/,
  200. )
  201. $if(
  202. $gt(%totaltracks%,99),
  203. $num(%tracknumber%,3) ,
  204. $num(%tracknumber%,2)
  205. )
  206. $if(
  207. $ne(%albumartist%,%artist%),
  208. %artist% - ,
  209. )
  210. $if(
  211. $and(
  212. %_recordingcomment%,
  213. $eq(%album%,[non-album tracks])
  214. ),
  215. %title% \(%_recordingcomment%\),
  216. %title%
  217. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement