Mercurial > minori
diff src/gui/window.cpp @ 80:825506f0e221
[UNFINISHED]: stuff
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Fri, 13 Oct 2023 13:15:19 -0400 |
parents | c489dd4434af |
children |
line wrap: on
line diff
--- a/src/gui/window.cpp Thu Oct 12 11:31:39 2023 -0400 +++ b/src/gui/window.cpp Fri Oct 13 13:15:19 2023 -0400 @@ -96,14 +96,14 @@ NowPlayingPage* page = reinterpret_cast<NowPlayingPage*>(stack->widget(static_cast<int>(Pages::NOW_PLAYING))); Filesystem::Path p = Track::Media::GetCurrentPlaying(); - std::string title = Track::Media::GetFileTitle(p); - int id = Anime::db.GetAnimeFromTitle(title); + std::unordered_map<std::string, std::string> elements = Track::Media::GetFileElements(p); + int id = Anime::db.GetAnimeFromTitle(elements["title"]); if (id == 0) { page->SetDefault(); return; } - page->SetPlaying(id, -1); + page->SetPlaying(id, elements); }); timer->start(5000);