From ca0d594547142cffc2ac8916bf1bbda39dc0b092 Mon Sep 17 00:00:00 2001 From: Christian Schabesberger Date: Tue, 27 Sep 2016 20:06:33 +0200 Subject: [PATCH] cleaning away android stuff from extractor --- .../java/org/schabi/newpipe/extractor/AbstractVideoInfo.java | 3 --- .../main/java/org/schabi/newpipe/extractor/ChannelInfo.java | 2 -- app/src/main/java/org/schabi/newpipe/extractor/Parser.java | 2 -- .../main/java/org/schabi/newpipe/extractor/ServiceList.java | 2 -- .../main/java/org/schabi/newpipe/extractor/StreamInfo.java | 1 - .../extractor/services/youtube/YoutubeChannelExtractor.java | 2 -- .../extractor/services/youtube/YoutubeSearchEngine.java | 5 ----- 7 files changed, 17 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/extractor/AbstractVideoInfo.java b/app/src/main/java/org/schabi/newpipe/extractor/AbstractVideoInfo.java index f14fbf2f2..8c9b28c5e 100644 --- a/app/src/main/java/org/schabi/newpipe/extractor/AbstractVideoInfo.java +++ b/app/src/main/java/org/schabi/newpipe/extractor/AbstractVideoInfo.java @@ -1,7 +1,5 @@ package org.schabi.newpipe.extractor; -import android.graphics.Bitmap; - /** * Copyright (C) Christian Schabesberger 2015 * AbstractVideoInfo.java is part of NewPipe. @@ -37,7 +35,6 @@ public abstract class AbstractVideoInfo { public String title = ""; public String uploader = ""; public String thumbnail_url = ""; - public Bitmap thumbnail; public String webpage_url = ""; public String upload_date = ""; public long view_count = -1; diff --git a/app/src/main/java/org/schabi/newpipe/extractor/ChannelInfo.java b/app/src/main/java/org/schabi/newpipe/extractor/ChannelInfo.java index 2f856dac0..941d08564 100644 --- a/app/src/main/java/org/schabi/newpipe/extractor/ChannelInfo.java +++ b/app/src/main/java/org/schabi/newpipe/extractor/ChannelInfo.java @@ -1,7 +1,5 @@ package org.schabi.newpipe.extractor; -import android.util.Log; - import java.util.List; import java.util.Vector; diff --git a/app/src/main/java/org/schabi/newpipe/extractor/Parser.java b/app/src/main/java/org/schabi/newpipe/extractor/Parser.java index 211c1ed47..5ed9b8708 100644 --- a/app/src/main/java/org/schabi/newpipe/extractor/Parser.java +++ b/app/src/main/java/org/schabi/newpipe/extractor/Parser.java @@ -1,7 +1,5 @@ package org.schabi.newpipe.extractor; -import android.util.Log; - import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.util.HashMap; diff --git a/app/src/main/java/org/schabi/newpipe/extractor/ServiceList.java b/app/src/main/java/org/schabi/newpipe/extractor/ServiceList.java index 9571819a9..fd3dc506d 100644 --- a/app/src/main/java/org/schabi/newpipe/extractor/ServiceList.java +++ b/app/src/main/java/org/schabi/newpipe/extractor/ServiceList.java @@ -1,7 +1,5 @@ package org.schabi.newpipe.extractor; -import android.util.Log; - import org.schabi.newpipe.extractor.services.youtube.YoutubeService; /** diff --git a/app/src/main/java/org/schabi/newpipe/extractor/StreamInfo.java b/app/src/main/java/org/schabi/newpipe/extractor/StreamInfo.java index 9c710114b..f3fde27ae 100644 --- a/app/src/main/java/org/schabi/newpipe/extractor/StreamInfo.java +++ b/app/src/main/java/org/schabi/newpipe/extractor/StreamInfo.java @@ -44,7 +44,6 @@ public class StreamInfo extends AbstractVideoInfo { this.title = avi.title; this.uploader = avi.uploader; this.thumbnail_url = avi.thumbnail_url; - this.thumbnail = avi.thumbnail; this.webpage_url = avi.webpage_url; this.upload_date = avi.upload_date; this.upload_date = avi.upload_date; diff --git a/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeChannelExtractor.java b/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeChannelExtractor.java index a33707d1c..f7f5e4923 100644 --- a/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeChannelExtractor.java +++ b/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeChannelExtractor.java @@ -19,8 +19,6 @@ import org.schabi.newpipe.extractor.UrlIdHandler; import java.io.IOException; -import java.util.HashMap; -import java.util.Map; /** * Created by Christian Schabesberger on 25.07.16. 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 5e84eac77..2a361ed7b 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 @@ -1,17 +1,12 @@ package org.schabi.newpipe.extractor.services.youtube; -import android.util.Log; - import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; -import org.schabi.newpipe.extractor.AbstractVideoInfo; import org.schabi.newpipe.extractor.Downloader; import org.schabi.newpipe.extractor.ExtractionException; -import org.schabi.newpipe.extractor.Parser; import org.schabi.newpipe.extractor.ParsingException; import org.schabi.newpipe.extractor.SearchEngine; -import org.schabi.newpipe.extractor.StreamPreviewInfoCollector; import org.schabi.newpipe.extractor.StreamPreviewInfoExtractor; import org.schabi.newpipe.extractor.StreamPreviewInfoSearchCollector; import org.schabi.newpipe.extractor.UrlIdHandler;