Browse Source

Add content header

bryan 5 years ago
parent
commit
aa5ee86a82
1 changed files with 8 additions and 4 deletions
  1. 8 4
      get_podcasts.py

+ 8 - 4
get_podcasts.py

@@ -15,12 +15,15 @@ feedurls = ['http://linuxactionnews.com/rss', \
             'http://wakingup.libsyn.com/rss', \
             'http://feeds.soundcloud.com/users/soundcloud:users:146429914/sounds.rss', \
             'http://billburr.libsyn.com/rss', \
-            'http://feeds.99percentinvisible.org/99percentinvisible', \
-            'http://rss.art19.com/tim-ferriss-show', \
-            'http://feed.thisamericanlife.org/talpodcast']
+            #'http://feeds.99percentinvisible.org/99percentinvisible', \
+            'http://files.libertyfund.org/econtalk/EconTalk.xml', \
+            'http://jamesandthegiantpodcast.libsyn.com/rss', \
+            'http://rss.art19.com/tim-ferriss-show']
+            #'http://feed.thisamericanlife.org/talpodcast']
+            #'https://www.npr.org/rss/podcast.php?id=510019']
 
 # number of old episodes to keep
-old_episodes_keep = 3
+old_episodes_keep = 2
 
 # include episode name in filename (1 = on, 0 = off)
 episode_name_in_filename = 0
@@ -43,6 +46,7 @@ import shutil
 # spoof headers for certain rss feeds
 opener=urllib.request.build_opener()
 opener.addheaders=[('User-Agent','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1941.0 Safari/537.36')]
+opener.addheaders=[('Content-Type', 'application/json')]
 urllib.request.install_opener(opener)
 
 #################################