Change rss entry from id to link (#150)

Uri -> Link
This commit is contained in:
Kavin 2021-12-20 14:36:20 +00:00 committed by GitHub
parent b0872ce414
commit 4c317a6158
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -376,7 +376,7 @@ public class ResponseHelper {
StreamInfoItem item = o;
SyndEntry entry = new SyndEntryImpl();
entry.setAuthor(item.getUploaderName());
entry.setUri(item.getUrl());
entry.setLink(item.getUrl());
entry.setTitle(item.getName());
entries.add(entry);
});
@ -822,7 +822,7 @@ public class ResponseHelper {
entry.setAuthors(Collections.singletonList(person));
entry.setUri(Constants.FRONTEND_URL + "/watch?v=" + video.getId());
entry.setLink(Constants.FRONTEND_URL + "/watch?v=" + video.getId());
entry.setTitle(video.getTitle());
entry.setPublishedDate(new Date(video.getUploaded()));
entries.add(entry);