mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
the week
This commit is contained in:
parent
a9d42f8183
commit
3cafbb9c0c
@ -4,7 +4,7 @@ from datetime import date
|
||||
from collections import defaultdict
|
||||
|
||||
# figure out your local edition id from the log of this recipe
|
||||
edi_id = 225 # TELANGANA MAIN II - 225
|
||||
edi_id = 34 # HYDERABAD MAIN I - 34
|
||||
|
||||
today = date.today().strftime('%d/%m/%Y')
|
||||
|
||||
|
@ -82,7 +82,7 @@ class TheWeek(BasicNewsRecipe):
|
||||
'culture-life', 'business', 'travel', 'arts-life', 'history'
|
||||
]
|
||||
for sec in sections:
|
||||
a = 'https://news.google.com/rss/search?q=when:{}h+allinurl:{}&hl=en-IN&gl=US&ceid=US:en'
|
||||
a = 'https://news.google.com/rss/search?q=when:{}h+allinurl:{}&hl=en-US&gl=US&ceid=US:en'
|
||||
feeds.append((sec.capitalize(), a.format(when, quote(index + sec, safe=''))))
|
||||
feeds.append(('Others', a.format(when, quote(index, safe=''), '')))
|
||||
|
||||
|
@ -82,7 +82,7 @@ class TheWeek(BasicNewsRecipe):
|
||||
'culture-life', 'business', 'travel', 'arts-life', 'history'
|
||||
]
|
||||
for sec in sections:
|
||||
a = 'https://news.google.com/rss/search?q=when:{}h+allinurl:{}&hl=en-IN&gl=US&ceid=US:en'
|
||||
a = 'https://news.google.com/rss/search?q=when:{}h+allinurl:{}&hl=en-GB&gl=GB&ceid=GB:en'
|
||||
feeds.append((sec.capitalize(), a.format(when, quote(index + sec, safe=''))))
|
||||
feeds.append(('Others', a.format(when, quote(index, safe=''), '')))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user