Update opds.py

IMP: (#2030) Establish unique OPDSRoot to avoid namespace clashes
This commit is contained in:
barbequesauce 2018-07-22 16:47:54 -04:00 committed by evilhero
parent 1cd3543351
commit a4e6564170
1 changed files with 3 additions and 1 deletions

View File

@ -30,6 +30,7 @@ from operator import itemgetter
from cherrypy.lib.static import serve_file, serve_download
import datetime
from mylar.webserve import serve_template
import re
cmd_list = ['root', 'Publishers', 'AllTitles', 'StoryArcs', 'ReadList', 'Comic', 'Publisher', 'Issue', 'StoryArc', 'Recent']
@ -119,7 +120,8 @@ class OPDS(object):
myDB = db.DBConnection()
feed = {}
feed['title'] = 'Mylar OPDS'
feed['id'] = 'OPDSRoot'
currenturi = cherrypy.url()
feed['id'] = re.sub('/', ':', currenturi)
feed['updated'] = mylar.helpers.now()
links = []
entries=[]