mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 07:13:00 +00:00 
			
		
		
		
	made extractor systemindipendent again
This commit is contained in:
		| @@ -10,7 +10,6 @@ import org.mozilla.javascript.Function; | ||||
| import org.mozilla.javascript.ScriptableObject; | ||||
| import org.schabi.newpipe.extractor.AbstractStreamInfo; | ||||
| import org.schabi.newpipe.extractor.exceptions.ExtractionException; | ||||
| import org.schabi.newpipe.extractor.exceptions.FoundAdException; | ||||
| import org.schabi.newpipe.extractor.exceptions.ParsingException; | ||||
| import org.schabi.newpipe.extractor.exceptions.ReCaptchaException; | ||||
| import org.schabi.newpipe.extractor.stream_info.AudioStream; | ||||
|   | ||||
| @@ -1,7 +1,5 @@ | ||||
| package org.schabi.newpipe.extractor.services.youtube; | ||||
|  | ||||
| import android.support.annotation.NonNull; | ||||
|  | ||||
| import org.schabi.newpipe.extractor.Downloader; | ||||
| import org.schabi.newpipe.extractor.NewPipe; | ||||
| import org.schabi.newpipe.extractor.Parser; | ||||
| @@ -112,7 +110,7 @@ public class YoutubeStreamUrlIdHandler implements UrlIdHandler { | ||||
|      * @return the id of the stream | ||||
|      * @throws ParsingException | ||||
|      */ | ||||
|     private @NonNull String getRealIdFromSharedLink(String url) throws ParsingException { | ||||
|     private String getRealIdFromSharedLink(String url) throws ParsingException { | ||||
|         URI uri; | ||||
|         try { | ||||
|             uri = new URI(url); | ||||
| @@ -135,7 +133,7 @@ public class YoutubeStreamUrlIdHandler implements UrlIdHandler { | ||||
|         return realId; | ||||
|     } | ||||
|  | ||||
|     private @NonNull String getSharedId(URI uri) throws ParsingException { | ||||
|     private String getSharedId(URI uri) throws ParsingException { | ||||
|         if (!"/shared".equals(uri.getPath())) { | ||||
|             throw new ParsingException("Not a shared link: " + uri.toString() + " (path != " + uri.getPath() + ")"); | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Christian Schabesberger
					Christian Schabesberger