Update: Use new domain streamtpcloud.com for events and streams
- Updated EventRepository to point to streamtpcloud.com/eventos.json - Updated ChannelRepository URLs to streamtpcloud.com - Updated PlayerActivity Origin header - Bumped version to 10.0.2
This commit is contained in:
@@ -30,7 +30,7 @@ public class EventRepository {
|
||||
private static final String KEY_JSON = "json";
|
||||
private static final String KEY_TIMESTAMP = "timestamp";
|
||||
private static final long CACHE_DURATION = 24L * 60 * 60 * 1000; // 24 horas
|
||||
private static final String EVENTS_URL = "https://streamtpmedia.com/eventos.json";
|
||||
private static final String EVENTS_URL = "https://streamtpcloud.com/eventos.json";
|
||||
|
||||
public interface Callback {
|
||||
void onSuccess(List<EventItem> events);
|
||||
@@ -89,7 +89,8 @@ public class EventRepository {
|
||||
}
|
||||
|
||||
String contentType = connection.getContentType();
|
||||
if (contentType != null && !contentType.contains("json")) {
|
||||
// Permitir json o text/plain (Raw de Gitea a veces es text/plain)
|
||||
if (contentType != null && !contentType.contains("json") && !contentType.contains("text/plain")) {
|
||||
throw new IOException("El servidor devolvió " + contentType + " en lugar de JSON. Verifica que la URL sea correcta.");
|
||||
}
|
||||
|
||||
@@ -144,7 +145,8 @@ public class EventRepository {
|
||||
if (link == null) {
|
||||
return "";
|
||||
}
|
||||
return link.replace("global1.php", "global2.php");
|
||||
String updated = link.replace("streamtpmedia.com", "streamtpcloud.com");
|
||||
return updated.replace("global1.php", "global2.php");
|
||||
}
|
||||
|
||||
private String extractChannelName(String link) {
|
||||
|
||||
Reference in New Issue
Block a user