From f8e5f7ab8fc44d4246919aefbc78812311ae58e9 Mon Sep 17 00:00:00 2001 From: JGStew Date: Sat, 2 Dec 2023 18:27:17 -0500 Subject: [PATCH] working podcast download recipe, updated pre-commit --- .pre-commit-config.yaml | 8 ++++---- BigFix/BigFix-Podcast.download.recipe.yaml | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 BigFix/BigFix-Podcast.download.recipe.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 795354b..451441f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ # https://github.com/pre-commit/pre-commit-hooks repos: - repo: https://github.com/homebysix/pre-commit-macadmin - rev: v1.12.4 + rev: v1.14.1 hooks: - id: check-autopkg-recipe-list - id: check-autopkg-recipes @@ -15,7 +15,7 @@ repos: exclude: ".*.test.recipe.yaml" - id: forbid-autopkg-overrides - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-yaml # check-json doesn't work with json with comments @@ -38,7 +38,7 @@ repos: # - id: no-commit-to-branch # args: [--branch, main] - repo: https://github.com/adrienverge/yamllint.git - rev: v1.32.0 + rev: v1.33.0 hooks: - id: yamllint args: [-c=.yamllint.yaml] @@ -47,7 +47,7 @@ repos: hooks: - id: isort - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.26.3 + rev: 0.27.2 hooks: - id: check-jsonschema files: \.recipe\.yaml$ diff --git a/BigFix/BigFix-Podcast.download.recipe.yaml b/BigFix/BigFix-Podcast.download.recipe.yaml new file mode 100644 index 0000000..4fb6e3a --- /dev/null +++ b/BigFix/BigFix-Podcast.download.recipe.yaml @@ -0,0 +1,20 @@ +--- +Description: Downloads the latest episode of the BigFix Podcast +Identifier: com.github.jgstew.download.BigFix-Podcast +Input: + NAME: BigFix-Podcast +MinimumVersion: '2.3' +Process: + - Processor: URLTextSearcher + Arguments: + url: https://feeds.buzzsprout.com/1248878.rss + re_pattern: 'enclosure url="(?Phttps://www.buzzsprout.com/.+.mp3)" length="\d+"' + + - Processor: URLDownloaderPython + Arguments: + # url: https://www.buzzsprout.com/1248878/13899237-bigfix-insider-interview-michelle-mcgough-bigfix-technical-engagement.mp3 + download_version: "" + COMPUTE_HASHES: True + User_Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/117.0 + + - Processor: EndOfCheckPhase