# here is the list of download URLs - get it and # convert the JSON format $url = 'http://www.mediathekdirekt.de/good.json' $web = Invoke-WebRequest-Uri$url-UseBasicParsing $videos = $web.Content | ConvertFrom-Json
# get all videos, create a nice title to display, # and attach the original data to each entry $videos | ForEach-Object { $title = '{0} - {1}'-f$_[2], $_[5] $title | Add-Member-MemberType NoteProperty -NameData-Value$_-PassThru } | Sort-Object | Out-GridView-Title'Video'-OutputMode Multiple | ForEach-Object { # get the actual download info from the selected videos # and do the download $url = $_.Data[6] $filename = Split-Path-Path$url-Leaf # videos are saved into your TEMP folder unless you # specify a different folder below $filepath = Join-Path-Path$env:temp-ChildPath$filename Invoke-WebRequest-Uri$url-OutFile$filepath-UseBasicParsing Invoke-Item-Path$filepath }