fix(audible): use expected URL patterns for product links (#2390)
This commit is contained in:
@@ -185,7 +185,7 @@ public class AudibleParser implements BookParser, DetailedMetadataProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return UriComponentsBuilder.fromUriString(getExternalBaseURI())
|
return UriComponentsBuilder.fromUriString(getExternalBaseURI())
|
||||||
.path("/dp/{asin}")
|
.path("/pd/{asin}")
|
||||||
.build(asin)
|
.build(asin)
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ public class AudibleParserTest {
|
|||||||
BookMetadata actual = audibleParser.fetchTopMetadata(book, fetchMetadataRequest);
|
BookMetadata actual = audibleParser.fetchTopMetadata(book, fetchMetadataRequest);
|
||||||
|
|
||||||
assertThat(actual).isNotNull();
|
assertThat(actual).isNotNull();
|
||||||
assertThat(actual.getExternalUrl()).isEqualTo("https://www.audible.co.jp/dp/1705047572");
|
assertThat(actual.getExternalUrl()).isEqualTo("https://www.audible.co.jp/pd/1705047572");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@@ -182,7 +182,7 @@ public class AudibleParserTest {
|
|||||||
BookMetadata actual = audibleParser.fetchTopMetadata(book, fetchMetadataRequest);
|
BookMetadata actual = audibleParser.fetchTopMetadata(book, fetchMetadataRequest);
|
||||||
|
|
||||||
assertThat(actual).isNotNull();
|
assertThat(actual).isNotNull();
|
||||||
assertThat(actual.getExternalUrl()).isEqualTo("https://www.audible.com/dp/1705047572");
|
assertThat(actual.getExternalUrl()).isEqualTo("https://www.audible.com/pd/1705047572");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user