Bashpodder is not redirecting #61

Closed
opened 2024-11-08 18:12:29 +00:00 by ken_fallon · 4 comments
Owner

Comment #4 posted on 2024-11-08 13:22:31 by Charles in NJ
Missed this show because feed is broken

I liked this show, but I almost missed it. My bashpodder-based podcast handler is no longer working for HPR. Instead of getting the current episodes, it downloads a file called "ccdn.php". This is not useful. If I can fix this, I may record a show to describe how I did it. But if it takes too much time or trouble, I may quietly fade away.

Sorry to put this in such stark terms, but I have a lot of things to juggle these days. Fussing over the HPR feed is not something I have time to do.

Charles in NJ

https://hackerpublicradio.org/eps/hpr4244/index.html#comment_4110

Comment #4 posted on 2024-11-08 13:22:31 by Charles in NJ Missed this show because feed is broken I liked this show, but I almost missed it. My bashpodder-based podcast handler is no longer working for HPR. Instead of getting the current episodes, it downloads a file called "ccdn.php". This is not useful. If I can fix this, I may record a show to describe how I did it. But if it takes too much time or trouble, I may quietly fade away. Sorry to put this in such stark terms, but I have a lot of things to juggle these days. Fussing over the HPR feed is not something I have time to do. Charles in NJ https://hackerpublicradio.org/eps/hpr4244/index.html#comment_4110
Author
Owner

The logs show bashpodder clients getting a redirect and then appearing on the ccdn server

HPR Server
8.8.8.8 - - [07/Nov/2024:13:29:33 +0000] "GET /ccdn.php?filename=/eps/hpr0001/hpr0001.ogg HTTP/1.1" 302 - "-" "BashPodder"
8.8.8.8 - - [07/Nov/2024:13:29:39 +0000] "GET /ccdn.php?filename=/eps/hpr0002/hpr0002.ogg HTTP/1.1" 302 - "-" "BashPodder"
8.8.8.8 - - [07/Nov/2024:13:29:51 +0000] "GET /ccdn.php?filename=/eps/hpr0003/hpr0003.ogg HTTP/1.1" 302 - "-" "BashPodder"
8.8.8.8 - - [07/Nov/2024:13:30:16 +0000] "GET /ccdn.php?filename=/eps/hpr0004/hpr0004.ogg HTTP/1.1" 302 - "-" "BashPodder"
9.9.9.9 - - [07/Nov/2024:13:33:27 +0000] "GET /ccdn.php?filename=/eps/hpr4244/hpr4244.ogg HTTP/1.1" 302 - "-" "BashPodder"
9.9.9.9 - - [07/Nov/2024:13:33:30 +0000] "GET /ccdn.php?filename=/eps/hpr4243/hpr4243.ogg HTTP/1.1" 302 - "-" "BashPodder"
9.9.9.9 - - [07/Nov/2024:13:33:31 +0000] "GET /ccdn.php?filename=/eps/hpr4242/hpr4242.ogg HTTP/1.1" 302 - "-" "BashPodder"
9.9.9.9 - - [08/Nov/2024:13:13:49 +0000] "GET /ccdn.php?filename=/eps/hpr4245/hpr4245.ogg HTTP/1.1" 302 - "-" "BashPodder"
8.8.8.8 - - [08/Nov/2024:13:36:38 +0000] "GET /ccdn.php?filename=/eps/hpr0001/hpr0001.ogg HTTP/1.1" 302 - "-" "BashPodder"
8.8.8.8 - - [08/Nov/2024:13:36:49 +0000] "GET /ccdn.php?filename=/eps/hpr0002/hpr0002.ogg HTTP/1.1" 302 - "-" "BashPodder"
8.8.8.8 - - [08/Nov/2024:13:37:13 +0000] "GET /ccdn.php?filename=/eps/hpr0003/hpr0003.ogg HTTP/1.1" 302 - "-" "BashPodder"
8.8.8.8 - - [08/Nov/2024:13:37:44 +0000] "GET /ccdn.php?filename=/eps/hpr0004/hpr0004.ogg HTTP/1.1" 302 - "-" "BashPodder"

