1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-24 00:50:32 +00:00

Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2016-02-21 01:40:55 +01:00
commit d8281aeb34

View File

@ -127,6 +127,7 @@ public class YoutubeSearchEngine implements SearchEngine {
.text(); .text();
viewCountInfo = viewCountInfo.substring(0, viewCountInfo.indexOf(' ')); viewCountInfo = viewCountInfo.substring(0, viewCountInfo.indexOf(' '));
viewCountInfo = viewCountInfo.replaceAll("[,.]", ""); viewCountInfo = viewCountInfo.replaceAll("[,.]", "");
viewCountInfo = viewCountInfo.replaceAll("\\s","");
resultItem.view_count = Long.parseLong(viewCountInfo); resultItem.view_count = Long.parseLong(viewCountInfo);
Element te = item.select("div[class=\"yt-thumb video-thumb\"]").first() Element te = item.select("div[class=\"yt-thumb video-thumb\"]").first()