from __futre__ import print_function

This commit is contained in:
j 2014-09-30 21:27:26 +02:00
commit ec252440d9
14 changed files with 49 additions and 34 deletions

View file

@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
from __future__ import print_function
import re
from ox import find_re, strip_tags, decode_html
@ -31,7 +32,7 @@ def get_data(url):
del m['video']
m['title'] = strip_tags(decode_html(title)).strip()
if not 'url' in m:
print url, 'missing'
print(url, 'missing')
if 'title' in m:
m['title'] = re.sub('(.*?) \(\d{4}\)$', '\\1', m['title'])