Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $show = "Halo"
- $doc = New-Object System.Xml.XmlDocument
- [xml]$doc = (New-Object System.Net.WebClient).DownloadString("http://thetvdb.com/api/GetSeries.php?seriesname=<$show>&language=<EN>")
- try
- {(($doc.data.series|where-object{$_.SeriesName -eq $show}) -eq $show)}
- catch
- {write-host ("Exact Match Not Found Please Try with One of the Following "+ $doc.data.series.seriesname)}
Advertisement
Add Comment
Please, Sign In to add comment