EngineeringKiosk / GermanTechPodcasts

A curated list of German Tech Podcasts 🇩🇪 🇦🇹 🇨🇭
https://engineeringkiosk.dev/deutsche-tech-podcasts/
MIT License
133 stars 34 forks source link

Fix a failing pipeline, if the image can't be downloaded #120

Closed andygrunwald closed 2 years ago

andygrunwald commented 2 years ago

If the podcast pipeline cannot download the cover image, the pipeline fails. This is OK, if we don't have an image at all. If we have an image (maybe an old one), this is ok enough. In this case, we don't need to fail the pipeline.

Last log message of pipeline run (https://github.com/EngineeringKiosk/GermanTechPodcasts/actions/runs/3083774903/jobs/4985122467):

2022/09/19 15:49:19 Processing file ../generated/neuland.json
2022/09/19 15:49:19 Requesting 'Podcasts.GetByFeedID' data from podcast index for feed id 77949
2022/09/19 15:49:19 Downloading https://podcast.hpi.de/images/itunes_image.jpg into ../generated/images/neuland.jpg
404
Error: received non 200 response code
Usage:
  GermanTechPodcasts collectPodcastData [flags]

Flags:
      --api-key string          API Key for Podcast Index API
      --api-secret string       API Secret for Podcast Index API
  -h, --help                    help for collectPodcastData
      --json-directory string   Directory on where to store the json files

Error: Process completed with exit code 1.