CDN Server
8.8.8.8 - - [03/Nov/2024:13:32:52 +0000] "GET /eps/hpr0001/hpr0001.ogg HTTP/1.1" 200 4879624 "-" "BashPodder"
8.8.8.8 - - [03/Nov/2024:13:32:58 +0000] "GET /eps/hpr0002/hpr0002.ogg HTTP/1.1" 200 14890038 "-" "BashPodder"
8.8.8.8 - - [03/Nov/2024:13:33:08 +0000] "GET /eps/hpr0003/hpr0003.ogg HTTP/1.1" 200 30707188 "-" "BashPodder"
8.8.8.8 - - [03/Nov/2024:13:33:28 +0000] "GET /eps/hpr0004/hpr0004.ogg HTTP/1.1" 200 4778656 "-" "BashPodder"
9.9.9.9 - - [04/Nov/2024:13:06:20 +0000] "GET /eps/hpr4241/hpr4241.ogg HTTP/1.1" 200 50556545 "-" "BashPodder"
7.7.7.7 - - [04/Nov/2024:13:15:38 +0000] "GET /eps/hpr4241/hpr4241.spx HTTP/1.1" 200 21954395 "-" "BashPodder"
7.7.7.7 - - [04/Nov/2024:13:17:38 +0000] "GET /eps/hpr4240/hpr4240.spx HTTP/1.1" 200 3784462 "-" "BashPodder"
7.7.7.7 - - [04/Nov/2024:13:18:39 +0000] "GET /eps/hpr4239/hpr4239.spx HTTP/1.1" 200 3718551 "-" "BashPodder"
7.7.7.7 - - [04/Nov/2024:13:18:48 +0000] "GET /eps/hpr4238/hpr4238.spx HTTP/1.1" 200 3764949 "-" "BashPodder"
7.7.7.7 - - [04/Nov/2024:13:19:27 +0000] "GET /eps/hpr4237/hpr4237.spx HTTP/1.1" 200 5382299 "-" "BashPodder"
7.7.7.7 - - [04/Nov/2024:13:19:33 +0000] "GET /eps/hpr4236/hpr4236.spx HTTP/1.1" 200 2529562 "-" "BashPodder"
7.7.7.7 - - [04/Nov/2024:13:19:37 +0000] "GET /eps/hpr4235/hpr4235.spx HTTP/1.1" 200 2103304 "-" "BashPodder"
7.7.7.7 - - [04/Nov/2024:13:20:00 +0000] "GET /eps/hpr4234/hpr4234.spx HTTP/1.1" 200 9512537 "-" "BashPodder"
7.7.7.7 - - [04/Nov/2024:13:20:08 +0000] "GET /eps/hpr4233/hpr4233.spx HTTP/1.1" 200 7188257 "-" "BashPodder"
8.8.8.8 - - [04/Nov/2024:13:30:36 +0000] "GET /eps/hpr0001/hpr0001.ogg HTTP/1.1" 200 4879624 "-" "BashPodder"
8.8.8.8 - - [04/Nov/2024:13:30:40 +0000] "GET /eps/hpr0002/hpr0002.ogg HTTP/1.1" 200 14890038 "-" "BashPodder"
8.8.8.8 - - [04/Nov/2024:13:30:50 +0000] "GET /eps/hpr0003/hpr0003.ogg HTTP/1.1" 200 30707188 "-" "BashPodder"
8.8.8.8 - - [04/Nov/2024:13:31:11 +0000] "GET /eps/hpr0004/hpr0004.ogg HTTP/1.1" 200 4778656 "-" "BashPodder"
8.8.8.8 - - [05/Nov/2024:13:37:27 +0000] "GET /eps/hpr0001/hpr0001.ogg HTTP/1.1" 200 4879624 "-" "BashPodder"
8.8.8.8 - - [05/Nov/2024:13:37:33 +0000] "GET /eps/hpr0002/hpr0002.ogg HTTP/1.1" 200 14890038 "-" "BashPodder"
8.8.8.8 - - [05/Nov/2024:13:37:47 +0000] "GET /eps/hpr0003/hpr0003.ogg HTTP/1.1" 200 30707188 "-" "BashPodder"
8.8.8.8 - - [05/Nov/2024:13:38:07 +0000] "GET /eps/hpr0004/hpr0004.ogg HTTP/1.1" 200 4778656 "-" "BashPodder"
8.8.8.8 - - [06/Nov/2024:13:44:55 +0000] "GET /eps/hpr0001/hpr0001.ogg HTTP/1.1" 200 4879624 "-" "BashPodder"
8.8.8.8 - - [06/Nov/2024:13:45:00 +0000] "GET /eps/hpr0002/hpr0002.ogg HTTP/1.1" 200 14890038 "-" "BashPodder"
8.8.8.8 - - [06/Nov/2024:13:45:14 +0000] "GET /eps/hpr0003/hpr0003.ogg HTTP/1.1" 200 30707188 "-" "BashPodder"
8.8.8.8 - - [06/Nov/2024:13:45:31 +0000] "GET /eps/hpr0004/hpr0004.ogg HTTP/1.1" 200 4778656 "-" "BashPodder"
8.8.8.8 - - [07/Nov/2024:13:29:34 +0000] "GET /eps/hpr0001/hpr0001.ogg HTTP/1.1" 200 4879624 "-" "BashPodder"
8.8.8.8 - - [07/Nov/2024:13:29:39 +0000] "GET /eps/hpr0002/hpr0002.ogg HTTP/1.1" 200 14890038 "-" "BashPodder"
8.8.8.8 - - [07/Nov/2024:13:29:51 +0000] "GET /eps/hpr0003/hpr0003.ogg HTTP/1.1" 200 30707188 "-" "BashPodder"
8.8.8.8 - - [07/Nov/2024:13:30:16 +0000] "GET /eps/hpr0004/hpr0004.ogg HTTP/1.1" 200 4778656 "-" "BashPodder"
9.9.9.9 - - [07/Nov/2024:13:33:27 +0000] "GET /eps/hpr4244/hpr4244.ogg HTTP/1.1" 200 4650332 "-" "BashPodder"
9.9.9.9 - - [07/Nov/2024:13:33:30 +0000] "GET /eps/hpr4243/hpr4243.ogg HTTP/1.1" 206 3577312 "-" "BashPodder"
9.9.9.9 - - [07/Nov/2024:13:33:31 +0000] "GET /eps/hpr4242/hpr4242.ogg HTTP/1.1" 416 314 "-" "BashPodder"
9.9.9.9 - - [08/Nov/2024:13:13:49 +0000] "GET /eps/hpr4245/hpr4245.ogg HTTP/1.1" 200 10468956 "-" "BashPodder"
8.8.8.8 - - [08/Nov/2024:13:36:39 +0000] "GET /eps/hpr0001/hpr0001.ogg HTTP/1.1" 200 4879624 "-" "BashPodder"
8.8.8.8 - - [08/Nov/2024:13:36:49 +0000] "GET /eps/hpr0002/hpr0002.ogg HTTP/1.1" 200 14890038 "-" "BashPodder"
8.8.8.8 - - [08/Nov/2024:13:37:13 +0000] "GET /eps/hpr0003/hpr0003.ogg HTTP/1.1" 200 30707188 "-" "BashPodder"
8.8.8.8 - - [08/Nov/2024:13:37:44 +0000] "GET /eps/hpr0004/hpr0004.ogg HTTP/1.1" 200 4778656 "-" "BashPodder"

