|
|
@ -67,7 +67,7 @@ def main():
|
|
|
|
if last:
|
|
|
|
if last:
|
|
|
|
videos = [v for v in videos if v['date'] >= last.date]
|
|
|
|
videos = [v for v in videos if v['date'] >= last.date]
|
|
|
|
last_id = last.id
|
|
|
|
last_id = last.id
|
|
|
|
QUOTE = re.compile(r'^\!quote\s+add\s+(.+)$')
|
|
|
|
QUOTE = re.compile(r'^\!quote\s+add\s+(?P<q>")?(?P<text>.+)(?(q)")$')
|
|
|
|
quotes = []
|
|
|
|
quotes = []
|
|
|
|
for video in videos:
|
|
|
|
for video in videos:
|
|
|
|
app.logger.info('Processing video %d (%s)', video['id'], video['title'])
|
|
|
|
app.logger.info('Processing video %d (%s)', video['id'], video['title'])
|
|
|
@ -76,7 +76,7 @@ def main():
|
|
|
|
m = QUOTE.match(comment)
|
|
|
|
m = QUOTE.match(comment)
|
|
|
|
if m:
|
|
|
|
if m:
|
|
|
|
quotes.append(dict(
|
|
|
|
quotes.append(dict(
|
|
|
|
text=m.group(1),
|
|
|
|
text=m.group('text'),
|
|
|
|
video_id=video['id'],
|
|
|
|
video_id=video['id'],
|
|
|
|
game=video['game'],
|
|
|
|
game=video['game'],
|
|
|
|
date=video['date']))
|
|
|
|
date=video['date']))
|
|
|
|