|
|
|
|
@ -7,6 +7,7 @@ import com.fongmi.android.tv.bean.Vod; |
|
|
|
|
import com.fongmi.android.tv.event.RefreshEvent; |
|
|
|
|
import com.fongmi.android.tv.impl.NewPipeImpl; |
|
|
|
|
import com.fongmi.android.tv.player.Source; |
|
|
|
|
import com.github.catvod.utils.Trans; |
|
|
|
|
|
|
|
|
|
import org.schabi.newpipe.extractor.ListExtractor; |
|
|
|
|
import org.schabi.newpipe.extractor.NewPipe; |
|
|
|
|
@ -53,15 +54,15 @@ public class Youtube implements Source.Extractor { |
|
|
|
|
private Vod convert(StreamInfo info) { |
|
|
|
|
try { |
|
|
|
|
Vod vod = new Vod(); |
|
|
|
|
vod.setVodName(info.getName()); |
|
|
|
|
vod.setVodDirector(info.getUploaderName()); |
|
|
|
|
vod.setVodContent(info.getDescription().getContent()); |
|
|
|
|
vod.setVodName(Trans.s2t(info.getName())); |
|
|
|
|
vod.setVodDirector(Trans.s2t(info.getUploaderName())); |
|
|
|
|
vod.setVodContent(Trans.s2t(info.getDescription().getContent())); |
|
|
|
|
vod.setVodPic(info.getThumbnails().get(info.getThumbnails().size() - 1).getUrl()); |
|
|
|
|
return vod; |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
Vod vod = new Vod(); |
|
|
|
|
vod.setVodName(info.getName()); |
|
|
|
|
vod.setVodContent(info.getDescription().getContent()); |
|
|
|
|
vod.setVodName(Trans.s2t(info.getName())); |
|
|
|
|
vod.setVodContent(Trans.s2t(info.getDescription().getContent())); |
|
|
|
|
return vod; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|