I have emailed Charles for more information

The logs show bashpodder clients getting a redirect and then appearing on the ccdn server ``` HPR Server 8.8.8.8 - - [07/Nov/2024:13:29:33 +0000] "GET /ccdn.php?filename=/eps/hpr0001/hpr0001.ogg HTTP/1.1" 302 - "-" "BashPodder" 8.8.8.8 - - [07/Nov/2024:13:29:39 +0000] "GET /ccdn.php?filename=/eps/hpr0002/hpr0002.ogg HTTP/1.1" 302 - "-" "BashPodder" 8.8.8.8 - - [07/Nov/2024:13:29:51 +0000] "GET /ccdn.php?filename=/eps/hpr0003/hpr0003.ogg HTTP/1.1" 302 - "-" "BashPodder" 8.8.8.8 - - [07/Nov/2024:13:30:16 +0000] "GET /ccdn.php?filename=/eps/hpr0004/hpr0004.ogg HTTP/1.1" 302 - "-" "BashPodder" 9.9.9.9 - - [07/Nov/2024:13:33:27 +0000] "GET /ccdn.php?filename=/eps/hpr4244/hpr4244.ogg HTTP/1.1" 302 - "-" "BashPodder" 9.9.9.9 - - [07/Nov/2024:13:33:30 +0000] "GET /ccdn.php?filename=/eps/hpr4243/hpr4243.ogg HTTP/1.1" 302 - "-" "BashPodder" 9.9.9.9 - - [07/Nov/2024:13:33:31 +0000] "GET /ccdn.php?filename=/eps/hpr4242/hpr4242.ogg HTTP/1.1" 302 - "-" "BashPodder" 9.9.9.9 - - [08/Nov/2024:13:13:49 +0000] "GET /ccdn.php?filename=/eps/hpr4245/hpr4245.ogg HTTP/1.1" 302 - "-" "BashPodder" 8.8.8.8 - - [08/Nov/2024:13:36:38 +0000] "GET /ccdn.php?filename=/eps/hpr0001/hpr0001.ogg HTTP/1.1" 302 - "-" "BashPodder" 8.8.8.8 - - [08/Nov/2024:13:36:49 +0000] "GET /ccdn.php?filename=/eps/hpr0002/hpr0002.ogg HTTP/1.1" 302 - "-" "BashPodder" 8.8.8.8 - - [08/Nov/2024:13:37:13 +0000] "GET /ccdn.php?filename=/eps/hpr0003/hpr0003.ogg HTTP/1.1" 302 - "-" "BashPodder" 8.8.8.8 - - [08/Nov/2024:13:37:44 +0000] "GET /ccdn.php?filename=/eps/hpr0004/hpr0004.ogg HTTP/1.1" 302 - "-" "BashPodder" CDN Server 8.8.8.8 - - [03/Nov/2024:13:32:52 +0000] "GET /eps/hpr0001/hpr0001.ogg HTTP/1.1" 200 4879624 "-" "BashPodder" 8.8.8.8 - - [03/Nov/2024:13:32:58 +0000] "GET /eps/hpr0002/hpr0002.ogg HTTP/1.1" 200 14890038 "-" "BashPodder" 8.8.8.8 - - [03/Nov/2024:13:33:08 +0000] "GET /eps/hpr0003/hpr0003.ogg HTTP/1.1" 200 30707188 "-" "BashPodder" 8.8.8.8 - - [03/Nov/2024:13:33:28 +0000] "GET /eps/hpr0004/hpr0004.ogg HTTP/1.1" 200 4778656 "-" "BashPodder" 9.9.9.9 - - [04/Nov/2024:13:06:20 +0000] "GET /eps/hpr4241/hpr4241.ogg HTTP/1.1" 200 50556545 "-" "BashPodder" 7.7.7.7 - - [04/Nov/2024:13:15:38 +0000] "GET /eps/hpr4241/hpr4241.spx HTTP/1.1" 200 21954395 "-" "BashPodder" 7.7.7.7 - - [04/Nov/2024:13:17:38 +0000] "GET /eps/hpr4240/hpr4240.spx HTTP/1.1" 200 3784462 "-" "BashPodder" 7.7.7.7 - - [04/Nov/2024:13:18:39 +0000] "GET /eps/hpr4239/hpr4239.spx HTTP/1.1" 200 3718551 "-" "BashPodder" 7.7.7.7 - - [04/Nov/2024:13:18:48 +0000] "GET /eps/hpr4238/hpr4238.spx HTTP/1.1" 200 3764949 "-" "BashPodder" 7.7.7.7 - - [04/Nov/2024:13:19:27 +0000] "GET /eps/hpr4237/hpr4237.spx HTTP/1.1" 200 5382299 "-" "BashPodder" 7.7.7.7 - - [04/Nov/2024:13:19:33 +0000] "GET /eps/hpr4236/hpr4236.spx HTTP/1.1" 200 2529562 "-" "BashPodder" 7.7.7.7 - - [04/Nov/2024:13:19:37 +0000] "GET /eps/hpr4235/hpr4235.spx HTTP/1.1" 200 2103304 "-" "BashPodder" 7.7.7.7 - - [04/Nov/2024:13:20:00 +0000] "GET /eps/hpr4234/hpr4234.spx HTTP/1.1" 200 9512537 "-" "BashPodder" 7.7.7.7 - - [04/Nov/2024:13:20:08 +0000] "GET /eps/hpr4233/hpr4233.spx HTTP/1.1" 200 7188257 "-" "BashPodder" 8.8.8.8 - - [04/Nov/2024:13:30:36 +0000] "GET /eps/hpr0001/hpr0001.ogg HTTP/1.1" 200 4879624 "-" "BashPodder" 8.8.8.8 - - [04/Nov/2024:13:30:40 +0000] "GET /eps/hpr0002/hpr0002.ogg HTTP/1.1" 200 14890038 "-" "BashPodder" 8.8.8.8 - - [04/Nov/2024:13:30:50 +0000] "GET /eps/hpr0003/hpr0003.ogg HTTP/1.1" 200 30707188 "-" "BashPodder" 8.8.8.8 - - [04/Nov/2024:13:31:11 +0000] "GET /eps/hpr0004/hpr0004.ogg HTTP/1.1" 200 4778656 "-" "BashPodder" 8.8.8.8 - - [05/Nov/2024:13:37:27 +0000] "GET /eps/hpr0001/hpr0001.ogg HTTP/1.1" 200 4879624 "-" "BashPodder" 8.8.8.8 - - [05/Nov/2024:13:37:33 +0000] "GET /eps/hpr0002/hpr0002.ogg HTTP/1.1" 200 14890038 "-" "BashPodder" 8.8.8.8 - - [05/Nov/2024:13:37:47 +0000] "GET /eps/hpr0003/hpr0003.ogg HTTP/1.1" 200 30707188 "-" "BashPodder" 8.8.8.8 - - [05/Nov/2024:13:38:07 +0000] "GET /eps/hpr0004/hpr0004.ogg HTTP/1.1" 200 4778656 "-" "BashPodder" 8.8.8.8 - - [06/Nov/2024:13:44:55 +0000] "GET /eps/hpr0001/hpr0001.ogg HTTP/1.1" 200 4879624 "-" "BashPodder" 8.8.8.8 - - [06/Nov/2024:13:45:00 +0000] "GET /eps/hpr0002/hpr0002.ogg HTTP/1.1" 200 14890038 "-" "BashPodder" 8.8.8.8 - - [06/Nov/2024:13:45:14 +0000] "GET /eps/hpr0003/hpr0003.ogg HTTP/1.1" 200 30707188 "-" "BashPodder" 8.8.8.8 - - [06/Nov/2024:13:45:31 +0000] "GET /eps/hpr0004/hpr0004.ogg HTTP/1.1" 200 4778656 "-" "BashPodder" 8.8.8.8 - - [07/Nov/2024:13:29:34 +0000] "GET /eps/hpr0001/hpr0001.ogg HTTP/1.1" 200 4879624 "-" "BashPodder" 8.8.8.8 - - [07/Nov/2024:13:29:39 +0000] "GET /eps/hpr0002/hpr0002.ogg HTTP/1.1" 200 14890038 "-" "BashPodder" 8.8.8.8 - - [07/Nov/2024:13:29:51 +0000] "GET /eps/hpr0003/hpr0003.ogg HTTP/1.1" 200 30707188 "-" "BashPodder" 8.8.8.8 - - [07/Nov/2024:13:30:16 +0000] "GET /eps/hpr0004/hpr0004.ogg HTTP/1.1" 200 4778656 "-" "BashPodder" 9.9.9.9 - - [07/Nov/2024:13:33:27 +0000] "GET /eps/hpr4244/hpr4244.ogg HTTP/1.1" 200 4650332 "-" "BashPodder" 9.9.9.9 - - [07/Nov/2024:13:33:30 +0000] "GET /eps/hpr4243/hpr4243.ogg HTTP/1.1" 206 3577312 "-" "BashPodder" 9.9.9.9 - - [07/Nov/2024:13:33:31 +0000] "GET /eps/hpr4242/hpr4242.ogg HTTP/1.1" 416 314 "-" "BashPodder" 9.9.9.9 - - [08/Nov/2024:13:13:49 +0000] "GET /eps/hpr4245/hpr4245.ogg HTTP/1.1" 200 10468956 "-" "BashPodder" 8.8.8.8 - - [08/Nov/2024:13:36:39 +0000] "GET /eps/hpr0001/hpr0001.ogg HTTP/1.1" 200 4879624 "-" "BashPodder" 8.8.8.8 - - [08/Nov/2024:13:36:49 +0000] "GET /eps/hpr0002/hpr0002.ogg HTTP/1.1" 200 14890038 "-" "BashPodder" 8.8.8.8 - - [08/Nov/2024:13:37:13 +0000] "GET /eps/hpr0003/hpr0003.ogg HTTP/1.1" 200 30707188 "-" "BashPodder" 8.8.8.8 - - [08/Nov/2024:13:37:44 +0000] "GET /eps/hpr0004/hpr0004.ogg HTTP/1.1" 200 4778656 "-" "BashPodder" ``` I have emailed Charles for more information
Author
Owner

