radiofrance: Fix crash when there is no author

Triggered by FIP at night.
Also force unicode when merging titles.
This commit is contained in:
Laurent Bachelier 2012-03-14 23:54:39 +01:00
commit 0e0bf2ad37
2 changed files with 3 additions and 1 deletions

View file

@ -102,6 +102,8 @@ class DataPage(BasePage):
artist = unicode(artist).strip()
ftitle = document.findtext('//div[@class="subtitle"]')
title = unicode(ftitle).strip() if ftitle else title
else:
artist = None
return (artist, title)