diff --git a/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeSearchEngine.java b/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeSearchEngine.java index be64fc00d..7e5871959 100644 --- a/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeSearchEngine.java +++ b/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeSearchEngine.java @@ -127,6 +127,7 @@ public class YoutubeSearchEngine implements SearchEngine { .text(); viewCountInfo = viewCountInfo.substring(0, viewCountInfo.indexOf(' ')); viewCountInfo = viewCountInfo.replaceAll("[,.]", ""); + viewCountInfo = viewCountInfo.replaceAll("\\s",""); resultItem.view_count = Long.parseLong(viewCountInfo); Element te = item.select("div[class=\"yt-thumb video-thumb\"]").first()