Skip to content

Commit 0a3dd3e

Browse files
committed
Changed OPDS series labels back to Series [#2331]
1 parent a78171a commit 0a3dd3e

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

comixed-opds/src/main/java/org/comixedproject/opds/service/OPDSNavigationService.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public OPDSNavigationFeed getLibraryFeed(final boolean unread) {
145145
response.getEntries().add(entry);
146146

147147
log.trace("Adding series link");
148-
entry = new OPDSNavigationFeedEntry("SeriesDetail", String.valueOf(SERIES_ID));
148+
entry = new OPDSNavigationFeedEntry("Series", String.valueOf(SERIES_ID));
149149
entry.setContent(new OPDSNavigationFeedContent("All Series"));
150150
entry
151151
.getLinks()
@@ -301,7 +301,7 @@ public OPDSNavigationFeed getVolumeFeedForPublisherAndSeries(
301301
final String selfHref =
302302
String.format("%s?unread=%s", this.opdsUtils.urlEncodeString(series), unread);
303303
OPDSNavigationFeed result =
304-
new OPDSNavigationFeed(String.format("SeriesDetail: %s", series), selfHref);
304+
new OPDSNavigationFeed(String.format("Series: %s", series), selfHref);
305305
result.getLinks().add(new OPDSLink(NAVIGATION_FEED_LINK_TYPE, SELF, selfHref));
306306
this.comicDetailService
307307
.getAllVolumesForPublisherAndSeries(publisher, series, email, unread)
@@ -341,7 +341,7 @@ public OPDSNavigationFeed getVolumeFeedForPublisherAndSeries(
341341
public OPDSNavigationFeed getRootFeedForSeries(final String email, final boolean unread) {
342342
log.trace("Loading root feed for series");
343343
final String selfHref = String.format("series?unread=%s", unread);
344-
final OPDSNavigationFeed feed = new OPDSNavigationFeed("SeriesDetail", selfHref);
344+
final OPDSNavigationFeed feed = new OPDSNavigationFeed("Series", selfHref);
345345
feed.getLinks().add(new OPDSLink(NAVIGATION_FEED_LINK_TYPE, SELF, selfHref));
346346
this.comicDetailService.getAllSeries(email, unread).stream()
347347
.map(
@@ -386,8 +386,7 @@ public OPDSNavigationFeed getPublishersFeedForSeries(
386386
log.trace("Loading volumes feed for series: {}", name);
387387
final String selfHref =
388388
String.format("%s?unread=%s", this.opdsUtils.urlEncodeString(name), unread);
389-
OPDSNavigationFeed result =
390-
new OPDSNavigationFeed(String.format("SeriesDetail: %s", name), selfHref);
389+
OPDSNavigationFeed result = new OPDSNavigationFeed(String.format("Series: %s", name), selfHref);
391390
result.getLinks().add(new OPDSLink(NAVIGATION_FEED_LINK_TYPE, SELF, selfHref));
392391
this.comicDetailService.getAllPublishersForSeries(name, email, unread).stream()
393392
.forEach(

comixed-opds/src/test/java/org/comixedproject/opds/rest/OPDSPublisherControllerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class OPDSPublisherControllerTest {
4646
private static final String TEST_PUBLISHER_ENCODED = "The+Publisher";
4747
private static final String TEST_PUBLISHER = "The Publisher";
4848
private static final boolean TEST_UNREAD = RandomUtils.nextBoolean();
49-
private static final String TEST_SERIES_ENCODED = "The+SeriesDetail+Name";
49+
private static final String TEST_SERIES_ENCODED = "The+Series+Name";
5050
private static final String TEST_SERIES = "The Series Name";
5151
private static final String TEST_VOLUME_ENCODED = "The+Volume";
5252
private static final String TEST_VOLUME = "The Volume";

0 commit comments

Comments
 (0)