mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-11-04 09:13:00 +00:00 
			
		
		
		
	Merge pull request #199 from szafir1100/develop
used regex to delete spaces inside parseLong() argument
This commit is contained in:
		@@ -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()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user