Skip to content

Latest commit

 

History

History
94 lines (63 loc) · 2.16 KB

README.md

File metadata and controls

94 lines (63 loc) · 2.16 KB

Podcast Publisher

Feed generator package installation

Dependencies

  • ffmpeg
  • python 3 (tested on 3.9 and above)
  • python libraries (installed via Makefile command)
  • gistfile1.py contains references to custom written ffmpeg and ffprobe scripts.

Install

make install

Run

Open two terminal panes (to check traffic on file server)

1st pane:

make run-file-server

2nd pane:

host=<local-ip> port=8080 title='TGS Podcast' dir_to_expose='tgs_podcast'  make run-feed-generator

Acccess

# test
curl <local-ip>:8080/TGS%20Podcast.xml

Enter the url above into the Apple Podcast app.
Your podcast will now appear as subscribed.
For as long as your <local-ip> stays the same, you can use this podcast feed to make episodes available offline.

Automate ssh port-forward

cd bin
go build port-forward-80-linux.go  -o port-forward-80
sudo chown root:root port-forward-80
sudo chmod u+s port-forward-80

Expose all videos instead of podcasts

Note: Very specific to my setup (FS layout).

$ cat ~/Movies/Makefile
SHELL := bash

.PHONY: run-file-server
run-file-server:
    ./.bin/serve-files.sh

$ cat ~/Movies/.bin/serve-files.sh
#!/usr/bin/env bash

set -x

cleanup () {
  cd audio-only && git checkout -- bin/run-file-server.sh
  set +x
}
trap cleanup EXIT

# shellcheck disable=SC2016
sed -i 's#"$PWD"/etc/nginx/conf.d#"$PWD"/audio-only/etc/nginx/conf.d#' audio-only/bin/run-file-server.sh

./audio-only/bin/run-file-server.sh

$ cd ~/Movies && make

Notes on Mac OS

  • Make sure to allow full disk access for /opt/homebrew/bin/bash, Alacritty.app, /bin/bash and /bin/zsh.
  • Also be sure to (since Sequoia) allow Local Network access to Alacritty.app (we have to run it without tmux in plain Alacritty otherwise we will not be able to forward ports on this Mac OS version).