tdiaz

YA-Magic Script Rev. 2.7d 12-Dec, 2020

Dec 12th, 2020
631
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 32.78 KB | None | 0 0
  1. $noop(★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★)
  2. $noop(★ MBP YA Magic-Script that does more stuff too. - v2.7d-  amd/17500mph ★)
  3. $noop(★                                                                                                            ★)
  4. $noop(★ Here is a script for music renaming in MusicBrainz Picard            ★)
  5. $noop(★                                                                                                            ★)
  6. $noop(★ Note: Destination Director Setting                                   ★)
  7. $noop(★       /Volumes/3TB/Licorice Pizza                                    ★)
  8. $noop(★                                                                                                            ★)
  9. $noop(★ Features :                                                           ★)
  10. $noop(★                                                                      ★)
  11. $noop(★   Individualy Selectable Root Directory Organization Options:        ★)
  12. $noop(★                                                                                                            ★)
  13. $noop(★ • Directories by [A]rtist Name / [N]ame, Artist or last.fm** category★)
  14. $noop(★ • subDirectory for each main type [Album/Single/EP...]               ★)
  15. $noop(★ • Separate Root directory for compilations [!various]                ★)
  16. $noop(★ • Single Artist Compilations go in Artist Directory                  ★)
  17. $noop(★ • Root directory Audio Books, Podcasts, Others                       ★)
  18. $noop(★ • Root directory Genre PreSort                                       ★)
  19. $noop(★                                                                                                            ★)
  20. $noop(★  ~/MusicRoot/[O]/Oingo Boingo/[Artist Compilations]/                 ★)
  21. $noop(★  ~/MusicRoot/Compilations/K-Tel Hits of the 1980s Vol. 1             ★)
  22. $noop(★  ~/MusicRoot/Audio Books/Ready Player One                            ★)
  23. $noop(★  ~/MusicRoot/Podcasts/Mad Mad Music #29                              ★)
  24. $noop(★                                                                                                            ★)
  25. $noop(★ - Alphabetize artist without leading "The"                           ★)
  26. $noop(★ - Show Album Release Status on Album Directory                       ★)
  27. $noop(★ - Show Record Label on Directory Name Directory                      ★)
  28. $noop(★ - Show Catalogue Number in Album Directory Name                      ★)
  29. $noop(★ - Show Track Duration in Filename                                    ★)
  30. $noop(★ - Filtered character for files & directory naming                    ★)
  31. $noop(★ - Include media type in directory name [when its not CD]             ★)
  32. $noop(★ - Multi-Disc SubDirectory per Disc in Album Directory                ★)
  33. $noop(★ - Custom directory tag for multi-disc CD/Vinyl [CD1/Disc1 by default]★)
  34. $noop(★ - Put multi-CD release in same directory [names become 101/102/201..]★)
  35. $noop(★ - Vinyl can use musicbrainz style for track [A1/A2/B1...]            ★)
  36. $noop(★ - File Type SubDirectory in Album Directory                          ★)
  37. $noop(★                                                                                                            ★)
  38. $noop(★ - For Sort Directory Overrides: titlesort, artistsort, albumsort     ★)
  39. $noop(★                                                                                                            ★)
  40. $noop(★ ** Optional Plugin Needed for Last.fm [for category trending]        ★)
  41. $noop(★   -> https://github.com/fdemmer/Picard-Last.fm.ng-Plugin             ★)
  42. $noop(★                                                                                                            ★)
  43. $noop(★ - 'For Sort Only'                                                    ★)
  44. $noop(★   Do not format filename, optional limited [0m00s] [128 CBR]         ★)
  45. $noop(★                                                                                                            ★)
  46. $noop(★ - DevMode:                                                           ★)
  47. $noop(★   Allows better simulation control of variables for debugging        ★)
  48. $noop(★                                                                                                            ★)
  49. $noop(★ Do Not Taunt The Happy Tagging Ball                                  ★)
  50. $noop(★                                                                                                            ★)
  51. $noop(★----------------------------------------------------------------------★)
  52. $noop(★   Based on the MBP Magic Script  By Ski-lleR                         ★)
  53. $noop(★   Thanks to avibrazil for his filter                                 ★)
  54. $noop(★ > https://github.com/avibrazil/picard-scripting                      ★)
  55. $noop(★----------------------------------------------------------------------★)
  56. $noop(★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★)
  57. $noop(★ INSERT COIN ★)
  58.  
  59. $noop(Configuration Section - 0-Disable / 1-Enable)
  60.  
  61. $noop(★ For Development Only -  ★)
  62. $noop(★ Variable Settings in Subsections      - ★)
  63. $noop(★  - Audio Metrics Only at this Time    - ★)
  64. $noop(★ This should be 0 for proper function! - ★)
  65. $set(_devMode,0)
  66.  
  67. $noop(★ For Sort Only. No Filename Formatting - ★)
  68. $noop(★   Usually for When Saving from Left   - ★)
  69. $noop(★   It's RARE that you would want this  - ★)
  70. $noop(★   Usually for When Saving from Left   - ★)
  71. $set(_quickNoNameFormat,0)
  72.  
  73.  
  74. $noop(★ GLOBAL SETTINGS - Things you're likely to want to configure ★)
  75.  
  76. $noop(  /Licorice Pizza/B/B-52s, The/EP/Wild Planet∶ 2007 Remix EP [CD] [2007] [Promotion] [Planet Clique] [SSMCD005] )
  77. $noop(  /Licorice Pizza/B/B-52s, The/EP/Wild Planet∶ 2007 Remix EP [CD] [_showDate] [_showReleaseStatus] [_showRecordLabel] [_showCatalogueNumber] )
  78. $noop(Configuration Section - 0-Disable / 1-Enable)
  79. $set(_showRecordLabel,1)
  80. $set(_showDate,1)
  81. $set(_showReleaseStatus,1)
  82. $set(_showCatalogueNumber,1)
  83.  
  84. $noop(★ Values Included before File Ext. ★)
  85. $noop(  01. Quiche Lorraine [S-Express remix][5∶54][320 44100KHz CBR 2ch].m4a  )
  86. $noop(  01. Quiche Lorraine [S-Express remix][_showTime][_showBandwidth].m4a   )
  87. $if($eq(%_quickNoNameFormat%,1),$set(_showTime,0),$set(_showTime,1))
  88. $if($eq(%_quickNoNameFormat%,1),$set(_showBandwidth,0),$set(_showBandwidth,1))
  89.  
  90.  
  91. $noop(★ Sort orderTypeForRoot                      ★)
  92. $noop(★ ~/Music/Last.fm Genre/A/Artist/AlbumTitle/ ★)
  93. $noop(★  1: Category [Last.fm.ng]   ★)
  94. $noop(★ ~/Music/A/Artist/AlbumTitle/★)
  95. $noop(★  2: Artist first letter     ★)
  96. $set(_orderTypeForRoot,2)
  97.  
  98. $noop(★ Sort orderTypeForArtist                ★)
  99. $noop(★  1: First letter of first name         ★)
  100. $noop(★ ~/Music/M/Music Artist/AlbumTitle/     ★)
  101. $noop(★  2: First letter of last name          ★)
  102. $noop(★ ~/Music/A/Artist, Music/AlbumTitle/    ★)
  103. $noop(★  3: No Sub-Separation by Artist Initial★)
  104. $noop(★ ~/Music/Artist, Music/AlbumTitle/      ★)
  105. $set(_orderTypeForArtist,2)
  106.  
  107. $noop(★ How to designate Complete Albums that contain multiples/extras of at least 1 Track      ★)
  108. $noop(★ 1  They are Sorted as Complete. will show silver starred but not Gold icon on the Right ★)
  109. $noop(★ 0, They are Sorted as InComplete ★)
  110.  
  111. $set(_extraTrackHandling,1)
  112.  
  113. $noop(★ 1  Earlier in the Sort Artist Diversion?    ★)
  114. $set(_earlierLevelArtistSeparation,0)
  115. $noop(★ 0  Earlier in the Sort Incomplete Diversion?★)
  116. $set(_earlierPresortForIncompletes,1)
  117.  
  118. $noop(★ Do you want separation by type / extension at the Root Level?★)
  119. $noop(★ ~/Music/MP3/AlbumTitle/ - ~/Music/FLAC/AlbumTitle/ - ~/Music/M4A/AlbumTitle/ - ~/Music/WNA/AlbumTitle/ ★)
  120. $set(_rootLevelTypeSeparation,0)  
  121.  
  122. $noop(★ Do you want separatation by type / extension at the Album Level?                                      ★)
  123. $noop(★ ~/Music/AlbumTitle/MP3/ - ~/Music/AlbumTitle/FLAC/ - ~/Music/AlbumTitle/M4A - ~/Music/AlbumTitle/WNA/ ★)
  124. $set(_albumLevelTypeSeparation,1)
  125.  
  126. $noop(★ Enclose Album/Set in Additional Directory - Collection Title • Use %boxsettitle% tag  ★)
  127. $set(_includeBoxSetTitle,1)
  128.  
  129. $noop(★ Do you want the Album Title added before the type / extension after the Album Level?                         ★)
  130. $noop(★ ~/Music/AlbumTitle/AlbumTitle MP3/ - ~/Music/AlbumTitle/AlbumTitle FLAC/ - ~/Music/AlbumTitleAlbumTitle /M4A ★)
  131. $set(_albumNameAtTypeSeparation,1)
  132.  
  133. $noop(★ Root Level Sort Against Select Genre Values. ★)
  134. $noop(★ ~/Music/GenreSubSortDirectory/AlbumTitle/AlbumTitle MP3/Single/ - ~/Music/GenreSubSortDirectory/AlbumTitle/AlbumTitle FLAC/EP/ ★)
  135. $set(_isSubSort,1)
  136.  
  137. $noop(Album Name/EP/Single/Live/Album etc.)
  138. $noop(★ ~/Music/AlbumTitle/AlbumTitle MP3/Single/ - ~/Music/AlbumTitle/AlbumTitle FLAC/EP/ ★)
  139. $set(_separateByTypeInArtistDirectory,1)
  140.  
  141. $noop(★ Do you want Tribute and Cover Albums Placed with Artist being attributed? ★)
  142. $noop(★ ~/Music/AlbumTitle/AlbumTitle MP3/Cover/ - ~/Music/AlbumTitle/AlbumTitle FLAC/Tribute/ ★)
  143. $noop(★ Requires coverTributeSort tag and albumartistsort Tags ★)
  144. $noop(Set a coverTributeSort tag value of “Tribute” or “Cover”.)
  145. $noop(Enter the associated Artist in the AlbumArtistSort as tag.)
  146. $set(_altArtistSort,1)
  147.  
  148. $set(_separateAlbum,0) $noop(Albums in SubDirectory as well)
  149. $noop(★ ~/Music/A/Artist/AlbumTitle, ~/Music/A/Artist/Albums/AlbumTitle ★)
  150.  
  151. $set(_showTrackArtistSeparation,0) $noop(Breakdown by Artist within Album ** Special Case Use / Usually Left Side Compilations)
  152. $noop(★ ~/Music/A/Artist/AlbumTitle/Artist/Track, ~/Music/A/Artist/Albums/AlbumTitle/Artist/Track ★)
  153.  
  154. $set(_compilationsGSubDirectory,Compilations/)
  155. $noop(★ ~/Music/Compilations/  ★)
  156.  
  157. $noop(★ SOUNDTRACK/VARIOUS DIRECTORY ★)
  158. $set(_soundTracksDirectory,Soundtrack/)
  159. $set(_variousArtistsDirectory,Various/)
  160. $set(_audiobooksDirectory,Audiobook/)
  161. $set(_incompleteDirectory,Partial)
  162. $set(_podcastSubDirectory,Podcast/)
  163.  
  164. $noop(★ Multi-Disc ★)
  165.  
  166. $noop(★ ~/Music/A/Artist, Music/AlbumTitle/Disc01/01 - Tracklist ★)
  167. $set(_useSubDiscDirectory,1)
  168.  
  169. $noop(★ ~/Music/A/Artist, Music/AlbumTitle/01 - Tracklist ***SKIP SubDiscDirectory if only one Medium in Realease ★)
  170. $set(_mergeDiscWhenNotUsingSubDirectory,0)
  171.  
  172. $set(_showDiscSubtitle,1)
  173. $set(_nameForTypeCD,Disc∶ ) $noop(Note: Unicode Character ∶ vs ASCII :)
  174. $set(_nameForTypeVinyl,Side)
  175.  
  176. $noop(★ ~/Music/A/Artist, Music/AlbumTitle/A1 ,A2 ,B1, B2 Tracklist - ★)
  177. $set(_useMusicBrainzStyleForVinylTrack,1)
  178.  
  179. $noop(★ Custom Subdirectory Titles at Artist Level ★)
  180. $noop(★ ~/Music/A/Artist, Music/EP/AlbumTitle ~/Music/A/Artist, Music/Live/AlbumTitle ★)
  181.  
  182. $set(_albumSubDirectory,Albums/)
  183. $set(_compilationsASubDirectory,Compilation/)
  184. $set(_coverSubDirectory,Cover/)
  185. $set(_tributeSubDirectory,Tribute/)
  186. $set(_singlesSubDirectory,Singles/)
  187. $set(_liveSubDirectory,Live/)
  188. $set(_epSubDirectory,EP/)
  189. $set(_broadcastSubDirectory,•Broadcast/)
  190. $set(_interviewSubDirectory,Interview/)
  191. $set(_videoSubDirectory,Video/)
  192. $set(_otherSubDirectory,Others/)
  193. $set(_dupesDirectory,• Duplicates/)
  194. $set(_exportDirectory,• Exports/)
  195. $set(_extDirectory,%_extension%/)
  196.  
  197. $noop(★ _subSortXXXX are pretty specific        ★)
  198. $noop(★ breakdowns that require setting a value ★)
  199. $noop(★ with a tag titled    %genresort%        ★)
  200. $noop(★ These can be ignored or reduced, just   ★)
  201. $noop(★ keep at least one for an example incase ★)
  202. $noop(★ You want to sort like this later.       ★)
  203. $noop(★ /LicoricePizza/_subSortXXXX/ ....       ★)
  204.  
  205. $set(_subSortGame,•Arcade/)
  206. $set(_subSortDJBits,•DJBits/)
  207. $set(_subSortClassical,Classical/)
  208. $set(_subSortDemento,Dementia/)
  209. $set(_subSort12Inch,•12 Inch Mix/)
  210. $set(_subSortDisney,Disney/)
  211. $set(_subSortPodcast,Podcast/)
  212. $set(_subSortInterview,•Interview/)
  213. $set(_subSortBroadcast,Broadcast/)
  214. $set(_subSortReserved,•Singles Candidates/)
  215. $set(_subSortPreTag,•No MBID/)
  216. $set(_subSortHoliday,Holiday/)
  217. $set(_subSortCountry,Country/)
  218. $set(_subSortBlues,Blues/)
  219. $set(_subSortJazz,Jazz/)
  220. $set(_subSort2Oct,Spooktacular/)
  221. $set(_subSort2Nov,Fallback/)
  222. $set(_subSort2Dec,Here Comes Santa/)
  223. $set(_subSort2Jan,Wintertime/)
  224. $set(_subSort2Feb,Will You Be My Valentine?/)
  225. $set(_subSort2Mar,Spring is in the Air/)
  226. $set(_subSort2Apr,Foolish/)
  227. $set(_subSort2May,Maybe/)
  228. $set(_subSort2June,SumSumSummertime/)
  229. $set(_subSort2July,Fireworks & Stuff/)
  230. $set(_subSort2Aug,SumSumSummertime/)
  231. $set(_subSort2Sept,SumSumSummertime/)
  232.  
  233. $noop(★ Detect Genre/SubSort Destinations for above values ★)
  234.  
  235. $if($in(%genresort%,Holiday),$set(_subSortDirectory,%_subSortHoliday%))
  236. $if($in(%genresort%,*-*),$set(_subSortDirectory,%_subSortReserved%))
  237. $if($in(%genresort%,***),$set(_subSortDirectory,%_subSortPreTag%))
  238. $if($in(%genresort%,Novelty),$set(_subSortDirectory,%_subSortDemento%))
  239. $if($in(%genresort%,DJ Bits),$set(_subSortDirectory,%_subSortDJBits%))
  240. $if($in(%genresort%,Humo),$set(_subSortDirectory,%_subSortDemento%))
  241. $if($in(%genresort%,Demento),$set(_subSortDirectory,%_subSortDemento%))
  242. $if($in(%genresort%,Comedy),$set(_subSortDirectory,%_subSortDemento%))
  243. $if($in(%genresort%,FuMP),$set(_subSortDirectory,%_subSortDemento%))
  244. $if($in(%genresort%,Game),$set(_subSortDirectory,%_subSortGame%))
  245. $if($in(%genresort%,Disney),$set(_subSortDirectory,%_subSortDisney%))
  246. $if($in(%genresort%,odcast),$set(_subSortDirectory,%_subSortPodcast%))
  247. $if($in(%genresort%,nterview),$set(_subSortDirectory,%_subSortInterview%))
  248. $if($in(%genresort%,roadcast),$set(_subSortDirectory,%_subSortBroadcast%))
  249. $if($in(%genresort%,12 Inch),$set(_subSortDirectory,%_subSort12Inch%))
  250. $if($in(%genresort%,Classical),$set(_subSortDirectory,%_subSortClassical%))
  251. $if($in(%genresort%,Country),$set(_subSortDirectory,%_subSortCountry%))
  252. $if($in(%genresort%,Spook),$set(_subSort2Directory,%_subSort2May%))
  253. $if($in(%genresort%,Fall),$set(_subSort2Directory,%_subSort2Nov%))
  254. $if($in(%genresort%,Summer),$set(_subSort2Directory,%_subSort2June%))
  255. $if($in(%genresort%,Firew),$set(_subSort2Directory,%_subSort2July%))
  256. $if($in(%genresort%,Fool),$set(_subSort2Directory,%_subSort2Apr%))
  257. $if($in(%genresort%,Maybe),$set(_subSort2Directory,%_subSort2May%))
  258. $if($in(%genresort%,Spring),$set(_subSort2Directory,%_subSort2Mar%))
  259. $if($in(%genresort%,Santa),$set(_subSort2Directory,%_subSort2Dec%))
  260. $if($in(%genresort%,Blues),$set(_subSortDirectory,%_subSortBlues%))
  261. $if($in(%genresort%,Jazz),$set(_subSortDirectory,%_subSortJazz%))
  262.  
  263. $noop(####################### Scratch Space ######################)
  264. $noop(★ Unless you're changing appearances, there isn't really anything to do past here ★)
  265. $noop(####################### END SETTINGS #######################)
  266.  
  267.  
  268. $noop(########## DETECT MUSIC TYPE ###############################)
  269.  
  270. $noop(★ Detect Album ★)
  271. $if($in(%releasetype%,album),
  272.   $set(_isAlbum,1)
  273. )
  274. $noop(★ Detect Single ★)
  275. $if($in(%releasetype%,single),
  276.   $set(_isSingle,1)
  277. )
  278. $noop(★ Detect Live ★)
  279. $if($in(%releasetype%,live),
  280.   $set(_isLive,1)
  281. )
  282. $noop(★ Detect EP ★)
  283. $if($in(%releasetype%,ep),
  284.   $set(_isEP,1)
  285. )
  286. $noop(★ Detect Broadcast ★)
  287. $if($in(%releasetype%,broadcast),
  288.   $set(_isBroadcast,1)
  289. )
  290. $noop(★ Detect Interview ★)
  291. $if($in(%releasetype%,interview),
  292.   $set(_isInterview,1)
  293. )
  294. $noop(★ Detect Artist Compilation ★)
  295. $if($in(%releasetype%,compilation),
  296.   $set(_isArtistCompil,1)
  297. )
  298. $noop(★ Detect Audiobook ★)
  299. $if($in(%releasetype%,audiobook),
  300.   $set(_isAudiobook,1)
  301. )
  302. $noop(★ Detect Other ★)
  303. $if($in(%releasetype%,other),
  304.   $set(_isOther,1)
  305. )
  306. $noop(★ Detect Tribute ★)
  307. $if($in(%coverTributeSort%,Tribute),
  308.   $set(_isTribute,1)
  309. )
  310. $noop(★ Detect Cover ★)
  311. $if($in(%coverTributeSort%,Cover),
  312.   $set(_isCover,1)
  313. )
  314. $noop(★ Detect Podcast ★)
  315. $if($in(%genre%,Podcast),
  316.   $set(_isPodcast,1)
  317. )
  318. $noop(★ Detect Soundtrack ★)
  319. $if($in(%releasetype%,soundtrack),
  320.   $set(_isSoundTrack,1)
  321. )
  322. $noop(★ Detect BitRate Split ★)
  323. $if($in(%BitRateSplit%,Yes),
  324.   $set(_addBitRate,1)
  325. )
  326. $noop(★ Detect Incomplete ★)
  327. $if($eq($is_complete(),0),
  328.   $set(_isIncomplete,1)
  329. )
  330. $noop(★ Detect Video ★)
  331. $if($eq($is_video(),0),
  332.   $set(_isVideo,1)
  333. )
  334. $noop(★ Detect Various Artist ★)
  335. $if($eq(%albumartist%,Various Artists),
  336.   $set(_isVarious,1)
  337. )
  338. $noop(★ Re-detect Compilation Type ★)
  339. $if($eq(%compilation%,1),
  340.   $set(_isGlobalCompil,1)
  341. )
  342. $noop(★ Detect Global Compilation ★)
  343. $if($eq(%_isGlobalCompil%,1), $set(_isArtistCompil,0)
  344. )
  345. $noop(★ Get Track Length ★)
  346. $if($eq(%_showTime%,1),
  347.   $set(_trackLength,%_length%)
  348. )
  349. $noop(★ Drop Unused Placeholder Tags ★)
  350. $if($eq(%title%,Title),$delete(title)$delete(titlesort))
  351. $if($eq(%subtitle%,Subtitle),$delete(subtitle))
  352. $if($eq(%discsubtitle%,DiscSubtitle),$delete(discsubtitle))
  353. $if($eq(%artists%,Artist;AdditionalArtists),$delete(artists))
  354. $if($eq(%artistssortorder%,Artist),$delete(artistssortorder))
  355. $if($eq(%album%,Album),$delete(album)$delete(albumsort)$delete(albumartistsort)$delete(albumartist))
  356. $if($eq(%media%,Media),$delete(media))
  357. $if($eq(%label%,Label),$delete(label))
  358. $if($eq(%catalognumber%,Cat#),$delete(catalognumber))
  359.  
  360. $noop(########## Start File Naming Structure Variables ###########)
  361. $noop(sorted by artist place holder)
  362. $noop(•ByBitRate/%bitrate%)
  363. $noop(★ Typography on file naming only ★)
  364. $set(_titleForFilename,$if2(%titlesort%,%title%))
  365. $set(_albumForFilename,$if2(%albumsort%,%album%))
  366.  
  367. $set(_discsubtitleForFilename,%discsubtitle%)
  368. $set(_albumartistForFilename,$if2(%albumartist%,%artist%))
  369. $set(_artistForFilename,%artist%)
  370. $set(_albumartistsortForFilename,$if2(%albumartistsort%,%artistsort%,%artist%))
  371. $set(_artistsortForFilename,$if2(%artistsort%,%artist%))
  372.  
  373. $noop(########## Start TAG Manipulation ##########################)
  374. $noop(★ Organize artist by alphabetical Directories excluding leading The ★)
  375. $set(albumartist,$if($eq($left(%albumartist%,4),The ),%albumartistsort%,%albumartist%))
  376. $noop($set(undersc0riginalFileName,%_filename%))
  377.  
  378. $noop(########## Start TAG Formatting  ###########################)
  379. $noop(★ Typography for tags: changes will affect tags on media - Cosmetic and Display           ★)
  380. $noop(★ These swap certain characters to Unicode vs ASCII for FileSystem Compatibility Issues   ★)
  381. $noop(★ These may -NOT- show correctly on Really Ancient, Legacy and or Simple Players that     ★)
  382. $noop(★ display tag values on a specialized display but are compatible with modern File Systems ★)
  383.  
  384. $noop(★ ... ➡ …  • Ellipsis)
  385. $set(album,$replace(%album%,...,…))
  386. $set(title,$replace(%title%,...,…))
  387. $set(discsubtitle,$replace(%discsubtitle%,...,…))
  388.  
  389. $noop(★ No. ➡ №   • Numero Sign)
  390. $set(album,$replace(%album%, [Nn]o.\\s*\(\\d\), №\\1))
  391. $set(title,$rreplace(%title%, [Nn]o.\\s*\(\\d\), №\\1))
  392. $set(discsubtitle,$replace(%discsubtitle%, [Nn]o.\\s*\(\\d\), №\\1))
  393.  
  394. $noop(★ " ➡ ″  • Double Prime)
  395. $set(discsubtitle,$rreplace(%discsubtitle%,\(\\d\)",\\1''))
  396.  
  397. $noop(★ "12" Vinyl" ➡ "12 Inch Vinyl"  • " for Inch)
  398. $set(media,$rreplace(%media%,\(\\d\)",\\1 Inch))
  399. $set(album,$rreplace(%album%,\(\\d\)",\\1 Inch))
  400. $set(title,$rreplace(%title%,\(\\d\)",\\1 Inch))
  401.  
  402. $noop(★ "something" ➡ “something” Left/Right Double Quotes)
  403. $set(albumartist,$rreplace(%albumartist%,"\(.*?\)",'\\1'))
  404. $set(artist,$rreplace(%artist%,"\(.*?\)",'\\1'))
  405. $set(albumartistsort,$rreplace(%albumartistsort%,"\(.*?\)",'\\1'))
  406. $set(artistsort,$rreplace(%artistsort%,"\(.*?\)",'\\1'))
  407. $set(album,$rreplace(%album%,"\(.*?\)",'\\1'))
  408. $set(title,$rreplace(%title%,"\(.*?\)",'\\1'))
  409. $set(discsubtitle,$rreplace(%discsubtitle%,"\(.*?\)",'\\1'))
  410.  
  411. $noop(★ # ➡ ♯  • Sharp)
  412. $set(_titleForFilename,$replace(%_titleForFilename%,#,♯))
  413. $set(_albumForFilename,$replace(%_albumForFilename%,#,♯))
  414. $set(_discsubtitleForFilename,$replace(%_discsubtitleForFilename%,#,♯))
  415.  
  416. $noop(★ ;: ➡ ∶  • Ratio - In Timecode)
  417. $set(_trackLength,$replace(%_trackLength%,:,∶))
  418. $set(_trackLength,$replace(%_trackLength%,;,∶))
  419.  
  420. $noop(★ : ➡ ∶  • Ratio - In Titles)
  421. $set(_titleForFilename,$replace(%_titleForFilename%,:,∶))
  422. $set(_albumForFilename,$replace(%_albumForFilename%,:,∶))
  423. $set(_discsubtitleForFilename,$replace(%_discsubtitleForFilename%,:,∶))
  424. $set(_artistForFilename,$replace(%_artistForFilename%,:,∶))
  425. $set(_albumartistForFilename,$replace(%_albumartistForFilename%,:,∶))
  426. $set(_artistsortForFilename,$replace(%_artistsortForFilename%,:,∶))
  427. $set(_albumartistsortForFilename,$replace(%_albumartistsortForFilename%,:,∶))
  428.  
  429. $noop(★ ? ➡ ⁇  • Double Question Mark)
  430. $set(_titleForFilename,$replace(%_titleForFilename%,?,⁇))
  431. $set(_albumForFilename,$replace(%_albumForFilename%,?,⁇))
  432. $set(_discsubtitleForFilename,$replace(%_discsubtitleForFilename%,?,⁇))
  433. $set(_artistForFilename,$replace(%_artistForFilename%,?,⁇))
  434. $set(_artistsortForFilename,$replace(%_artistsortForFilename%,?,⁇))
  435.  
  436. $noop(★ | ➡ │  • Halfwidth Form Vertical)
  437. $set(_titleForFilename,$replace(%_titleForFilename%,|,│))
  438. $set(_albumForFilename,$replace(%_albumForFilename%,|,│))
  439. $set(_discsubtitleForFilename,$replace(%_discsubtitleForFilename%,|,│))
  440.  
  441. $noop(★ > ➡ >  • Greater Than)
  442. $set(_titleForFilename,$replace(%_titleForFilename%,>,>))
  443. $set(_albumForFilename,$replace(%_albumForFilename%,>,>))
  444. $set(_discsubtitleForFilename,$replace(%_discsubtitleForFilename%,>,>))
  445.  
  446. $noop(★ < ➡ <  • Less Than)
  447. $set(_titleForFilename,$replace(%_titleForFilename%,<,<))
  448. $set(_albumForFilename,$replace(%_albumForFilename%,<,<))
  449. $set(_discsubtitleForFilename,$replace(%_discsubtitleForFilename%,<,<))
  450.  
  451. $noop(★ * ➡ ✱  • Heavy Asterisk)
  452. $set(_titleForFilename,$replace(%_titleForFilename%,*,✱))
  453. $set(_albumForFilename,$replace(%_albumForFilename%,*,✱))
  454. $set(_discsubtitleForFilename,$replace(%_discsubtitleForFilename%,*,✱))
  455. $set(_artistForFilename,$replace(%_artistForFilename%,*,✱))
  456. $set(_albumartistForFilename,$replace(%_albumartistForFilename%,*,✱))
  457. $set(_artistsortForFilename,$replace(%_artistsortForFilename%,*,✱))
  458. $set(_albumartistsortForFilename,$replace(%_albumartistsortForFilename%,*,✱))
  459.  
  460. $noop(★ & ➡ &  • Ampersand)
  461. $set(_titleForFilename,$replace(%_titleForFilename%,&,&))
  462. $set(_albumForFilename,$replace(%_albumForFilename%,&,&))
  463. $set(_discsubtitleForFilename,$replace(%_discsubtitleForFilename%,&,&))
  464. $set(_artistForFilename,$replace(%_artistForFilename%,&,&))
  465. $set(_albumartistForFilename,$replace(%_albumartistForFilename%,&,&))
  466. $set(_artistsortForFilename,$replace(%_artistsortForFilename%,&,&))
  467. $set(_albumartistsortForFilename,$replace(%_albumartistsortForFilename%,&,&))
  468.  
  469. $noop(★ For Development Only - Variable Settings in Subsections ★)
  470. $noop(★ Where Available - Audio Metrics Only at this Time ★)
  471.  
  472. $noop(########### Audio Metrics Setup  ###########################)
  473. $noop(########### DevMode Values Only ############################)
  474.  
  475. $set(_devMode,0) $noop(Use Standin Data.)
  476.  
  477. $set(_biitrate,71.426)
  478. $set(_saample_rate,44100)
  479. $set(_biits_per_sample,16)
  480. $set(_chaannels,2)
  481. $set(_tiitle,My Great Score)
  482. $noop(########### CONFIRM DevMode is Disabled for Live Use ########)
  483.  
  484. $noop(############## Determine Bit Rate Integer Value #############)
  485.  
  486. $if($eq(%_devMode%,1),FileBit %_biitrate% ---)
  487.  
  488. $if($eq(%_devMode%,1),$set(_intBitRate,$rreplace(%_biitrate%,\\.\\d*\$,)),$set(_intBitRate,$rreplace(%_bitrate%,\\.\\d*\$,)))
  489.  
  490. $if($eq(%_devMode%,1),IntBit %_intBitRate% ---)
  491.  
  492. $if($eq(%_devMode%,1),$set(_bitRateSpeed,%_saample_rate%KHz),$set(_bitRateSpeed,%_sample_rate%KHz))
  493. $if($eq(%_devMode%,1),$set(_bitsPerSample,[%_biits_per_sample%]bit),$set(_bitsPerSample,[%_bits_per_sample%]bit))
  494. $if($eq(%_devMode%,1),$set(_audioChannels,%_chaannels%ch),$set(_audioChannels,%_channels%ch))
  495. $if($eq(%_devMode%,1),$set(_titleForFilename,%_tiitle%),$set(_titleForFilename,%_titleForFilename%))
  496.  
  497. $set(_bitRateType,$if($eq_any(%_intBitRate%,320,256,224,192,160,128,112,96,80,64,48,40,32,24,16,8),CBR$set(_cbrRateValue,%_intBitRate%)$set(_fileCBRRate,%_intBitRate%),VBR$set(_vbrRateValue,%_intBitRate%)))
  498.  
  499. $noop(Bitrate factors of 8.0 are most likely CBR with the remainder being VBR)
  500.  
  501. $if($eq(%_bitRateType%,VBR),
  502. $if($gt(%_vbrRateValue%,339),$set(_fileVBRRate,320+),
  503. $if($gt(%_vbrRateValue%,319),$set(_fileVBRRate,320),
  504. $if($gt(%_vbrRateValue%,260),$set(_fileVBRRate,V0+),
  505. $if($gt(%_vbrRateValue%,220),$set(_fileVBRRate,V0),
  506. $if($gt(%_vbrRateValue%,191),$set(_fileVBRRate,V1),
  507. $if($gt(%_vbrRateValue%,170),$set(_fileVBRRate,V2),
  508. $if($gt(%_vbrRateValue%,150),$set(_fileVBRRate,V3),
  509. $if($gt(%_vbrRateValue%,140),$set(_fileVBRRate,V4),
  510. $if($gt(%_vbrRateValue%,130),$set(_fileVBRRate,V5),
  511. $if($gt(%_vbrRateValue%,120),$set(_fileVBRRate,V6),
  512. $if($gt(%_vbrRateValue%,95),$set(_fileVBRRate,V7),
  513. $if($gt(%_vbrRateValue%,69),$set(_fileVBRRate,V8),
  514. $if($gt(%_vbrRateValue%,44),$set(_fileVBRRate,V9),
  515. $set(_fileVBRRate,%_intBitRate%)
  516. ))))))))))))))
  517.  
  518. $noop(######### File Naming Structure Variables Complete #########)
  519.  
  520. $noop(★ Pathname Generation Starts Here ★)
  521.  
  522. $noop(★ Root level Path ★)
  523. $noop(   root = '/Volumes/Drive/Music/ ... [Destination Directory Setting])
  524. $noop(   rootLevelExport Separation/%_exportssDirectory%/MP3/Artist/Album ...)
  525. $if($eq(%_rootLevelExportsSeparation%,1),%_exportDirectory%,)
  526.  
  527. $noop(   rootLevelDuplicate Separation/%_dupesDirectory%/MP3/Artist/Album ...)
  528. $if($eq(%_rootLevelDupeSeparation%,1),%_dupesDirectory%,)
  529.  
  530. $noop(★ Separate by Format at root directory ★)
  531. $noop(   rootLevelPath/MP3/Artist/Album ...)
  532. $if($eq(%_rootLevelTypeSeparation%,1),$upper(%_extension%),)
  533.  
  534. $noop(★ Separate by _setSubSort against Genre tag values ★)
  535. $if($eq(%_isSubSort%,1),%_subSortDirectory%%_subSort2Directory%)
  536.  
  537. $noop(   Earlier Incomplete Separation for Sorting ...)
  538. $if($eq(%_earlierPresortForIncompletes%,1),$if($eq($is_complete(),0),$if($lt($matchedtracks(),%_totalalbumtracks%),$if($and(%_isIncomplete%,$not($in(%SavePerfectAnyway%,yes))), - %_incompleteDirectory%,))),$if($and(%_isIncomplete%,$not($in(%SavePerfectAnyway%,yes))), - %_incompleteDirectory%,))
  539. $if($in(%SaveIncompleteAnyway%,yes),%_incompleteDirectory%)/
  540. $if($eq(%_earlierLevelArtistSeparation%,1),%_artistForFilename%/)
  541.  
  542. $noop(★ Soundtrack in custom directory ,after soundtracksDirectory?? ★)
  543. $noop(   root/*/Audio Books/Title ...)
  544. $noop(   root/*/Soundtracks/Title ...)
  545. $noop(   root/*/Podcasts/Title ...)
  546. $if(%_isSoundTrack%,%_soundTracksDirectory%$left($swapprefix($if2(%albumsort%,%album%),A,An,The),1)/,/
  547. $if(%_isAudiobook%,%_audiobooksDirectory%$left($swapprefix($if2(%albumsort%,%album%),A,An,The),1)/,/)
  548. $if(%_isPodcast%,%_podcastDirectory%$left($swapprefix($if2(%albumsort%,%album%),A,An,The),1)/,/)
  549.  
  550. $noop(★ Various in custom directory ★)
  551. $noop(root/<*>/Various)
  552.  
  553. $if(%_isVarious%,%_variousArtistsDirectory%$left($swapprefix($if2(%albumsort%,%album%),A,An,The),1)/,/
  554. $if(%_isGlobalCompil%,%_compilationsGSubDirectory%$left($swapprefix($if2(%albumsort%,%album%),A,An,The),1)/,/)
  555.  
  556. $noop(★ Order root by category ★)
  557.     $if($eq(%_orderTypeForRoot%,1),
  558.     $if2(%albumgrouping%,Unknown)
  559.     )/
  560.  
  561. $noop(★ Order root by artist ★)
  562. $noop(root/<*>/<Last.FM=>/)
  563. $noop(root/<*>/D/)
  564.  
  565. $if($eq(%_orderTypeForRoot%,2),
  566.     $if($eq(%_orderTypeForArtist%,1),$upper($firstalphachar($if2(%_albumartistForFilename%,%_artistForFilename%),#1)),
  567.     $if($eq(%_orderTypeForArtist%,2),$if(%_isGlobalCompil%,,$upper($firstalphachar($if2(%_albumartistsortForFilename%,%_artistsortForFilename%),#2)))
  568.     $if($eq(%_orderTypeForArtist%,3),),../
  569.     )))/
  570.  
  571.  
  572. $noop(★ Artist with first letter of first name ★)
  573. $noop(root/<*>/B/The B-52's)
  574. $if($eq(%_orderTypeForArtist%,1),$if2(%_artistSort%,%_albumartistForFilename%,%_artistForFilename%))/
  575.  
  576. $noop(★ Artist with first letter of last name ★)
  577. $noop(root/<*>/B/B-52's, The)
  578. $if($eq(%_orderTypeForArtist%,2),$if(%_isGlobalCompil%,,$if2(%_albumartistsortForFilename%,%_artistsortForFilename%)))/
  579.  
  580. $noop(★ Order root by category ★)
  581. $if($eq(%_orderTypeForArtist%,3),)/
  582.  
  583. $noop(★ If Using Alternate Artists Directory For Covers & Tributes  **Uses Order for Album Artist tag ★)
  584.  
  585.     $noop(root/<*>/O/Oingo Boingo/[Tributes]/DeadBandsParty)
  586.     $if($eq_all(%coverTributeSort%,%_altArtistSort%,%_isTribute%,1),
  587.     $if2(%_artistSort%,%_albumartistForFilename%,%_artistForFilename%)
  588.     )/
  589.  
  590.     $noop(root/<*>/D/DEVO/[Covers]/Devolution)
  591.     $if($eq_all(%coverTributeSort%,%_altArtistSort%,%_isCover%,1),
  592.     $if2(%_artistSort%,%_albumartistForFilename%,%_artistForFilename%)
  593.     )/
  594.     $noop(★ Organize by type ★)
  595.     $noop(root/<*>/Y/Yes/[Live]/90125 Live)
  596.     $noop(root/<*>/Y/Yes,/90125)
  597.     $if($eq(%_separateByTypeInArtistDirectory%,1),
  598.         $if($eq(%_isArtistCompil%,1),%_compilationsASubDirectory%,
  599.             $if($eq(%_isLive%,1),%_liveSubDirectory%,
  600.                 $if($eq(%_isCover%,1),%_coverSubDirectory%,
  601.                     $if($eq(%_isTribute%,1),%_tributeSubDirectory%,
  602.                         $if($eq(%_isEP%,1),%_epSubDirectory%,
  603.                             $if($eq(%_isSingle%,1),%_singlesSubDirectory%,
  604.                                 $if($eq(%_isBroadcast%,1),%_broadcastSubDirectory%,
  605.                                 $if($eq(%_isInterview%,1),%_interviewSubDirectory%,
  606.                                         $if($eq(%_isVideo%,1),%_videoSubDirectory%,
  607.                                             $if($eq(%_isOther%,1),%_otherSubDirectory%,
  608.                                                 $if($eq(%_isAlbum%,1),
  609.                                                     $if($eq(%_separateAlbum%,1),%_albumSubDirectory%))
  610.  
  611.     )))))))))))))
  612.  
  613. $noop(Place Album / Sets into additional Top Level Directory/ )
  614. $if($eq(%_includeBoxSetTitle%,1),$titlecase(%boxsettitle%/),)
  615.  
  616. $noop(root/<*>/B/B-52's, The]/Bouncing off the Satellites/ )
  617. %_albumForFilename%
  618. $noop(★ Bouncing off the Satellites [Media-Type]/ ★)
  619. $noop($if($ne(%media%,CD),$if(%media%,[$rreplace(%media%,["″], Inch)])))
  620. $if(%media%, [$title(%media%]),)
  621.  
  622. $noop($if($and(%media%,$ne(%media%,CD)),$if($in(%media%,Vinyl),$title( [%media%])),$upper( [%media%])))
  623.  
  624. $noop(★ Bouncing off the Satellites [Vinyl] [YEAR]/ ★)
  625. $if($eq(%_showDate%,1),$if($if2(%date%,%originalyear%,%originaldate%), [$left($if2(%date%,%originalyear%,%originaldate%),4)],))
  626. $noop(★ Bouncing off the Satellites [Vinyl] [1986] [Release Status]/ ★)
  627. $if(%releasestatus%,$if($eq(%_showReleaseStatus%,1),$title( [%releasestatus%])))
  628.  
  629. $noop(★ Bouncing off the Satellites [Vinyl] [1986] [Official] [Label]/ ★)
  630. $if(%label%,$if(%_showRecordLabel%, $if(%label%,$title([%label%]))))
  631.  
  632. $noop(★ Bouncing off the Satellites [Vinyl] [1986] [Official] [MCA] [CAT-Number]/ ★)
  633. $if(%catalognumber%,$if($eq(%_showCatalogueNumber%,1),$title( [%catalognumber%])))
  634.  
  635. $noop(★ Bouncing off the Satellites [Vinyl] [1986] [Official] [MCA] [AB-DC001]/ ★)
  636. $noop(★ Bouncing off the Satellites [Vinyl] [1986] [Official] [MCA] [AB-DC001] - Incomplete/ ★)
  637.  
  638. $if($eq(%_extraTrackHandling%,1),$if($eq($is_complete(),0),$if($lt($matchedtracks(),%_totalalbumtracks%),$if($and(%_isIncomplete%,$not($in(%SavePerfectAnyway%,yes))), - %_incompleteDirectory%,))),$if($and(%_isIncomplete%,$not($in(%SavePerfectAnyway%,yes))), - %_incompleteDirectory%,)
  639. )/
  640. $noop(★ Bouncing off the Satellites [Vinyl] [1986] [Official] [MCA] [AB-DC001]/ MP3 / ★)
  641. $noop(★ Bouncing off the Satellites [Vinyl] [1986] [Official] [MCA] [AB-DC001]/ Bouncing off the Satellites MP3 / ★)
  642.  
  643. $if($eq(%_albumLevelTypeSeparation%,1),$if($eq(%_albumNameAtTypeSeparation%,1),%_albumForFilename%,)$if($eq(%_addBitRate%,1), %_fileVBRRate%%_fileCBRRate% %_bitRateType%)$upper( %_extension%))/
  644.  
  645. $noop(★ One Last Option to Sort By Author -within- a Left Side Album Compilation/ ★)
  646. $if(%artist%,$if($eq(%_showTrackArtistSeparation%,1),$title(%artist%)))
  647.  
  648. $noop(★ Bouncing off the Satellites [Vinyl] [1986] [Official] [MCA] [AB-DC001]/ .../ Disc # ★)
  649. $if($gt(%totaldiscs%,1),$noop(
  650.     )$if($lt(%totaldiscs%,10),$set(_discnumber, %discnumber%),$set(_discnumber,$num(%discnumber%,2)))$noop(
  651.     )$if($in(%media%,Vinyl),$noop(
  652.         )$set(_nameForDiscDirectory,@OSLASH@@OBRACKET@%_nameForTypeVinyl%%_discnumber%@CBRACKET@),$noop(
  653.         )$set(_nameForDiscDirectory,@OSLASH@@OBRACKET@%_nameForTypeCD%%_discnumber%@CBRACKET@))$noop(
  654.         )$if($and(%_discsubtitleForFilename%,$eq(%_showDiscSubtitle%,1)),$set(_nameForDiscDirectory,%_nameForDiscDirectory% - %_discsubtitleForFilename%))$noop(
  655.         )$if($eq(%_useSubDiscDirectory%,1),$noop(
  656.             )$set(_nameForDiscDirectory,$replace(%_nameForDiscDirectory%,@OSLASH@@OBRACKET@,/))$noop(
  657.             )$set(_nameForDiscDirectory,$replace(%_nameForDiscDirectory%,@CBRACKET@,)),$noop(
  658.             )$if($eq(%_mergeDiscWhenNotUsingSubDirectory%,1),$noop(
  659.                 )$unset(_nameForDiscDirectory),$noop(
  660.                 )$set(_nameForDiscDirectory,$replace(%_nameForDiscDirectory%,@OSLASH@@OBRACKET@,[))$noop(
  661.             )$set(_nameForDiscDirectory,$replace(%_nameForDiscDirectory%,@CBRACKET@,]))$noop(
  662.         ))$noop(
  663.     ))$noop(
  664. )$if(%_nameForDiscDirectory%,%_nameForDiscDirectory%))/
  665.  
  666. $noop(★ Track # Title --%_filebr% -- %bitrate% -- %BRType% -- %BrVBR% --  ★)
  667. $if($in(%media%,Vinyl),$noop(
  668.     )$if($eq(%_useMusicBrainzStyleForVinylTrack%,1),$noop(
  669.         )$if(%_musicbrainz_tracknumber%,%_musicbrainz_tracknumber%. )$noop(
  670.     )),$noop(
  671.     )$if(%tracknumber%,$if($gt(%totaldiscs%,1),$if($and($eq(%_useSubDiscDirectory%,0),$eq(%_mergeDiscWhenNotUsingSubDirectory%,1)),%discnumber%))$num(%tracknumber%,2). ))
  672.  
  673. $noop(★ GAME OVER ★)
  674.  
  675.  
  676. $if($eq(%_quickNoNameFormat%,0),%_titleForFilename%,%_filename%)
  677.  
  678. $noop(★ Insert Coin for Extra Metrics ★)
  679.  
  680.  
  681. [%_trackLength%]
  682.  
  683. $if($eq(%_quickNoNameFormat%,0),$if($eq(%_showBandwidth%,1),[%_fileCBRRate%%_fileVBRRate% %_bitRateSpeed% %_bitRateType% %_audioChannels%],$if($eq(%_showBandwidth%,1),[%_fileCBRRate%%_fileVBRRate% %_bitRateType%])))
  684.  
  685. $noop(★ 00 CREDITS ★)
  686.  
  687.  
Advertisement
Add Comment
Please, Sign In to add comment