mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
 Use publication date in title instead of current date
A follow up to this https://github.com/kovidgoyal/calibre/pull/1665 that implements this for the Economist.
This commit is contained in:
parent
19e50d4fed
commit
35077c15e0
@ -270,7 +270,8 @@ class Economist(BasicNewsRecipe):
|
|||||||
def publication_date(self):
|
def publication_date(self):
|
||||||
if edition_date:
|
if edition_date:
|
||||||
return parse_only_date(edition_date, as_utc=False)
|
return parse_only_date(edition_date, as_utc=False)
|
||||||
return BasicNewsRecipe.publication_date(self)
|
url = self.browser.open("https://www.economist.com/printedition").geturl()
|
||||||
|
return parse_only_date(url.split("/")[-1], as_utc=False)
|
||||||
|
|
||||||
def parse_index(self):
|
def parse_index(self):
|
||||||
# return [('Articles', [{'title':'test',
|
# return [('Articles', [{'title':'test',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user