projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use an album modifier for setting title, description, and album image.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
core
/
SoneDownloader.java
diff --git
a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java
b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java
index
9af6328
..
eaf56a9
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/core/SoneDownloader.java
+++ b/
src/main/java/net/pterodactylus/sone/core/SoneDownloader.java
@@
-468,7
+468,7
@@
public class SoneDownloader extends AbstractService {
return null;
}
}
return null;
}
}
- Album album = core.getAlbum(id).setSone(sone).
setTitle(title).setDescription(description
);
+ Album album = core.getAlbum(id).setSone(sone).
modify().setTitle(title).setDescription(description).update(
);
if (parent != null) {
parent.addAlbum(album);
} else {
if (parent != null) {
parent.addAlbum(album);
} else {
@@
-501,7
+501,7
@@
public class SoneDownloader extends AbstractService {
album.addImage(image);
}
}
album.addImage(image);
}
}
- album.
setAlbumImage(albumImageId
);
+ album.
modify().setAlbumImage(albumImageId).update(
);
}
}
}
}