Remove needless leading and trailing spaces in feed or episode title

This commit is contained in:
Martin Fietz 2015-08-31 10:58:43 +02:00
parent ad0212c039
commit ff7b5de144
1 changed files with 4 additions and 3 deletions

View File

@ -119,13 +119,14 @@ public class NSRSS20 extends Namespace {
state.getCurrentItem().setItemIdentifier(content);
}
} else if (top.equals(TITLE)) {
String title = content.trim();
if (second.equals(ITEM)) {
state.getCurrentItem().setTitle(content);
state.getCurrentItem().setTitle(title);
} else if (second.equals(CHANNEL)) {
state.getFeed().setTitle(content);
state.getFeed().setTitle(title);
} else if (second.equals(IMAGE) && third != null
&& third.equals(CHANNEL)) {
state.getFeed().getImage().setTitle(content);
state.getFeed().getImage().setTitle(title);
}
} else if (top.equals(LINK)) {
if (second.equals(CHANNEL)) {