youtube.psm1
try { Import-Module -Name Pode -ErrorAction Stop } catch { throw 'The YouTube module for PowerShell requires the Pode web server for completing the oAuth process.' } $script:RedirectUri = 'http://localhost:8000/auth/complete' $script:Scopes = 'https://www.googleapis.com/auth/youtube https://www.googleapis.com/auth/youtube.readonly https://www.googleapis.com/auth/youtubepartner-channel-audit' $script:ConfigPath = "$HOME/.pwsh.youtube.config.json" $FileList = Get-ChildItem -Path $PSScriptRoot/functions/*ps1 foreach ($File in $FileList) { . $File.FullName } $FileList = Get-ChildItem -Path $PSScriptRoot/functions/private/*ps1 foreach ($File in $FileList) { . $File.FullName } $FormatList = Get-ChildItem -Path $PSScriptRoot/formats/*ps1xml foreach ($Format in $FormatList) { Update-FormatData -PrependPath $Format.FullName } |