dyerc / Doughnut

Podcast client (podcatcher) for Mac
https://doughnutapp.com
GNU General Public License v3.0
210 stars 20 forks source link

Unable to subscribe podcast URLs from podcasts.apple.com. #93

Closed GetToSet closed 2 years ago

GetToSet commented 2 years ago

Steps to Reproduce:

  1. File -> Subscribe to Podcast...
  2. Enter any valid podcast URLs starting with podcasts.apple.com.

Expected results: Should be able to subscribe.

Actual results: Parsing fails with alerts.

Screenshot 2022-07-12 20 27 56
luckman212 commented 2 years ago

I had this issue too. For now, I solved it by extracting the correct feedUrl using:

$ id=570256898  #podcast ID from original URL
$ curl -Ls "https://itunes.apple.com/lookup?entity=podcast&id=$id" | jq -r .results[0].feedUrl

requires jq

GetToSet commented 2 years ago

I had this issue too. For now, I solved it by extracting the correct feedUrl using:

$ id=570256898  #podcast ID from original URL
$ curl -Ls "https://itunes.apple.com/lookup?entity=podcast&id=$id" | jq -r .results[0].feedUrl

requires jq

Doughnut does the same way as this script to get the feedUrl. Previous logic fails when parse the podcast ID due to the domain name change. It should work now with #94 merged.