mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
9aeb25d9ac
commit
182ca73155
@ -10,16 +10,14 @@ from datetime import date
|
|||||||
# for example, replace 'cap' with 'toih', if you want Hyderabad edition.
|
# for example, replace 'cap' with 'toih', if you want Hyderabad edition.
|
||||||
le = 'cap' # local edition;
|
le = 'cap' # local edition;
|
||||||
|
|
||||||
|
|
||||||
date0 = date.today().strftime('%Y/%m/%d')
|
date0 = date.today().strftime('%Y/%m/%d')
|
||||||
date_ = date.today().strftime('%d_%m_%Y')
|
|
||||||
|
|
||||||
# for older edition change both date0 and date_ below.
|
# for older edition change date0 below.
|
||||||
# date0 = '2023/09/15'
|
# date0 = '2023/09/15'
|
||||||
# date_ = '15_09_2023'
|
|
||||||
|
|
||||||
year, month, day = (int(x) for x in date0.split('/'))
|
year, month, day = (int(x) for x in date0.split('/'))
|
||||||
dt = date(year, month, day)
|
dt = date(year, month, day)
|
||||||
|
date_ = dt.strftime('%d_%m_%Y')
|
||||||
|
|
||||||
index = 'https://asset.harnscloud.com/PublicationData/TOI/' + le + '/' + date0
|
index = 'https://asset.harnscloud.com/PublicationData/TOI/' + le + '/' + date0
|
||||||
img_index = 'https://cmsimages.timesgroup.com/image-resizer?epaper_s3_path=PublicationData/TOI/' + le + '/' + date0
|
img_index = 'https://cmsimages.timesgroup.com/image-resizer?epaper_s3_path=PublicationData/TOI/' + le + '/' + date0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user