diff --git a/src/config/config.py b/src/config/config.py index a42feaa..6b79b3c 100644 --- a/src/config/config.py +++ b/src/config/config.py @@ -1,11 +1,11 @@ __author__ = 'dev' Config = { - "FeedLinkTypes" : {"audio/mpeg","application/x-bittorrent", "audio/opus"}, + "FeedLinkTypes" : {"audio/mpeg","application/x-bittorrent", "audio/opus", "audio/x-mp3", "audio/x-opus"}, "FeedTypes" : {"podcast","rss"}, - "FeedStorageFolder" : "testfeeds", + "FeedStorageFolder" : "feeds", "FeedStoragePrefix" : { "0" : "FeedType", "1" : "FeedName"}, "ConfigFileSuffix" : "-config", "ConfigFileExtension" : ".json", "TorrentStorageFolder": "testtorrents", -} \ No newline at end of file +} diff --git a/src/ui/web/cgi/cgi_server.py b/src/ui/web/cgi/cgi_server.py index 1fdef61..b63d974 100644 --- a/src/ui/web/cgi/cgi_server.py +++ b/src/ui/web/cgi/cgi_server.py @@ -16,6 +16,6 @@ def runServer(workingDir, serverAddress=('',8080)): for file in glob.glob('*.py'): os.chmod(file, stat.S_IXUSR | stat.S_IWUSR | stat.S_IRUSR) - os.chdir('..') + os.chdir(workingDir) server = HTTPServer(serverAddress, CGIHTTPRequestHandler) - server.serve_forever() \ No newline at end of file + server.serve_forever() diff --git a/src/ui/web/cgi/pages/FileLoader.py b/src/ui/web/cgi/pages/FileLoader.py index 8d0267f..a030279 100644 --- a/src/ui/web/cgi/pages/FileLoader.py +++ b/src/ui/web/cgi/pages/FileLoader.py @@ -42,7 +42,8 @@ page = '''Content-Type: text/html