OPML top 100 changes
This commit is contained in:
parent
a68ab81427
commit
bfca5567ab
@ -6,7 +6,7 @@
|
|||||||
# link: Link to the main page
|
# link: Link to the main page
|
||||||
# owner_name: Your name
|
# owner_name: Your name
|
||||||
# owner_email: Your e-mail address
|
# owner_email: Your e-mail address
|
||||||
name = OPML Top 100
|
name = Techmeme Leaderboard
|
||||||
link = http://planet.intertwingly.net/top100/
|
link = http://planet.intertwingly.net/top100/
|
||||||
owner_name = Sam Ruby
|
owner_name = Sam Ruby
|
||||||
owner_email = rubys@intertwingly.net
|
owner_email = rubys@intertwingly.net
|
||||||
@ -31,6 +31,10 @@ activity_threshold = 90
|
|||||||
# filters to be run
|
# filters to be run
|
||||||
filters = excerpt.py
|
filters = excerpt.py
|
||||||
|
|
||||||
|
# Don't let any one feed monopolize the output (symptom often occurs when
|
||||||
|
# somebody 'migrates' their weblog.
|
||||||
|
new_feed_items = 4
|
||||||
|
|
||||||
bill_of_materials:
|
bill_of_materials:
|
||||||
.htaccess
|
.htaccess
|
||||||
favicon.ico
|
favicon.ico
|
||||||
@ -49,5 +53,5 @@ filters = mememe.plugin
|
|||||||
sidebar = //*[@id="footer"]
|
sidebar = //*[@id="footer"]
|
||||||
|
|
||||||
# subscription list
|
# subscription list
|
||||||
[http://share.opml.org/opml/top100.opml]
|
[http://www.techmeme.com/lb.opml]
|
||||||
content_type = opml
|
content_type = opml
|
||||||
|
@ -426,7 +426,7 @@ for i in range(0,len(weighted_links)):
|
|||||||
|
|
||||||
# technorati link
|
# technorati link
|
||||||
a = li.newChild(None, 'a', None)
|
a = li.newChild(None, 'a', None)
|
||||||
tlink = 'http://technorati.com/blogs/'
|
tlink = 'http://technorati.com/search/'
|
||||||
if link.startswith('http://'):
|
if link.startswith('http://'):
|
||||||
a.setProp('href',tlink + quote_plus(link[7:]))
|
a.setProp('href',tlink + quote_plus(link[7:]))
|
||||||
else:
|
else:
|
||||||
|
@ -197,11 +197,12 @@ def template_info(source):
|
|||||||
# apply rules to convert feed parser output to htmltmpl input
|
# apply rules to convert feed parser output to htmltmpl input
|
||||||
output = {'Channels': [], 'Items': []}
|
output = {'Channels': [], 'Items': []}
|
||||||
output.update(tmpl_mapper(data.feed, Base))
|
output.update(tmpl_mapper(data.feed, Base))
|
||||||
sources = [(source.get('planet_name',None),source)
|
sources = []
|
||||||
for source in data.feed.get('sources',[])]
|
for feed in data.feed.get('sources',[]):
|
||||||
|
source = tmpl_mapper(feed, Base)
|
||||||
|
sources.append([source.get('name'), source])
|
||||||
sources.sort()
|
sources.sort()
|
||||||
for name, feed in sources:
|
output['Channels'] = [source for name,source in sources]
|
||||||
output['Channels'].append(tmpl_mapper(feed, Base))
|
|
||||||
for entry in data.entries:
|
for entry in data.entries:
|
||||||
output['Items'].append(tmpl_mapper(entry, Items))
|
output['Items'].append(tmpl_mapper(entry, Items))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user