mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-24 20:15:16 +01:00
removed commented-out code, added another TODO note
This commit is contained in:
parent
3bfc82f7c0
commit
c5084901b5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user