1
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-16 02:13:57 +01:00

removed commented-out code, added another TODO note

This commit is contained in:
Adam Howard 2015-11-11 13:08:53 +00:00
parent 3bfc82f7c0
commit c5084901b5

View File

@ -271,13 +271,8 @@ public class YoutubeExtractor implements Extractor {
}
// upload date
//videoInfo.upload_date = doc.select("strong[class=\"watch-time-text\"").first().text();
videoInfo.upload_date = doc.select("meta[itemprop=datePublished]").attr("content");
// Extracting the date itself from header
//videoInfo.upload_date =
// matchGroup1("([0-9]{2}\\.[0-9]{2}\\.[0-9]{4})", videoInfo.upload_date);
//TODO: Format date locale-specifically
@ -306,7 +301,7 @@ public class YoutubeExtractor implements Extractor {
.select("img").first()
.attr("abs:data-thumb");
// view count
// view count TODO: format locale-specifically
videoInfo.view_count = doc.select("meta[itemprop=interactionCount]").attr("content");
// next video