mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
New Download Logic
Less Hard Code
This commit is contained in:
parent
9ab3fa57fc
commit
f1088f4f53
@ -105,16 +105,17 @@ class AppleDaily(BasicNewsRecipe):
|
|||||||
relativea = li.find('a', href=True).get('href', False)
|
relativea = li.find('a', href=True).get('href', False)
|
||||||
a = 'http://hkm.appledaily.com/' + relativea
|
a = 'http://hkm.appledaily.com/' + relativea
|
||||||
title = li.find('a', text=True).strip()
|
title = li.find('a', text=True).strip()
|
||||||
if (time.tzname != 'HKT'):
|
# if (time.tzname != 'HKT'):
|
||||||
if (title == u'三藩市'):
|
# if (title == u'三藩市'):
|
||||||
continue
|
# continue
|
||||||
if (title == u'洛杉磯'):
|
# if (title == u'洛杉磯'):
|
||||||
continue
|
# continue
|
||||||
if (title == u'紐 約'):
|
# if (title == u'紐 約'):
|
||||||
continue
|
# continue
|
||||||
if (title == u'美 國'):
|
# if (title == u'美 國'):
|
||||||
continue
|
# continue
|
||||||
if (not title == u'動新聞') and (relativea.startswith('list.php')):
|
# if (not title == u'動新聞') and (relativea.startswith('list.php')):
|
||||||
|
if (relativea.find('category=daily')!= -1 )and (relativea.startswith('list.php')):
|
||||||
sectionList.append((title, a))
|
sectionList.append((title, a))
|
||||||
for title, url in sectionList:
|
for title, url in sectionList:
|
||||||
title = title.replace(" ", "")
|
title = title.replace(" ", "")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user