detatch android related downloader from crawler

This commit is contained in:
Christian Schabesberger 2016-01-28 21:21:19 +01:00
parent f152d66cd8
commit 54d318bf04
12 changed files with 243 additions and 165 deletions

View file

@ -108,7 +108,7 @@ public class VideoItemDetailFragment extends Fragment {
@Override
public void run() {
try {
this.videoExtractor = service.getExtractorInstance(videoUrl);
this.videoExtractor = service.getExtractorInstance(videoUrl, new Downloader());
VideoInfo videoInfo = videoExtractor.getVideoInfo();
h.post(new VideoResultReturnedRunnable(videoInfo));
if (videoInfo.errorCode == VideoInfo.NO_ERROR) {