Skip to content

Commit

Permalink
working podcast download recipe, updated pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstew committed Dec 2, 2023
1 parent 0eb07f4 commit f8e5f7a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
# 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
args: ["--recipe-prefix=com.github.jgstew.", "--strict", "--"]
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
Expand All @@ -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]
Expand All @@ -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$
Expand Down
20 changes: 20 additions & 0 deletions BigFix/BigFix-Podcast.download.recipe.yaml
Original file line number Diff line number Diff line change
@@ -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="(?P<url>https://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

0 comments on commit f8e5f7a

Please sign in to comment.