tankcr

Get TVDB

Mar 21st, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $show = "Halo"
  2. $doc = New-Object System.Xml.XmlDocument
  3. [xml]$doc = (New-Object System.Net.WebClient).DownloadString("http://thetvdb.com/api/GetSeries.php?seriesname=<$show>&language=<EN>")
  4. try
  5. {(($doc.data.series|where-object{$_.SeriesName -eq $show}) -eq $show)}
  6. catch
  7. {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