Commit ac88d120 authored by onny's avatar onny

added podcast plugin for srf virus & orf fm 4 la boum deluxe

parent 2d780cc2
......@@ -38,7 +38,9 @@ from plugins import brmediathek
from plugins import zdfmediathek
#from plugins import facebook
from plugins import error
from plugins import ebaykleinanzeigenapi
#from plugins import ebaykleinanzeigenapi
from plugins import podcasts
import utils
......@@ -59,8 +61,8 @@ app.mount('/feeds/brmediathek',
if __name__ == '__main__':
import logging
import requests
import re
import bottle
from utils import construct_feed, checkParams
# todo
# - favicon
webproxy_prefix_url = ""
virus_podcast_base_url = ""
app = bottle.Bottle()
@checkParams(maxentries = int)
def feed(podcastid, maxentries = 1000):
virus_podcast_feed = requests.get(virus_podcast_base_url + podcastid + ".xml")
virus_podcast_feed.encoding = 'utf-8'
virus_podcast_feed_unblocked = virus_podcast_feed.text.replace("",webproxy_prefix_url+"")
return virus_podcast_feed_unblocked
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment