Diff
Differences From Artifact [cfb66a69eb]:
- File channels/reddit.py — part of check-in [09dec64f41] at 2016-12-16 16:26:55 on branch trunk — Reverted all `module = __name__` assignments, because that was carrying the module over, not the base classname. Added #extraction-method: meta information to channel plugins. (user: mario, size: 15638) [annotate] [blame] [check-ins using]
To Artifact [828a881eea]:
- File channels/reddit.py — part of check-in [0c7040e314] at 2016-12-18 14:04:19 on branch trunk — Add more .progress() indication (user: mario, size: 15683) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
236 237 238 239 240 241 242 243 244 245 246 247 248 249 |
elif cat.find("→") > 0:
return self.placeholder
# collect links
data = []
after = None
for i in range(1, int(conf.reddit_pages) + 1):
try:
j = ahttp.get(
"http://www.reddit.com/r/{}/new.json".format(cat.lower()),
{ "sort": "new", "after": after }
)
j = json.loads(j)
except Exception as e:
| > | 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 |
elif cat.find("→") > 0:
return self.placeholder
# collect links
data = []
after = None
for i in range(1, int(conf.reddit_pages) + 1):
self.progress(conf.reddit_pages)
try:
j = ahttp.get(
"http://www.reddit.com/r/{}/new.json".format(cat.lower()),
{ "sort": "new", "after": after }
)
j = json.loads(j)
except Exception as e:
|
| ︙ | ︙ |