Skip to content

Commit b4a0e08

Browse files
TobiGrStypox
andauthored
Update app/src/main/java/org/schabi/newpipe/database/feed/dao/FeedDAO.kt
Co-authored-by: Stypox <stypox@pm.me>
1 parent 5265b76 commit b4a0e08

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • app/src/main/java/org/schabi/newpipe/database/feed/dao

app/src/main/java/org/schabi/newpipe/database/feed/dao/FeedDAO.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,10 @@ abstract class FeedDAO {
107107
WHERE feed.stream_id IN (SELECT uid from (
108108
SELECT s.uid,
109109
(SELECT MAX(upload_date)
110-
FROM streams
111-
WHERE uploader_url = s.uploader_url) max_upload_date
110+
FROM streams s1
111+
INNER JOIN feed f1
112+
ON s1.uid = f1.stream_id
113+
WHERE f1.subscription_id = f.subscription_id) max_upload_date
112114
FROM streams s
113115
INNER JOIN feed f
114116
ON s.uid = f.stream_id

0 commit comments

Comments
 (0)