Attempted to reproduce without success

Steps to reproduce

  1. Clone bashpodder gothub repo
  2. touch podcast.log
  3. echo https://hackerpublicradio.org/hpr_ogg_rss.php > bp.conf
  4. ./bashpodder

Expected result

The files in the feed should be downloaded.

Actual result

The files in the feed are downloaded.

Feed enclosure

The feed url https://hackerpublicradio.org/hpr_ogg_rss.php references

rss/channel/item/enclosure[@url='https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4245/hpr4245.ogg' and @length='10468956' and @type='audio/ogg']
rss/channel/item/enclosure[@url='https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4244/hpr4244.ogg' and @length='4650332' and @type='audio/ogg']
rss/channel/item/enclosure[@url='https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4243/hpr4243.ogg' and @length='8227644' and @type='audio/ogg']
rss/channel/item/enclosure[@url='https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4242/hpr4242.ogg' and @length='6486901' and @type='audio/ogg']
rss/channel/item/enclosure[@url='https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4241/hpr4241.ogg' and @length='50556545' and @type='audio/ogg']
rss/channel/item/enclosure[@url='https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4240/hpr4240.ogg' and @length='9631024' and @type='audio/ogg']
rss/channel/item/enclosure[@url='https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4239/hpr4239.ogg' and @length='8142272' and @type='audio/ogg']
rss/channel/item/enclosure[@url='https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4238/hpr4238.ogg' and @length='7893570' and @type='audio/ogg']
rss/channel/item/enclosure[@url='https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4237/hpr4237.ogg' and @length='11726726' and @type='audio/ogg']
rss/channel/item/enclosure[@url='https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4236/hpr4236.ogg' and @length='5513431' and @type='audio/ogg']

