|
|
|
|
@ -9,8 +9,11 @@ import com.fongmi.android.tv.utils.ResUtil; |
|
|
|
|
import com.github.catvod.utils.Trans; |
|
|
|
|
import com.google.gson.annotations.SerializedName; |
|
|
|
|
|
|
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
|
import java.util.Calendar; |
|
|
|
|
import java.util.Locale; |
|
|
|
|
import java.util.Objects; |
|
|
|
|
import java.util.TimeZone; |
|
|
|
|
|
|
|
|
|
public class EpgData { |
|
|
|
|
|
|
|
|
|
@ -103,6 +106,12 @@ public class EpgData { |
|
|
|
|
setEndTime(cal.getTimeInMillis()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public String getRange() { |
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd'T'HHmmss'Z'", Locale.US); |
|
|
|
|
sdf.setTimeZone(TimeZone.getTimeZone("UTC")); |
|
|
|
|
return "clock=" + sdf.format(getStartTime()) + "-" + sdf.format(getEndTime()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void trans() { |
|
|
|
|
if (Trans.pass()) return; |
|
|
|
|
this.title = Trans.s2t(title); |
|
|
|
|
|