Skip to content

Commit

Permalink
Fixed bug in sonarr debug test
Browse files Browse the repository at this point in the history
  • Loading branch information
petersem committed Jan 31, 2024
1 parent bd25d2a commit 3826eb3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
8 changes: 8 additions & 0 deletions classes/arr/sonarr.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ class Sonarr {
async GetComingSoonRawData(startDate, endDate) {
let response;

// console.log( this.sonarrUrl +
// "/api/v3/calendar?apikey=" +
// this.sonarrToken +
// "&start=" +
// startDate +
// "&end=" + endDate
// );

// call sonarr API and return results
try {
response = await axios
Expand Down
5 changes: 3 additions & 2 deletions classes/core/health.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ async SonarrCheck() {
response = await axios
.get(
this.settings.sonarrURL +
"/api/calendar?apikey=" +
"/api/v3/calendar?apikey=" +
this.settings.sonarrToken +
"&start=" +
startDate +
Expand All @@ -124,8 +124,9 @@ async SonarrCheck() {
);
throw err;
}
// console.log(response.data);
response.data.forEach(tvShow => {
console.log(tvShow.series.title,tvShow.title,tvShow.airDate);
console.log(tvShow.title,tvShow.airDate);
});
return;
}
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ services:
- /c/docker/posterr/custom:/usr/src/app/public/custom
- /c/docker/posterr/config:/usr/src/app/config
ports:
- 9877:3000
- 9876:3000

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "posterr",
"version": "1.16.9",
"version": "1.16.10",
"description": "A digital display for your media",
"main": "index.js",
"bin": "index.js",
Expand Down

0 comments on commit 3826eb3

Please sign in to comment.