Skip to main content

in reply to henry ✷

@henry ✷ I've thought about it, but there are soooooo many variations on the protocol. It turns out that Really Simple Syndication is not actually that simple.
in reply to Jonathan Lamothe

@Jonathan Lamothe @henry ✷ Yeah - but there's like 4 required items - it's trivial to just support those. You can also take some of the really simple ones which generate you a boring html and then style it yourself and make a wrapper incredibly trivially.
in reply to silverwizard

@silverwizard
Just getting the if-modified-since and ratelimiting right can be a pita, especially when you're scheduling (say) fetching rss feeds from a pile of sources on youtube and they have an aggressive global rate limit

@me @henry

in reply to silverwizard

@silverwizard @me Sure, but there's a lot of broken-ass RSS/Atom out there. Is it hard to make it fault tolerant enough to get what you need? Probably not. Is this really what I want to spend my limited time on earth futzing with? No, it turns out.
in reply to silverwizard

@silverwizard @me For me, it was writing a central podcast server that could continue to listen to my podcast from a variety of devices. Which is something I'm pretty sure still doesn't exist. But it turns out I can just use my phone and it's fine.
in reply to Darcy Casselman

@Darcy Casselman @Jonathan Lamothe Oh hey! I did that! What did you use?
I have a little nightly script that deletes the items not in my MPC playlist, then use castget to grab all my feeds, and then it takes everything not in the MPC playlist and then adds it to the end of the MPC playlist, then there's an icecast server to listen to it from everywhere! MPC is running in consume mode, so when a podcast episode ends, it gets removed from the playlist.
in reply to silverwizard

@silverwizard @me I was writing it from scratch in python. Which was my first mistake. Also, this was a decade ago.
in reply to Darcy Casselman

@Darcy Casselman @Jonathan Lamothe When in doubt, cron and shell. It's all glue!

podcasts$ cat nightly.sh                                                                                                                                                                      
#!/bin/ksh
MPD_HOST='REDACTED@podcasts.obscuritus.ca'
cd /home/silverwizard/Podcasts
/home/silverwizard/remove.sh
/usr/local/bin/castget
/home/silverwizard/add.sh
podcasts$ 
podcasts$ cat add.sh                                                                                                                                                                          
#!/bin/sh
cd /home/silverwizard
/usr/local/bin/mpc update --wait
IFS='
'
for file in `./prune`
do
        echo "Adding " $file
        echo $file | /usr/local/bin/mpc add
done
podcasts$ cat remove.sh                                                                                                                                                                       
#!/bin/sh
cd /home/silverwizard
IFS='
'
for file in `./prune`
do
        rm -v Podcasts/$file
done
podcasts$ cat prune                                                                                                                                                                           
#!/bin/ksh
ls /home/silverwizard/Podcasts | sort > /home/silverwizard/current
mpc -f %file% playlist|sort | diff /home/silverwizard/current -|grep "[ogg|mp3|m4a|opus]"|grep "^<"|sed -e "s/^< //"
podcasts$ 

This website uses cookies. If you continue browsing this website, you agree to the usage of cookies.