kopia lustrzana https://github.com/TeamNewPipe/NewPipe
Merge pull request #199 from szafir1100/develop
used regex to delete spaces inside parseLong() argumentpull/202/head
commit
96928d46ca
|
@ -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()
|
||||||
|
|
Ładowanie…
Reference in New Issue