File resolving

Calling https://hub.hackerpublicradio.org/ccdn.php redirects with a 302

The HTTP 302 Found redirection response status code indicates that the requested resource has been temporarily moved to the URL in the Location header.

apache_log:a.b.c.d - - [09/Nov/2024:12:26:34 +0000] "GET /ccdn.php?filename=/eps/hpr4245/hpr4245.ogg HTTP/1.1" 302 - "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:26:35 +0000] "GET /ccdn.php?filename=/eps/hpr4244/hpr4244.ogg HTTP/1.1" 302 - "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:26:36 +0000] "GET /ccdn.php?filename=/eps/hpr4243/hpr4243.ogg HTTP/1.1" 302 - "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:26:37 +0000] "GET /ccdn.php?filename=/eps/hpr4242/hpr4242.ogg HTTP/1.1" 302 - "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:26:38 +0000] "GET /ccdn.php?filename=/eps/hpr4241/hpr4241.ogg HTTP/1.1" 302 - "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:26:40 +0000] "GET /ccdn.php?filename=/eps/hpr4240/hpr4240.ogg HTTP/1.1" 302 - "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:26:41 +0000] "GET /ccdn.php?filename=/eps/hpr4239/hpr4239.ogg HTTP/1.1" 302 - "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:26:42 +0000] "GET /ccdn.php?filename=/eps/hpr4237/hpr4237.ogg HTTP/1.1" 302 - "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:27:02 +0000] "GET /ccdn.php?filename=/eps/hpr4245/hpr4245.ogg HTTP/1.1" 302 - "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:27:03 +0000] "GET /ccdn.php?filename=/eps/hpr4244/hpr4244.ogg HTTP/1.1" 302 - "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:27:04 +0000] "GET /ccdn.php?filename=/eps/hpr4243/hpr4243.ogg HTTP/1.1" 302 - "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:27:05 +0000] "GET /ccdn.php?filename=/eps/hpr4242/hpr4242.ogg HTTP/1.1" 302 - "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:27:06 +0000] "GET /ccdn.php?filename=/eps/hpr4241/hpr4241.ogg HTTP/1.1" 302 - "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:27:08 +0000] "GET /ccdn.php?filename=/eps/hpr4240/hpr4240.ogg HTTP/1.1" 302 - "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:27:09 +0000] "GET /ccdn.php?filename=/eps/hpr4239/hpr4239.ogg HTTP/1.1" 302 - "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:27:10 +0000] "GET /ccdn.php?filename=/eps/hpr4238/hpr4238.ogg HTTP/1.1" 302 - "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:27:11 +0000] "GET /ccdn.php?filename=/eps/hpr4237/hpr4237.ogg HTTP/1.1" 302 - "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:27:12 +0000] "GET /ccdn.php?filename=/eps/hpr4236/hpr4236.ogg HTTP/1.1" 302 - "-" "BashPodder"

