Skip to content

Instantly share code, notes, and snippets.

@KennyStier
Last active August 29, 2015 14:20
Show Gist options
  • Save KennyStier/42a318a02f45553d5cec to your computer and use it in GitHub Desktop.
Save KennyStier/42a318a02f45553d5cec to your computer and use it in GitHub Desktop.
Linux Unplugged HD Feed Generator
#!/bin/bash
# SD JB RSS Feed URL
oldfeedurl="http://feeds.feedburner.com/linuxunvid.xml"
oldfeedname="sdfeed.xml"
newfeedname="hdfeed.xml"
# Download a JB Podcast
wget -O $oldfeedname $oldfeedurl
# Remove the string "-432p" from the video URLs (the HD URLs doesn't have that string)
sed -i 's/-432p//g' $oldfeedname
# Rename the RSS Feed
mv -f $oldfeedname $newfeedname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment