dmnfarrell / dmnfarrell.github.io

my pages
Other
5 stars 2 forks source link

https://dmnfarrell.github.io/general/podcasts-github #13

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Bioinformatics and other bits - How to host your podcast with github

https://dmnfarrell.github.io/general/podcasts-github

Michael833 commented 1 year ago

Thank you so much for this article. I'm trying to do this myself, but without using Jekyll to create new post content. I'm just writing the .xml myself. The trouble that I seem to be having is that I can't figure out where the files go. I have my landing page at

https://GithubUsername.github.io/index.html

and that works perfectly. But when I place my .xml file at

https://GithubUsername.github.io/feed.xml

I get a 404 error and my podcast manager cant find it. I've also tried calling the file podcast.rss and rss.xml. Do you have any suggestions on how to get this working?

dmnfarrell commented 1 year ago

Are you sure the feed.xml is being served at that address? It should be viewable in your web browser too.

Michael833 commented 1 year ago

OK, it seems that Github Pages only refreshes the content every 10 or so minutes. So even though the files are visible on Github, they aren't always immediately visible to the browser. When I came back, I could see the feed.xml file.

This raises a few quick questions:

  1. Is there a functional difference between naming the feed file feed.xml vs. podcast.rss? I've seen it both ways in your example codes.

  2. Can you give me a push in the right direction about foldering? In your example code, everything is in a folder called "podcast-example/" and then in through several sub directories. I can't tell if that's how it needs to be done, or if those are some kind of Pages default tree values.

  3. Sometimes the .xml code refers to the website address, and other times it refers to the Github repo address and I can't figure out when to do which.

    "https://github.com/dmnfarrell/podcast-example/raw/master/audio/jekyll-hyde.mp3" vs, "https://dmnfarrell.github.io/podcast-example/test2.html Are these entirely interchangable?

The goal here, I think, is to have my .xml file in the same folder as my index.html file, and then to have audio files one folder/directory further down (I've been calling that folder "audio/").

Thanks for any help you can provide!

dmnfarrell commented 1 year ago

Sorry for delay in replying.

  1. I don't know if the file has to be called .xml but you probably should. I don't think I have a file called podcast.rss.
  2. I think folder structures can be whatever you want as long as your links work. The ones I have are partly that way because I am using jekyll.
  3. Those address are not interchageable. The first is a link to the raw audio file on github, the second is a normal link under the github pages site. You have to use raw link for the mp3. I would make you file structure as simple as possible and build from that.