diff options
author | Wojciech Polak <polak@gnu.org> | 2013-06-09 00:19:58 +0200 |
---|---|---|
committer | Wojciech Polak <polak@gnu.org> | 2013-06-09 00:19:58 +0200 |
commit | d681f33b981a1792abfcb0300008a4b281eab0bc (patch) | |
tree | 2f73389eaac46f0c425b937a3691eaac61da0709 | |
parent | 814533bed4e6b8e6e274f6d8c2cf21ec33ba2cd1 (diff) | |
download | glifestream-d681f33b981a1792abfcb0300008a4b281eab0bc.tar.gz glifestream-d681f33b981a1792abfcb0300008a4b281eab0bc.tar.bz2 |
Don't capitalize Vimeo and YouTube titles.
-rw-r--r-- | apis/vimeo.py | 7 | ||||
-rw-r--r-- | apis/youtube.py | 7 |
2 files changed, 6 insertions, 8 deletions
diff --git a/apis/vimeo.py b/apis/vimeo.py index bb847d9..53e29f4 100644 --- a/apis/vimeo.py +++ b/apis/vimeo.py @@ -1,4 +1,4 @@ -# gLifestream Copyright (C) 2009, 2010, 2011 Wojciech Polak +# gLifestream Copyright (C) 2009, 2010, 2011, 2013 Wojciech Polak # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the @@ -13,7 +13,6 @@ # You should have received a copy of the GNU General Public License along # with this program. If not, see <http://www.gnu.org/licenses/>. -from django.template.defaultfilters import title from django.utils.translation import ugettext as _ from glifestream.utils import httpclient from glifestream.utils.time import mtime, now @@ -180,6 +179,6 @@ def get_thumbnail_url(id): def filter_title(entry): if entry.idata == 'liked': - return _('Liked %s') % ('<em>' + title(entry.title) + '</em>') + return _('Liked %s') % ('<em>' + entry.title + '</em>') else: - return _('Published %s') % ('<em>' + title(entry.title) + '</em>') + return _('Published %s') % ('<em>' + entry.title + '</em>') diff --git a/apis/youtube.py b/apis/youtube.py index 3b5d269..ecec35b 100644 --- a/apis/youtube.py +++ b/apis/youtube.py @@ -1,4 +1,4 @@ -# gLifestream Copyright (C) 2009, 2010, 2011 Wojciech Polak +# gLifestream Copyright (C) 2009, 2010, 2011, 2013 Wojciech Polak # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the @@ -13,7 +13,6 @@ # You should have received a copy of the GNU General Public License along # with this program. If not, see <http://www.gnu.org/licenses/>. -from django.template.defaultfilters import title from django.utils.translation import ugettext as _ from glifestream.stream import media import webfeed @@ -63,6 +62,6 @@ class API (webfeed.API): def filter_title(entry): if 'favorite' in entry.guid: - return _('Favorited %s') % ('<em>' + title(entry.title) + '</em>') + return _('Favorited %s') % ('<em>' + entry.title + '</em>') else: - return _('Published %s') % ('<em>' + title(entry.title) + '</em>') + return _('Published %s') % ('<em>' + entry.title + '</em>') |