div. updates
This commit is contained in:
@@ -5,7 +5,7 @@ import urlparse
|
||||
from src.fb import graph
|
||||
from facebook import GraphAPIError
|
||||
import json
|
||||
|
||||
import gevent
|
||||
|
||||
def fbfeedelement(h):
|
||||
art={}
|
||||
@@ -39,11 +39,11 @@ def fbfeed(url, raw, params={}):
|
||||
arts=[]
|
||||
u=urlparse.urlparse(url)
|
||||
for m in js["data"]:
|
||||
aa=fbfeedelement(m)
|
||||
if not aa.has_key("title"):
|
||||
aa=fbfeedelement(m)
|
||||
if not aa.has_key("title"):
|
||||
aa["title"] = u[1]+ " at " + aa["published"].strftime("%Y-%m-%d %H:%M")
|
||||
aa["section"]="Facebook: "+u[1]
|
||||
arts.append(aa)
|
||||
aa["section"]="Facebook: "+u[1]
|
||||
arts.append(aa)
|
||||
nx=None
|
||||
if js.has_key("paging") and js["paging"].has_key("next"):
|
||||
un=urlparse.urlparse(js["paging"]["next"])
|
||||
|
||||
Reference in New Issue
Block a user