Fix deleting downloaded episode removes from queue (#7151)

This commit is contained in:
flofriday 2024-05-01 11:33:48 +02:00 committed by GitHub
parent b877344a7e
commit 3ed5b8af8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -171,6 +171,9 @@ public class FeedItem implements Serializable {
public void setId(long id) {
this.id = id;
if (this.media != null) {
media.setItemId(id);
}
}
/**

View File

@ -58,6 +58,7 @@ public class FeedMedia implements Playable {
this.downloadUrl = downloadUrl;
this.downloaded = false;
this.item = i;
this.itemID = i != null ? i.getId() : 0;
this.size = size;
this.mimeType = mimeType;
}
@ -71,6 +72,7 @@ public class FeedMedia implements Playable {
this.downloaded = downloaded;
this.id = id;
this.item = item;
this.itemID = item != null ? item.getId() : 0;
this.duration = duration;
this.position = position;
this.playedDuration = playedDuration;
@ -251,6 +253,7 @@ public class FeedMedia implements Playable {
*/
public void setItem(FeedItem item) {
this.item = item;
this.itemID = item != null ? item.getId() : 0;
if (item != null && item.getMedia() != this) {
item.setMedia(this);
}