-
Notifications
You must be signed in to change notification settings - Fork 3
/
CommunityFeed.ps1
30 lines (25 loc) · 1007 Bytes
/
CommunityFeed.ps1
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
<#
.SYNOPSIS
Fetch YouTube channel feeds and generate webpages
.NOTES
http://winstonfassett.com/blog/2010/09/21/html-to-text-conversion-in-powershell/
youtube feed https://support.google.com/youtube/answer/3250431?hl=en
azpowershell feed https://www.youtube.com/feeds/videos.xml?channel_id=UC3RiZUhPQH9cANYnECWrbFA
markdown reference https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#lists
#>
[CmdletBinding()]
param(
# The output location where markdown will be output
$Path = "$PSScriptRoot\Output",
# The input file containing a list of YouTube feeds
$groupList = "$PSScriptRoot\UserGroupList.csv"
)
# Temporarily dot-sourcing while converting
. $PSScriptRoot\Source\ConvertTo-FileName.ps1
. $PSScriptRoot\Source\Convert-Entry.ps1
. $PSScriptRoot\Source\Update-Feed.ps1
. $PSScriptRoot\Source\Update-FeedList.ps1
if(!(Test-Path $Path)) {
New-Item $Path -ItemType Directory -Confirm
}
Update-FeedList $Path $groupList