{"id":2911,"date":"2014-08-04T10:22:50","date_gmt":"2014-08-04T08:22:50","guid":{"rendered":"http:\/\/dollarunderscore.azurewebsites.net\/?p=2911"},"modified":"2017-06-05T21:21:53","modified_gmt":"2017-06-05T19:21:53","slug":"checking-tv-show-schedules-with-powershell","status":"publish","type":"post","link":"https:\/\/p0wershell.com\/?p=2911","title":{"rendered":"Checking TV Show schedules with PowerShell"},"content":{"rendered":"<p>Remember the post about <a title=\"Buying groceries with PowerShell\" href=\"https:\/\/p0wershell.com\/?p=2031\">buying groceries with PowerShell<\/a>? One of the usage examples suggested that you could order some snacks when a tv show you like is having a season finale (or premiere for that matter!).<\/p>\n<p>But how to check for this in an automated way? With PowerShell of course \ud83d\ude42<\/p>\n<p>I&#8217;ve written two advanced functions for doing this:<\/p>\n<ul>\n<li>Get-TVShowNextAirDate retrieves a list of most tv shows that are currently airing and is listing their next airdate.<\/li>\n<li>Get-TVShowAirDate retrieves all known airdates of the tv show specified (supports pipelining! \ud83d\ude09 )<\/li>\n<\/ul>\n<p>Screenshot of these in action:<br \/>\n<a href=\"https:\/\/p0wershell.com\/wp-content\/uploads\/2014\/07\/tvshowinfo.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2931\" src=\"https:\/\/p0wershell.com\/wp-content\/uploads\/2014\/07\/tvshowinfo.png\" alt=\"tvshowinfo\" width=\"1157\" height=\"642\" srcset=\"https:\/\/p0wershell.com\/wp-content\/uploads\/2014\/07\/tvshowinfo.png 1157w, https:\/\/p0wershell.com\/wp-content\/uploads\/2014\/07\/tvshowinfo-300x166.png 300w, https:\/\/p0wershell.com\/wp-content\/uploads\/2014\/07\/tvshowinfo-1024x568.png 1024w, https:\/\/p0wershell.com\/wp-content\/uploads\/2014\/07\/tvshowinfo-624x346.png 624w\" sizes=\"(max-width: 1157px) 100vw, 1157px\" \/><\/a><\/p>\n<p>That&#8217;s all the tools you need to automate your popcorn order! \ud83d\ude09<\/p>\n<p><em><strong>The code can be viewed through <a href=\"https:\/\/p0wershell.com\/wp-content\/uploads\/2017\/06\/TVShowAirdate.ps1_.txt\" target=\"_blank\">this link<\/a> (Updated 2016-10-06)<\/strong><\/em>.<\/p>\n<p>Happy automating anything!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Remember the post about buying groceries with PowerShell? One of the usage examples suggested that you could order some snacks when a tv show you like is having a season finale (or premiere for that matter!). But how to check for this in an automated way? With PowerShell of course \ud83d\ude42 I&#8217;ve written two advanced [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[231,21,841],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3Zj0A-KX","_links":{"self":[{"href":"https:\/\/p0wershell.com\/index.php?rest_route=\/wp\/v2\/posts\/2911"}],"collection":[{"href":"https:\/\/p0wershell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p0wershell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p0wershell.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/p0wershell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2911"}],"version-history":[{"count":0,"href":"https:\/\/p0wershell.com\/index.php?rest_route=\/wp\/v2\/posts\/2911\/revisions"}],"wp:attachment":[{"href":"https:\/\/p0wershell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2911"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p0wershell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2911"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p0wershell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}