]> git.sur5r.net Git - minitube/blobdiff - src/yt/ytjs/ytjschannelsource.cpp
Update upstream source from tag 'upstream/3.8.1'
[minitube] / src / yt / ytjs / ytjschannelsource.cpp
index f09bbabc986853908155398ce53dad59eb07a850..a38264006fb84e26633a76cf9b8b3fe5de056c49 100644 (file)
@@ -76,8 +76,6 @@ void YTJSChannelSource::loadVideos(int max, int startIndex) {
             .onJson([this](auto &doc) {
                 auto obj = doc.object();
 
-                qDebug() << doc.toJson();
-
                 continuation = obj["continuation"].toString();
 
                 const auto items = obj["items"].toArray();
@@ -123,7 +121,7 @@ void YTJSChannelSource::loadVideos(int max, int startIndex) {
 
                     QString channelName = i["author"].toString();
                     if (channelName != name) {
-                        this->name = channelName;
+                        name = channelName;
                         emit nameChanged(name);
                     }
                     video->setChannelTitle(channelName);