Compare commits
No commits in common. "2215e5e925199df19167efb80f40f6e5f4a9be4d" and "36ff9c7d018dddd5d4002bad72dd36e7e96dd3b3" have entirely different histories.
2215e5e925
...
36ff9c7d01
10
config.py
10
config.py
@ -1,14 +1,10 @@
|
|||||||
import os
|
import os
|
||||||
from werkzeug.security import generate_password_hash
|
from werkzeug.security import generate_password_hash
|
||||||
from sys import platform
|
|
||||||
|
|
||||||
#CONTENT_BASE_DIR = os.getenv("CONTENT_BASE_DIR", "/library") #docker
|
#CONTENT_BASE_DIR = os.getenv("CONTENT_BASE_DIR", "/library") #docker
|
||||||
|
#CONTENT_BASE_DIR = os.getenv("CONTENT_BASE_DIR", "/home/drudoo/ComicsTest/Comics") #linux
|
||||||
if platform == "linux" or platform == "linux2":
|
CONTENT_BASE_DIR = os.getenv("CONTENT_BASE_DIR", "/Comics/ComicRack") #windows
|
||||||
CONTENT_BASE_DIR = os.getenv("CONTENT_BASE_DIR", "/home/drudoo/ComicsTest/Comics") #linux
|
#CONTENT_BASE_DIR = os.getenv("CONTENT_BASE_DIR", "testlibrary") #windows test library
|
||||||
elif platform == "win32":
|
|
||||||
CONTENT_BASE_DIR = os.getenv("CONTENT_BASE_DIR", "/Comics/ComicRack") #windows
|
|
||||||
#CONTENT_BASE_DIR = os.getenv("CONTENT_BASE_DIR", "testlibrary") #windows test library
|
|
||||||
|
|
||||||
THUMBNAIL_DIR = os.getenv("THUMBNAIL_DIR",'thumbnails')
|
THUMBNAIL_DIR = os.getenv("THUMBNAIL_DIR",'thumbnails')
|
||||||
|
|
||||||
|
@ -63,18 +63,8 @@ class Entry(object):
|
|||||||
self.size = extras.get_size(f, 'mb')
|
self.size = extras.get_size(f, 'mb')
|
||||||
data=BeautifulSoup(s.open('ComicInfo.xml').read(), "xml")
|
data=BeautifulSoup(s.open('ComicInfo.xml').read(), "xml")
|
||||||
#self.cover=s.open('P00001.jpg').read()
|
#self.cover=s.open('P00001.jpg').read()
|
||||||
|
self.authors = data.select('Writer')[0].text.split(",")
|
||||||
if data.select('Writer') != []:
|
|
||||||
self.authors = data.select('Writer')[0].text.split(",")
|
|
||||||
else:
|
|
||||||
config._print("No Writer found: " + str(data.select('Writer')))
|
|
||||||
|
|
||||||
self.cover = "/image/" + extras.get_cvdb(data.select('Notes')) + ".jpg"
|
self.cover = "/image/" + extras.get_cvdb(data.select('Notes')) + ".jpg"
|
||||||
|
|
||||||
if data.select('Summary') != []:
|
|
||||||
self.summary = data.select('Summary')[0].text
|
|
||||||
else:
|
|
||||||
config._print("No Summary found: " + str(data.select('Summary')))
|
|
||||||
|
|
||||||
|
|
||||||
#print(data)
|
#print(data)
|
||||||
|
@ -27,10 +27,10 @@
|
|||||||
<entry>
|
<entry>
|
||||||
<title>{{ entry.title }}</title>
|
<title>{{ entry.title }}</title>
|
||||||
<id>{{ entry.id }}</id>
|
<id>{{ entry.id }}</id>
|
||||||
<summary type="text">{{ entry.summary }}</summary>
|
|
||||||
{% for author in entry.authors %}
|
{% for author in entry.authors %}
|
||||||
<author>
|
<author>
|
||||||
<name>{{ author }}</name>
|
<name>{{ author }}</name>
|
||||||
|
<uri></uri>
|
||||||
</author>
|
</author>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if entry.updated %} <updated>{{ entry.updated }}</updated> {% endif %}
|
{% if entry.updated %} <updated>{{ entry.updated }}</updated> {% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user