File download

The CCDN server then returns the file with either a 200 or a 206

The HTTP 200 OK successful response status code indicates that a request has succeeded. A 200 OK response is cacheable by default.

The HTTP 206 Partial Content successful response status code is sent in response to a range request. The response body contains the requested ranges of data as specified in the Range header of the request.

apache_log:a.b.c.d - - [09/Nov/2024:12:26:34 +0000] "GET /eps/hpr4245/hpr4245.ogg HTTP/1.1" 200 10468956 "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:26:35 +0000] "GET /eps/hpr4244/hpr4244.ogg HTTP/1.1" 200 4650332 "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:26:36 +0000] "GET /eps/hpr4243/hpr4243.ogg HTTP/1.1" 200 8227644 "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:26:37 +0000] "GET /eps/hpr4242/hpr4242.ogg HTTP/1.1" 200 6486901 "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:26:38 +0000] "GET /eps/hpr4241/hpr4241.ogg HTTP/1.1" 200 50556545 "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:26:40 +0000] "GET /eps/hpr4240/hpr4240.ogg HTTP/1.1" 200 9631024 "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:27:02 +0000] "GET /eps/hpr4245/hpr4245.ogg HTTP/1.1" 206 10468956 "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:27:03 +0000] "GET /eps/hpr4244/hpr4244.ogg HTTP/1.1" 206 4650332 "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:27:04 +0000] "GET /eps/hpr4243/hpr4243.ogg HTTP/1.1" 206 8227644 "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:27:05 +0000] "GET /eps/hpr4242/hpr4242.ogg HTTP/1.1" 206 6486901 "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:27:06 +0000] "GET /eps/hpr4241/hpr4241.ogg HTTP/1.1" 206 50556545 "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:27:08 +0000] "GET /eps/hpr4240/hpr4240.ogg HTTP/1.1" 206 9631024 "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:27:09 +0000] "GET /eps/hpr4239/hpr4239.ogg HTTP/1.1" 200 8142272 "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:27:10 +0000] "GET /eps/hpr4238/hpr4238.ogg HTTP/1.1" 200 7893570 "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:27:11 +0000] "GET /eps/hpr4237/hpr4237.ogg HTTP/1.1" 200 11726726 "-" "BashPodder"
apache_log:a.b.c.d - - [09/Nov/2024:12:27:12 +0000] "GET /eps/hpr4236/hpr4236.ogg HTTP/1.1" 200 5513431 "-" "BashPodder"

