Član
- Učlanjen(a)
- 25.02.2010
- Poruka
- 650
Pozdrav Alex.Možeš li ovaj kanal da prilagodiš za malo sporiji internet.
moze bice kasnije prvo da sredim sistem trenutno ide sa min 3Mb/s
Follow along with the video below to see how to install our site as a web app on your home screen.
Beleška: this_feature_currently_requires_accessing_site_using_safari
Pozdrav Alex.Možeš li ovaj kanal da prilagodiš za malo sporiji internet.
Kod mene ( 4Mb/s ) prekida svakih 10-15sek. pa se buffer puni ispočetka.
kod mene prekida kao i ostali kanali sa alex tvpredjite na port 8050 pozdrav
u zadnjih 2h sam ja radio na server podesio neke stvari jos je test program sad verovatno ne prekida vise
Kod mene ne ide u opste!
Cao Alex dali postoji neki tv za iphone za nase kanale pozdrav
[URL="http://megaupload.com/?d=49R7Z9E0"]http://www.megaupload.com/?d=49R7Z9E0[/URL]
alex you can help mi
thanks about arab tv
i want some help about iptv arab channel
this channel not work from 4 days
i could download 1 file from the server
in this file they have many code
anybady can help mi pleas
scus mi for my bad english
the file is MEGAUPLOAD - The leading online storage and file delivery service
package com.captiveworks.io;
import com.captiveworks.util.*;
import com.cqs.ftp.FTP;
import java.io.IOException;
import java.io.PrintStream;
import java.net.URL;
import java.util.*;
// Referenced classes of package com.captiveworks.io:
// BoxKeys
public class ChannelListGenerator
{
public ChannelListGenerator()
{
}
public static void main(String args[])
{
String username = "dikran";
String password = "dhh1971";
WebUtil.cacheWebFile("http://www.arab-tv-net.com/private/get_url.txt", "/tmp/get_url.php");
String fileTextOrig = null;
URL url = null;
FTP ftpServer = null;
try
{
url = new URL("ftp://www.arab-tv-net.com/public_html/arab-tv-net/private");
ftpServer = new FTP(url.getHost());
FTPUtil.connectToFTPServer(username, password, url, ftpServer);
fileTextOrig = FileUtil.getFileText("/tmp/get_url.php");
}
catch(IOException e1)
{
System.out.println("Could not start process");
return;
}
Random random = new Random();
int i = 0;
do
{
String text;
do
{
int randNum = random.nextInt(40000);
String mac = BoxKeys.foo[i][0];
String serial = BoxKeys.foo[i][1];
String box = BoxKeys.foo[i][2];
i = (i + 1) % BoxKeys.foo.length;
String link = "http://iptv.faces.nu/iptv/tv/channels.php?mac=" + mac + "&serial=" + serial + "&stb_id=" + box + "&rnd=" + randNum;
System.out.println(link);
text = WebUtil.getWebFileText(link);
} while(!StringUtils.contains(text, "distribution"));
String list = getChannelsPHP(getChannels(text));
String fileText = StringUtils.replace(fileTextOrig, "$$list$$", list);
FileUtil.writeFileText("/tmp/get_url.php", fileText);
ftpServer.upload("/tmp/get_url.php", "get_url.php");
if(ftpServer.lastCode() != 226)
{
System.out.println("Error Transferring File");
} else
{
System.out.println("File Transferred Successfully");
}
try
{
Thread.sleep(45000L);
}
catch(InterruptedException interruptedexception) { }
} while(true);
}
public static List getChannels(String text)
{
ArrayList channels = new ArrayList();
text = text.substring(text.indexOf("{") + 1, text.length() - 3);
do
{
int index = text.indexOf("}");
if(index == 1)
{
break;
}
String channel = text.substring(1, index);
channels.add(channel);
if(index + 3 >= text.length())
{
break;
}
text = text.substring(index + 3);
} while(true);
return channels;
}
public static String getChannelsPHP(List channels)
{
StringBuffer buffer = new StringBuffer();
Iterator iterator = channels.iterator();
boolean printProcessed = false;
String line;
for(; iterator.hasNext(); buffer.append(line + "\n"))
{
line = (String)iterator.next();
line = StringUtils.replace(line, "\"", "");
line = translateServerAddress(line);
if(!printProcessed)
{
int i = line.lastIndexOf("&");
System.out.println(line.substring(i + 1));
printProcessed = true;
}
String elements[] = line.split(",");
int index = 0;
index++;
String channelName = elements.length > index ? elements[index++] : "";
channelName = StringUtils.replace(channelName, " ", "_");
String channelUrl = elements.length > index ? elements[index++] : "";
channelUrl = StringUtils.replace(channelUrl, "&", "%26");
channelUrl = StringUtils.replace(channelUrl, "httptv:", "http:");
line = "\"" + channelName + "\" => \"" + channelUrl + "\",";
}
return buffer.toString();
}
public static String translateServerAddress(String line)
{
line = StringUtils.replace(line, "distribution01.arabtvnet.tv", "93.158.79.163");
line = StringUtils.replace(line, "distribution02.arabtvnet.tv", "93.158.79.164");
line = StringUtils.replace(line, "distribution03.arabtvnet.tv", "93.158.79.165");
return line;
}
}