made extractor systemindipendent again

This commit is contained in:
Christian Schabesberger 2017-03-01 18:03:36 +01:00
parent 3404231457
commit 780f1d5da3
2 changed files with 2 additions and 5 deletions

View File

@ -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;

View File

@ -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() + ")");
}