-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPSiTunes.psm1
30 lines (23 loc) · 1.14 KB
/
PSiTunes.psm1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Set-StrictMode -Version 2
###################################################################################################
# Dot-source functions
$Classes = Join-Path $PSScriptRoot "Classes"
$PrivateFunctions = Join-Path $PSScriptRoot "Private"
$PublicFunctions = Join-Path $PSScriptRoot "Public"
foreach($Folder in @($Classes,$PrivateFunctions,$PublicFunctions)){
$Functions = Get-ChildItem -Path $Folder *.ps1
foreach($Function in $Functions){
. $Function.FullName
}
}
###################################################################################################
# Set paths for iTunes music and the new "shared music" location
$GLOBAL:iTunesRoot = "D:\iTunes\iTunes Media\Music\"
###################################################################################################
# Start iTunes Application
$GLOBAL:iTunesApplication = Start-iTunes
###################################################################################################
# Load the iTunes Library object
$GLOBAL:iTunesLibrary = Get-iTunesLibrary
$GLOBAL:iTunesMediaPath = "D:\iTunes\iTunes Media"
# $GLOBAL:iTunesMediaPath = Get-iTunesMediaLocation