mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-08 13:42:27 +05:30
Merge 8fa119f939
into 4782a67038
This commit is contained in:
commit
0b914ad70f
@ -310,7 +310,9 @@ struct Invidious::User
|
||||
|
||||
db = DB.open("sqlite3://" + tempfile.path)
|
||||
|
||||
user.watched += db.query_all("SELECT url FROM streams", as: String)
|
||||
user.watched += db.query_all(
|
||||
"SELECT s.url FROM streams s JOIN stream_history sh ON s.uid = sh.stream_id",
|
||||
as: String)
|
||||
.map(&.lchop("https://www.youtube.com/watch?v="))
|
||||
|
||||
user.watched.uniq!
|
||||
|
Loading…
Reference in New Issue
Block a user