Podcast check

$ file --mime *
hpr4236.ogg: audio/ogg; charset=binary
hpr4237.ogg: audio/ogg; charset=binary
hpr4238.ogg: audio/ogg; charset=binary
hpr4239.ogg: audio/ogg; charset=binary
hpr4240.ogg: audio/ogg; charset=binary
hpr4241.ogg: audio/ogg; charset=binary
hpr4242.ogg: audio/ogg; charset=binary
hpr4243.ogg: audio/ogg; charset=binary
hpr4244.ogg: audio/ogg; charset=binary
hpr4245.ogg: audio/ogg; charset=binary
podcast.m3u: text/plain; charset=us-ascii

A manual test using mpv hpr*ogg plays each without issue.

Attempted to reproduce without success # Steps to reproduce 1. Clone [bashpodder gothub repo](https://github.com/lincgeek/bashpodder) 1. `touch podcast.log` 1. `echo https://hackerpublicradio.org/hpr_ogg_rss.php > bp.conf` 1. `./bashpodder` # Expected result The files in the feed should be downloaded. # Actual result The files in the feed are downloaded. ## Feed enclosure The feed url `https://hackerpublicradio.org/hpr_ogg_rss.php` references ``` rss/channel/item/enclosure[@url='https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4245/hpr4245.ogg' and @length='10468956' and @type='audio/ogg'] rss/channel/item/enclosure[@url='https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4244/hpr4244.ogg' and @length='4650332' and @type='audio/ogg'] rss/channel/item/enclosure[@url='https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4243/hpr4243.ogg' and @length='8227644' and @type='audio/ogg'] rss/channel/item/enclosure[@url='https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4242/hpr4242.ogg' and @length='6486901' and @type='audio/ogg'] rss/channel/item/enclosure[@url='https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4241/hpr4241.ogg' and @length='50556545' and @type='audio/ogg'] rss/channel/item/enclosure[@url='https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4240/hpr4240.ogg' and @length='9631024' and @type='audio/ogg'] rss/channel/item/enclosure[@url='https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4239/hpr4239.ogg' and @length='8142272' and @type='audio/ogg'] rss/channel/item/enclosure[@url='https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4238/hpr4238.ogg' and @length='7893570' and @type='audio/ogg'] rss/channel/item/enclosure[@url='https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4237/hpr4237.ogg' and @length='11726726' and @type='audio/ogg'] rss/channel/item/enclosure[@url='https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4236/hpr4236.ogg' and @length='5513431' and @type='audio/ogg'] ``` ## File resolving Calling `https://hub.hackerpublicradio.org/ccdn.php` [redirects with a 302 ](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302) > The HTTP 302 Found redirection response status code indicates that the requested resource has been temporarily moved to the URL in the Location header. ``` apache_log:a.b.c.d - - [09/Nov/2024:12:26:34 +0000] "GET /ccdn.php?filename=/eps/hpr4245/hpr4245.ogg HTTP/1.1" 302 - "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:26:35 +0000] "GET /ccdn.php?filename=/eps/hpr4244/hpr4244.ogg HTTP/1.1" 302 - "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:26:36 +0000] "GET /ccdn.php?filename=/eps/hpr4243/hpr4243.ogg HTTP/1.1" 302 - "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:26:37 +0000] "GET /ccdn.php?filename=/eps/hpr4242/hpr4242.ogg HTTP/1.1" 302 - "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:26:38 +0000] "GET /ccdn.php?filename=/eps/hpr4241/hpr4241.ogg HTTP/1.1" 302 - "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:26:40 +0000] "GET /ccdn.php?filename=/eps/hpr4240/hpr4240.ogg HTTP/1.1" 302 - "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:26:41 +0000] "GET /ccdn.php?filename=/eps/hpr4239/hpr4239.ogg HTTP/1.1" 302 - "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:26:42 +0000] "GET /ccdn.php?filename=/eps/hpr4237/hpr4237.ogg HTTP/1.1" 302 - "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:27:02 +0000] "GET /ccdn.php?filename=/eps/hpr4245/hpr4245.ogg HTTP/1.1" 302 - "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:27:03 +0000] "GET /ccdn.php?filename=/eps/hpr4244/hpr4244.ogg HTTP/1.1" 302 - "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:27:04 +0000] "GET /ccdn.php?filename=/eps/hpr4243/hpr4243.ogg HTTP/1.1" 302 - "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:27:05 +0000] "GET /ccdn.php?filename=/eps/hpr4242/hpr4242.ogg HTTP/1.1" 302 - "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:27:06 +0000] "GET /ccdn.php?filename=/eps/hpr4241/hpr4241.ogg HTTP/1.1" 302 - "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:27:08 +0000] "GET /ccdn.php?filename=/eps/hpr4240/hpr4240.ogg HTTP/1.1" 302 - "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:27:09 +0000] "GET /ccdn.php?filename=/eps/hpr4239/hpr4239.ogg HTTP/1.1" 302 - "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:27:10 +0000] "GET /ccdn.php?filename=/eps/hpr4238/hpr4238.ogg HTTP/1.1" 302 - "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:27:11 +0000] "GET /ccdn.php?filename=/eps/hpr4237/hpr4237.ogg HTTP/1.1" 302 - "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:27:12 +0000] "GET /ccdn.php?filename=/eps/hpr4236/hpr4236.ogg HTTP/1.1" 302 - "-" "BashPodder" ``` ## File download The CCDN server then returns the file with either a `200` or a `206` > The HTTP 200 OK successful response status code indicates that a request has succeeded. A 200 OK response is cacheable by default. > The HTTP 206 Partial Content successful response status code is sent in response to a range request. The response body contains the requested ranges of data as specified in the Range header of the request. ``` apache_log:a.b.c.d - - [09/Nov/2024:12:26:34 +0000] "GET /eps/hpr4245/hpr4245.ogg HTTP/1.1" 200 10468956 "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:26:35 +0000] "GET /eps/hpr4244/hpr4244.ogg HTTP/1.1" 200 4650332 "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:26:36 +0000] "GET /eps/hpr4243/hpr4243.ogg HTTP/1.1" 200 8227644 "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:26:37 +0000] "GET /eps/hpr4242/hpr4242.ogg HTTP/1.1" 200 6486901 "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:26:38 +0000] "GET /eps/hpr4241/hpr4241.ogg HTTP/1.1" 200 50556545 "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:26:40 +0000] "GET /eps/hpr4240/hpr4240.ogg HTTP/1.1" 200 9631024 "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:27:02 +0000] "GET /eps/hpr4245/hpr4245.ogg HTTP/1.1" 206 10468956 "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:27:03 +0000] "GET /eps/hpr4244/hpr4244.ogg HTTP/1.1" 206 4650332 "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:27:04 +0000] "GET /eps/hpr4243/hpr4243.ogg HTTP/1.1" 206 8227644 "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:27:05 +0000] "GET /eps/hpr4242/hpr4242.ogg HTTP/1.1" 206 6486901 "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:27:06 +0000] "GET /eps/hpr4241/hpr4241.ogg HTTP/1.1" 206 50556545 "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:27:08 +0000] "GET /eps/hpr4240/hpr4240.ogg HTTP/1.1" 206 9631024 "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:27:09 +0000] "GET /eps/hpr4239/hpr4239.ogg HTTP/1.1" 200 8142272 "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:27:10 +0000] "GET /eps/hpr4238/hpr4238.ogg HTTP/1.1" 200 7893570 "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:27:11 +0000] "GET /eps/hpr4237/hpr4237.ogg HTTP/1.1" 200 11726726 "-" "BashPodder" apache_log:a.b.c.d - - [09/Nov/2024:12:27:12 +0000] "GET /eps/hpr4236/hpr4236.ogg HTTP/1.1" 200 5513431 "-" "BashPodder" ``` ## Podcast check ``` $ file --mime * hpr4236.ogg: audio/ogg; charset=binary hpr4237.ogg: audio/ogg; charset=binary hpr4238.ogg: audio/ogg; charset=binary hpr4239.ogg: audio/ogg; charset=binary hpr4240.ogg: audio/ogg; charset=binary hpr4241.ogg: audio/ogg; charset=binary hpr4242.ogg: audio/ogg; charset=binary hpr4243.ogg: audio/ogg; charset=binary hpr4244.ogg: audio/ogg; charset=binary hpr4245.ogg: audio/ogg; charset=binary podcast.m3u: text/plain; charset=us-ascii ``` A manual test using `mpv hpr*ogg` plays each without issue.
Author
Owner

Charles has a custom version of bashpodder and is troubleshooting the issue.

Charles has a custom version of bashpodder and is troubleshooting the issue.
Author
Owner

Confirmed working properly with both the "stock" version of Bashpodder and his revised version

Confirmed working properly with both the "stock" version of Bashpodder and his revised version
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: HPR/hpr_hub#61
No description provided.