Commit 4eb85928 authored by Camilo Higuita's avatar Camilo Higuita

correct youtube integration for beta release

parent 77450b4f
......@@ -501,6 +501,19 @@ bool CollectionDB::addPlaylist(const QString &title)
return false;
}
bool CollectionDB::trackPlaylist(const QString &url, const QString &playlist)
{
QVariantMap map {{KEYMAP[KEY::PLAYLIST],playlist},
{KEYMAP[KEY::URL],url},
{KEYMAP[KEY::ADD_DATE],QDate::currentDate()}};
if(insert(TABLEMAP[TABLE::TRACKS_PLAYLISTS],map))
return true;
return false;
}
bool CollectionDB::addFolder(const QString &url)
{
QVariantMap map {{KEYMAP[KEY::URL],url},
......
......@@ -64,7 +64,7 @@ class CollectionDB : public QObject
bool tagsAlbum(const BAE::DB &track, const QString &value, const QString &context = "");
Q_INVOKABLE bool addPlaylist(const QString &title);
bool trackPlaylist(const QString &url, const QString &playlist);
bool addFolder(const QString &url);
bool removeFolder(const QString &url);
......
......@@ -236,17 +236,17 @@ Kirigami.ApplicationWindow
{
pageStack.currentIndex = 1
currentView = viewsIndex.search
searchView.searchInput.forceActiveFocus()
}
}
footer: ToolBar
footer: Item
{
id: playbackControls
height: visible ? headerHeight : 0
width: root.width
visible: true
focus: true
position: ToolBar.Footer
FastBlur
{
......@@ -737,6 +737,7 @@ Kirigami.ApplicationWindow
SearchTable
{
id: searchView
Connections
{
target: searchView.searchTable
......
......@@ -195,7 +195,7 @@ void YouTube::processFinished_totally(const int &state,const DB &info,const QPro
CollectionDB con(nullptr);
con.addTrack(trackMap);
// con.trackPlaylist({file}, track[KEY::PLAYLIST]);
con.trackPlaylist({file}, track[KEY::PLAYLIST]);
if(this->ids.isEmpty()) emit this->done();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment