Skip to content

Commit

Permalink
Fixed not including the source id when scraping a series [#24]
Browse files Browse the repository at this point in the history
  • Loading branch information
mcpierce committed Aug 4, 2024
1 parent 3a317e7 commit 0e21482
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,11 @@ public List<IssueDetailsMetadata> execute() throws MetadataException {
final ComicVineIssue issue = response.getResults().getIssues().get(index);

final IssueDetailsMetadata entry = new IssueDetailsMetadata();
entry.setPublisher(response.getResults().getPublisher().getName());
entry.setSeries(response.getResults().getName());
entry.setIssueNumber(issue.getIssueNumber());
entry.setVolume(response.getResults().getStartYear());
entry.setSourceId(issue.getId());
entry.setPublisher(response.getResults().getPublisher().getName().trim());
entry.setSeries(response.getResults().getName().trim());
entry.setIssueNumber(issue.getIssueNumber().trim());
entry.setVolume(response.getResults().getStartYear().trim());
entry.setTitle(issue.getTitle());
entry.setCoverDate(issue.getCoverDate());
entry.setStoreDate(issue.getStoreDate());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
* @author Darryl L. Pierce
*/
public class ComicVineVolumeDetail {
@JsonProperty("id")
@Getter
private String id;

@JsonProperty("issues")
@Getter
private List<ComicVineIssue> issues;
Expand Down

0 comments on commit 0e21482

Please sign in to comment.