WhatIfWeDigDeeper / unpackTunes

Unpacks certain randomly named music files and places them in folders by artist/album/title

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unpackTunes.ps1

Windows PowerShell script to unpack randomly named music files and places them in folders by artist/album/title. Script takes required input and output directory. For the input folder, it can have subfolders which the script will traverse.

Sample input folder

πŸ“‚ c:\temp\tunes
   πŸ“‚ F00
     πŸ“· ADAN.m4a
     πŸ“· BFVQ.mp3
   πŸ“‚ F01
     πŸ“· ALSR.mp3
     πŸ“· PTZX.m4p

Sample output folder

πŸ“‚ c:\music
   πŸ“‚ Anoushka Shankar & Karsh Kale
     πŸ“‚ Breathing Under Water
       πŸ“· Sea Dreamer (feat. Sting).mp4


   πŸ“‚ Compilation
     πŸ“‚ An Austin Rhythm And Blues Christmas
       πŸ“· Rockin' Around The Christmas Tree.m4a
       πŸ“· (Rockin') Winter Wonderland.m4a
       πŸ“· Boogie Woogie Santa Claus.m4a

PowerShell command prompt examples

> .\ unpackTunes.ps1 -musicSource C:\temp\tunes -musicDestination c:\music
#
# overwrite existing files
> .\ unpackTunes.ps1 -musicSource C:\temp\tunes -musicDestination c:\music -force
#
# remove the word "The" from artist name, such as "The Beatles" becomes "Beatles"
> .\ unpackTunes.ps1 -musicSource C:\temp\tunes -musicDestination c:\music -removeTheFromArtist -force

Parameters

Parameter Description
musicSource Required folder or root folder for location of randomly named music files
musicDestination Required target folder to copy files to
removeTheFromArtist Remove the starting "The" from artist name, such as "The Beatles" becomes the "Beatles"
force overwrite existing files

About

Unpacks certain randomly named music files and places them in folders by artist/album/title

License:MIT License


Languages

Language:PowerShell 100.0%