mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Removed some old plugin code
This commit is contained in:
parent
7e2af2e781
commit
5ce55e644c
@ -379,7 +379,7 @@ class %(classname)s(%(base_class)s):
|
|||||||
return
|
return
|
||||||
|
|
||||||
skip_dialog_name='replace_recipes'
|
skip_dialog_name='replace_recipes'
|
||||||
opml = OPML(self.oldest_article.value(), self.max_articles.value());
|
opml = OPML()
|
||||||
add_recipes_map = {}
|
add_recipes_map = {}
|
||||||
replace_recipes_map = {}
|
replace_recipes_map = {}
|
||||||
for opml_file in opml_files:
|
for opml_file in opml_files:
|
||||||
|
@ -2,16 +2,13 @@ __license__ = 'GPL 3'
|
|||||||
__copyright__ = '2014, Kenny Billiau <kennybilliau@gmail.co'
|
__copyright__ = '2014, Kenny Billiau <kennybilliau@gmail.co'
|
||||||
__docformat__ = 'restructuredtext en'
|
__docformat__ = 'restructuredtext en'
|
||||||
|
|
||||||
import time
|
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
|
|
||||||
class OPML(object):
|
class OPML(object):
|
||||||
|
|
||||||
def __init__(self, oldest_article = 7, max_articles = 100):
|
def __init__(self):
|
||||||
self.doc = None # xml document
|
self.doc = None # xml document
|
||||||
self.outlines = None # parsed outline objects
|
self.outlines = None # parsed outline objects
|
||||||
self.oldest_article = oldest_article
|
|
||||||
self.max_articles = max_articles
|
|
||||||
|
|
||||||
def load(self, filename):
|
def load(self, filename):
|
||||||
tree = ET.parse(filename)
|
tree = ET.parse(filename)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user