mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
Remove not working recipe
This commit is contained in:
parent
87a3a6e31e
commit
e747de0397
@ -1,38 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
# Based on Lars Jacob's Taz Digiabo recipe
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2010, Starson17'
|
||||
|
||||
import os
|
||||
import zipfile
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
from calibre.ptempfile import PersistentTemporaryFile
|
||||
|
||||
|
||||
class NowToronto(BasicNewsRecipe):
|
||||
title = u'Now Toronto'
|
||||
description = u'Now Toronto'
|
||||
__author__ = 'Starson17'
|
||||
language = 'en_CA'
|
||||
conversion_options = {
|
||||
'no_default_epub_cover': True
|
||||
}
|
||||
|
||||
def build_index(self):
|
||||
epub_feed = "http://feeds.feedburner.com/NowEpubEditions"
|
||||
soup = self.index_to_soup(epub_feed)
|
||||
url = soup.find(name='feedburner:origlink').string
|
||||
raw = self.index_to_soup(url, raw=True)
|
||||
tmp = PersistentTemporaryFile(suffix='.epub')
|
||||
self.report_progress(0, _('downloading epub'))
|
||||
tmp.write(raw)
|
||||
tmp.close()
|
||||
zfile = zipfile.ZipFile(tmp.name, 'r')
|
||||
self.report_progress(0, _('extracting epub'))
|
||||
zfile.extractall(self.output_dir)
|
||||
tmp.close()
|
||||
index = os.path.join(self.output_dir, 'content.opf')
|
||||
self.report_progress(1, _('epub downloaded and extracted'))
|
||||
return index
|
Loading…
x
Reference in New Issue
Block a user