) {
QString webpage = attributes().value("href").toString();
webpage.remove("&feature=youtube_gdata");
- video->setWebpage(QUrl(webpage));
+ video->setWebpage(webpage);
} else if (name() == QLatin1String("author")) {
while(readNextStartElement())
if (name() == QLatin1String("name")) {
QString author = readElementText();
- video->setAuthor(author);
+ video->setChannelTitle(author);
} else if (name() == QLatin1String("userId")) {
QString userId = readElementText();
- video->setUserId(userId);
+ video->setChannelId(userId);
} else skipCurrentElement();
} else if (name() == QLatin1String("published")) {
video->setPublished(QDateTime::fromString(readElementText(), Qt::ISODate));
// qDebug() << "Duration: " << duration;
video->setDuration(duration.toInt());
}
+ else if (name() == QLatin1String("license")) {
+ QString license = readElementText();
+ // qDebug() << "License: " << license;
+ if (license == QLatin1String("cc"))
+ video->setLicense(Video::LicenseCC);
+ }
}
}
}