diff --git a/planet/shell/tmpl.py b/planet/shell/tmpl.py index 8e79eca..8988ad1 100644 --- a/planet/shell/tmpl.py +++ b/planet/shell/tmpl.py @@ -167,8 +167,9 @@ def tmpl_mapper(source, rules): for name,value in source.source.items(): if name.startswith('planet_'): output['channel_' + name[7:]] = String(value) - if not output.get('channel_name'): - output['channel_name'] = source.source.get('title', '') + if not output.get('channel_name') and \ + source.source.has_key('title_detail'): + output['channel_name'] = Plain(source.source.title_detail.value) return output diff --git a/tests/data/filter/tmpl/planet_title_name.xml b/tests/data/filter/tmpl/planet_title_name.xml index ecb5024..828bc9c 100644 --- a/tests/data/filter/tmpl/planet_title_name.xml +++ b/tests/data/filter/tmpl/planet_title_name.xml @@ -1,12 +1,12 @@ - blog title + Señor Frog