* added VideoInfo(AbstractVideoInfo) constructor, to support later implementation for reusing info scraped into VideoPreviewInfo, into VideoInfo
* Made the Extractor class behave as a per-video object;
- most method return values are video-specific, so it makes sense (to me) to have Extractor be stateful.
- The only stateless methods are getVideoUrl(), getVideoId() and loadDecryptionCode(String)
* Implemented a constructor for YoutubeExtractor, which performs all initialisation work
16 lines
470 B
Java
16 lines
470 B
Java
package org.schabi.newpipe;
|
|
|
|
import android.graphics.Bitmap;
|
|
|
|
/**Common properties between VideoInfo and VideoPreviewInfo.*/
|
|
public abstract class AbstractVideoInfo {
|
|
public String id = "";
|
|
public String title = "";
|
|
public String uploader = "";
|
|
//public int duration = -1;
|
|
public String thumbnail_url = "";
|
|
public Bitmap thumbnail = null;
|
|
public String webpage_url = "";
|
|
public String upload_date = "";
|
|
public long view_count = -1;
|
|
}
|