}
void YTSearch::loadVideos(int max, int skip) {
- this->aborted = false;
+ aborted = false;
QUrl url("https://gdata.youtube.com/feeds/api/videos/");
url.addQueryItem("v", "2");
QList<Video*> videos = reader.getVideos();
suggestions = reader.getSuggestions();
- if (!searchParams->author().isEmpty()) {
+ if (name.isEmpty() && !searchParams->author().isEmpty()) {
if (videos.isEmpty()) name = searchParams->author();
else name = videos.first()->author();
emit nameChanged(name);