{"id":28508870,"url":"https://github.com/judog24/receive-criterionchannelnowplaying","last_synced_at":"2026-04-29T15:02:51.233Z","repository":{"id":296159408,"uuid":"992402298","full_name":"judog24/Receive-CriterionChannelNowPlaying","owner":"judog24","description":"A PowerShell module and Mastodon bot that fetches the movie currently playing on the Criterion 24/7 streaming channel","archived":false,"fork":false,"pushed_at":"2026-04-28T23:02:50.000Z","size":947,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-29T01:09:06.138Z","etag":null,"topics":["mastodon","movies","powershell"],"latest_commit_sha":null,"homepage":"https://cheddarcrackers.club/@CriterionPresents","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/judog24.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-29T05:17:37.000Z","updated_at":"2026-04-28T23:02:54.000Z","dependencies_parsed_at":"2025-12-05T05:05:44.311Z","dependency_job_id":"01d4753e-f53c-4923-8190-4eefdbf33309","html_url":"https://github.com/judog24/Receive-CriterionChannelNowPlaying","commit_stats":null,"previous_names":["judog24/receive-criterionchannelnowplaying"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/judog24/Receive-CriterionChannelNowPlaying","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/judog24%2FReceive-CriterionChannelNowPlaying","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/judog24%2FReceive-CriterionChannelNowPlaying/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/judog24%2FReceive-CriterionChannelNowPlaying/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/judog24%2FReceive-CriterionChannelNowPlaying/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/judog24","download_url":"https://codeload.github.com/judog24/Receive-CriterionChannelNowPlaying/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/judog24%2FReceive-CriterionChannelNowPlaying/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32430803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mastodon","movies","powershell"],"created_at":"2025-06-08T22:00:49.945Z","updated_at":"2026-04-29T15:02:51.207Z","avatar_url":"https://github.com/judog24.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Receive-CriterionNowPlaying\n\nA PowerShell module and Mastodon bot that fetches the movie currently playing on the Criterion 24/7 streaming channel.\n\nFollow here: [@CriterionPresents@cheddarcrackers.club](https://cheddarcrackers.club/@CriterionPresents)\n\n## Why?\n\nThe Criterion Collection dedicates itself to distributing important classic and contemporary films. The company offers a streaming service, The Criterion Channel, that makes these films more accessible and affordable than buying individual Blu-rays. Subscribers of the service get access to Criterion 24/7 which is a continuous broadcast of films from the collection. A public website [whatsonnow.criterionchannel.com](https://whatsonnow.criterionchannel.com/) displays the movie currently playing along with how many minutes until the next movie begins. I wanted a way to get alerts when a new movie is playing so I could discover more movies within the collection.\n\n## How?\n\n[whatsonnow.criterionchannel.com](https://whatsonnow.criterionchannel.com/) is a simple website. It asks a question and answers it right away within the page's HTML. No extra DOM manipulations/javascript required. A simple web request with PowerShell parses the page easily. Well at least in PowerShell 5.1.\n\nIt turns out PowerShell Core does not have a built-in HTML parser so I had to utilize the PowerHTML module. I read that this feature was removed to ensure cross-platform compatibility. Apparently the parser in 5.1 utilizes Internet Explorer's engine. I guess I should be glad that Microsoft hasn't attempted to port Internet Explorer to Linux.\n\n## Mastodon Bot Features\n\nRunning the bot will require Mastodon credentials. I use `Invoke-MastodonBot.ps1` in a GitHub workflow that runs once an hour. Movies typically last more than one so I added some logic to only create a new post if the movie has changed since the last time the script has ran. This is accomplished by storing the unix timestamp of when the next movie starts in `NextMovieTime.txt` and checking it against the current time.\n\nI also have a script `Invoke-ForceMastodonBot.ps1` that will bypass this check and post regardless if the same movie is playing if I ever want the bot to do that for some reason.\n\n### Example Post\n\n![A screenshot showing a Mastodon post created by the bot. It reads: Now Playing: Deep Crimson. Next film starts in: 102 minutes\"](docs/post.png)\n\n## Example Local Command\n\nI can also just run a script, `Invoke-CriterionChannelNowPlaying.ps1`, to simply check what is currently playing on Criterion 24/7 without involving Mastodon.\n\n```PowerShell\nPS C:\\Users\\judog\\Documents\\git\\Receive-CriterionChannelNowPlaying\u003e .\\Invoke-CriterionChannelNowPlaying.ps1\nNow Playing: The Hit.\nNext film starts in: 75 minutes\n```\n\n## Notes\n\nThe Criterion Channel contains a lot of foreign films. Special characters do not always display correctly on [whatsonnow.criterionchannel.com](https://whatsonnow.criterionchannel.com/). For example, I have seen Peppermint Frappé as Peppermint FrappÄ. Currently, the bot just posts what it finds on the page so those errors currently persist.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjudog24%2Freceive-criterionchannelnowplaying","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjudog24%2Freceive-criterionchannelnowplaying","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjudog24%2Freceive-criterionchannelnowplaying/lists"}