Skip to content

Commit e9c93cd

Browse files
authored
Merge pull request #52 from SamTV12345/develop
Develop
2 parents a69b17c + 1f84e42 commit e9c93cd

File tree

6 files changed

+11
-2
lines changed

6 files changed

+11
-2
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ static/*
77

88
!static/default.jpg
99
podcast.db-shm
10-
podcast.db-wal
10+
podcast.db-wal
11+
12+
static/*.jpg

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ COPY --from=builder /app/src/target/release/podgrabv2 /app/podgrabv2
4848
COPY --from=builder /app/src/migrations /app/migrations
4949
COPY --from=builder /app/src/db /app/db
5050
COPY --from=ui-builder /app/dist /app/static
51+
COPY ./docs/default.jpg /app/static/default.jpg
5152

5253
EXPOSE 8000
5354
CMD ["./podgrabv2"]

Dockerfile_arm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ COPY --from=builder /app/src/target/release/podgrabv2 /app/podgrabv2
5252
COPY --from=builder /app/src/migrations /app/migrations
5353
COPY --from=builder /app/src/db /app/db
5454
COPY --from=ui-builder /app/dist /app/static
55+
COPY ./docs/default.jpg /app/static/default.jpg
5556

5657

5758
EXPOSE 8000

Dockerfile_build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ COPY --from=builder /app/src/target/release/podgrabv2 /app/podgrabv2
4848
COPY --from=builder /app/src/migrations /app/migrations
4949
COPY --from=builder /app/src/db /app/db
5050
COPY --from=ui-builder /app/dist /app/static
51+
COPY ./docs/default.jpg /app/static/default.jpg
5152

5253
EXPOSE 8000
5354
CMD ["./podgrabv2"]
File renamed without changes.

src/controllers/podcast_controller.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,11 @@ async fn insert_outline(
343343

344344
let image_url = match channel.image {
345345
Some(image) => image.url,
346-
None => environment.server_url.clone().to_owned() + "ui/default.jpg",
346+
None => {
347+
println!("No image found for podcast. Downloading from {}",environment.server_url
348+
.clone().to_owned() + "ui/default.jpg");
349+
environment.server_url.clone().to_owned() + "ui/default.jpg"
350+
},
347351
};
348352

349353
podcast_service

0 commit comments

Comments
 (0)