diff options
author | Luo Jinghua <sunmoon1997@gmail.com> | 2010-11-15 12:16:06 +0800 |
---|---|---|
committer | Luo Jinghua <sunmoon1997@gmail.com> | 2010-11-15 12:16:06 +0800 |
commit | 6d9fc808200f293c730b04d6938f919f55b02e20 (patch) | |
tree | a6c6e2216ec7498f9b9874993148ece03c8ba999 | |
parent | a78954360daff842aea33f9b36a57af289aeb7bf (diff) |
ppstream: don't add description to tooltip if it's empty
-rw-r--r-- | totem/plugin/ppstream.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/totem/plugin/ppstream.py b/totem/plugin/ppstream.py index f31b2c3..b88fda4 100644 --- a/totem/plugin/ppstream.py +++ b/totem/plugin/ppstream.py @@ -1122,7 +1122,8 @@ class PPStream (totem.Plugin): if movie.length: tip += '\n' + _("Length: ") + str(movie.length) + _('Min') tip += '\n' + _("Score: ") + str(movie.score) - tip += '\n' + _("Description: ") + '\n' + movie.desc + if movie.desc: + tip += '\n' + _("Description: ") + '\n' + movie.desc if hasattr(file, 'longdesc'): tip += '\n' + _("Long Description: ") + movie.longdesc |