slm
bu iptv showtime in plugins webmedia ile de oluyor ama onun xml listesi biraz emek istiyor tek tek eklemek lazim
ben java dan vazla anlamiyorum ama karistiriyorum ve deniyorum onun xml listesi böyle olunca okuyor ps3 ün hdd sindan
ben kendi webmedia.zip datei actim biraz denedim degisiklik yaptim böyle asardaki gibi java dan anlayan arkadaslar
belki daha iyi yaparlar
sources.xml listesi asardaki gibi ben biraz tr iptv linkleri ekledim
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<sources>
<item>
<title>SHOW MAX</title>
<link>http://hls01-03.az.myvideo.az/hls-live/livepkgr/showmax/showmax/showmax.m3u8?simpletvipadresleri3</link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
<item>
<title>Tv 8</title>
<link>http://hls01-03.az.myvideo.az/hls-live/livepkgr/tv8/tv8/tv8.m3u8?simpletvipadresleri3</link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<type>Web Folder</type>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
<item>
<title>Kanal 7 HD</title>
<link>http://bit.do/kanal7hd</link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<type>Web Folder</type>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
<item>
<title>KANALTURK</title>
<link>http://hls01-08.az.myvideo.az/hls-live/livepkgr/kanalturk/kanalturk/kanalturk.m3u8?simpletvipadresleri3</link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<type>Web Folder</type>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
<item>
<title>NTV SPOR</title>
<link>http://hls01-08.az.myvideo.az/hls-live/livepkgr/ntvspor/ntvspor/ntvspor.m3u8?simpletvipadresleri3</link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<type>Web Folder</type>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
<item>
<title>deneme burdan asarda yok baska kanal</title>
<link></link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<type>Web Folder</type>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
<item>
<title>Private</title>
<link></link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<type>Web Folder</type>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
<item>
<title>Özel</title>
<link></link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<type>Web Folder</type>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
<item>
<title>Private</title>
<link></link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<type>Web Folder</type>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
<item>
<title>Özel</title>
<link></link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<type>Web Folder</type>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
<item>
<title>Private</title>
<link></link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<type>Web Folder</type>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
<item>
<title>Özel</title>
<link></link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<type>Web Folder</type>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
<item>
<title>Private</title>
<link></link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<type>Web Folder</type>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
<item>
<title>Özel</title>
<link></link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<type>Web Folder</type>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
<item>
<title>Private</title>
<link></link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<type>Web Folder</type>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
<item>
<title>Özel</title>
<link></link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<type>Web Folder</type>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
<item>
<title>Private</title>
<link></link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<type>Web Folder</type>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
<item>
<title>Özel</title>
<link></link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<type>Web Folder</type>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
<item>
<title>Private</title>
<link></link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<type>Web Folder</type>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
<item>
<title>Özel</title>
<link></link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<type>Web Folder</type>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
<item>
<title>Private</title>
<link></link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<type>Web Folder</type>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
<item>
<title>Özel</title>
<link></link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<type>Web Folder</type>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
<item>
<title>Private</title>
<link></link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<type>Web Folder</type>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
<item>
<title>Özel</title>
<link></link>
<publisher>NASA</publisher>
<country>United States</country>
<theme>Science</theme>
<type>Web Folder</type>
<parentalcontrol>1</parentalcontrol>
<favorite>Yes</favorite>
</item>
</sources>
<countries>
<item><title>Germany</title><image>http://openiconlibrary.sourceforge.net/gallery2/Flags/Standard/png/256x256/Flag_of_Germany.png</image></item>
<item><title>Turkey</title><image>http://openiconlibrary.sourceforge.net/gallery2/Flags/Standard/png/256x256/Flag_of_Turkey.png</image></item>
</countries>
<themes>
<item>
<title>News</title>
<image>http://oi42.tinypic.com/2ihrvhs.png</image>
</item>
<item>
<title>Playstation 3</title>
<image>http://oi43.tinypic.com/fd7syv.png</image>
</item>
<item>
<title>Science</title>
<image>http://oi44.tinypic.com/34flfuw.png</image>
</item>
<item>
<title>Social</title>
<image>http://oi42.tinypic.com/5kgadx.png</image>
</item>
</themes>
<publishers>
<item>
<title>CNN</title>
<image>http://upload.wikimedia.org/wikipedia/commons/thumb/8/8b/Cnn.svg/200px-Cnn.svg.png</image>
</item>
<item>
<title>PSX-Scene</title>
<image>http://psx-scene.com/forums/images/newpsx2.png</image>
</item>
<item>
<title>PS3Crunch</title>
<image>http://www.ps3crunch.net/forum/images/styles/UndergroundStyle/style/logot.png</image>
</item>
<item>
<title>PS3Hax</title>
<image></image>
</item>
<item>
<title>PS3News</title>
<image>http://www.ps3news.com/forums/logo.png</image>
</item>
<item>
<title>Showtime</title>
<image>/dev_hdd0/game/HTSS00003/ICON0.PNG</image>
</item>
</publishers>
<types>
<item><title>RSS feed</title><image>[WEBMEDIA]resources/types/rssfeed_200x200_24.png</image><textcolor>#FFCC00</textcolor></item>
<item><title>Imagecast</title><image>[WEBMEDIA]resources/types/imagecast_200x200_24.png</image><textcolor>#ffff00</textcolor></item>
<item><title>Podcast</title><image>[WEBMEDIA]resources/types/podcast_200x200_24.png</image><textcolor>#ffff99</textcolor></item>
<item><title>Videocast</title><image>[WEBMEDIA]resources/types/videocast_200x200_24.png</image><textcolor>#ffffff</textcolor></item>
<item><title>Live TV</title><image>[WEBMEDIA]resources/types/livetv_256x256_24.png</image><textcolor>#66cc00</textcolor></item>
<item><title>Live Radio</title><image>[WEBMEDIA]resources/types/liveradio_256x256_24.png</image><textcolor>#33cc00</textcolor></item>
<item><title>Web Resource</title><image>[WEBMEDIA]resources/types/webresource_256x256_24.png</image><textcolor>#ff00ff</textcolor></item>
<item><title>Web Folder</title><image>[WEBMEDIA]resources/types/webfolder_256x256_24.png</image><textcolor>#ccff00</textcolor></item>
</types>
</rss>
bu asardaki de webmedia nin webmedia.js i ben asarda 60 ci satirda direk kendi ps3 ün hdd sindeki tr-iptv.xml i ekledim
sizde kendi xml nize ekleyin sonra geri zipleyip ps3 e geri yükleyin zip lerken dikkat edin 2 tane webmedia dosyasi
olmasin zip yaparken direk webmedia dosyasinin icinde hepsini isaretleyip zipleyin sonra geri yükleyin ben logo.png
resim i denistirdim oda oluyor
/**
* WebMedia plugin for showtime by andreus sebes
*
* Copyright (C) 2011 andreus sebes
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Git:
Değerli ziyaretçimiz lütfen, içeriği görüntüleyebilmek için
Giriş yap
veya
Kayıt ol
anlayışınız için teşekkürler.
*/
(function(plugin)
{
var plugin_info = plugin.getDescriptor();
var _TOS1 = plugin_info.title+' (referred hereafter as "software"), its author, partners, and associates do not condone piracy.\n\n'+
plugin_info.title+' is a hobby project, distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, without even '+
'the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\nThe software is intended solely for educational '+
'and testing purposes, and while it may allow the user to read/listen/watch free online resources from the internet, '+
'it is required that such user actions must comply with local, federal and country legislation.\n\n'+
plugin_info.title+' uses images that are licensed under Creative Commons.\n'+
'All rights go to the authors.';
var _TOS2 = 'Furthermore, the author of this software, its partners and associates shall assume NO responsibility, legal or otherwise implied, \n'+
'for any misuse of, or for any loss that may occur while using '+plugin_info.title+'.\nYou are solely responsible for complying with the applicable laws '+
'in your country and you must cease using this software should your actions during '+plugin_info.title+' operation lead to or may lead to infringement or '+
'violation of the rights of the respective content copyright holders.\n\n'+
plugin_info.title+' is not licensed, approved or endorsed by any online resource proprietary.\n\n'+
'Do you accept this agreement?';
var _IMG_UNKNOWN=plugin.path+'resources/others/notidentified_256x256_24.png';
var _IMG_FAVORITE=plugin.path+'resources/others/favorites_256x256_24.png';
var _IMG_OFFLINE=plugin.path+'resources/others/offline_256x256_24.png';
var media = new Namespace("http://search.yahoo.com/mrss/");
var itunes = new Namespace("http://www.itunes.com/dtds/podcast-1.0.dtd");
var osources=null;
var feed_contents=null;
// Create startup service
var service = plugin.createService(plugin_info.title, plugin_info.id+":start", "other", true, plugin.path+plugin_info.icon);
// Create settings
var settings = plugin.createSettings(plugin_info.title, plugin.path+plugin_info.icon, plugin_info.title+": "+plugin_info.synopsis);
settings.createInfo("info", plugin.path+plugin_info.icon, plugin_info.synopsis+"\n\n"+plugin_info.description+"\n\nPlugin developed by "+plugin_info.author+"\n\nHomepage: "+plugin_info.homepage);
settings.createDivider("Layout settings");
settings.createBool("bycountry", "Group by country?", true, function(v) { service.bycountry = v; });
settings.createBool("bytheme", "Group by theme?", true, function(v) { service.bytheme = v; });
settings.createBool("bypublisher", "Group by publisher?", true, function(v) { service.bypublisher = v; });
settings.createBool("bytype", "Group by type?", true, function(v) { service.bytype = v; });
settings.createBool("byfavorites", "Show favorites?", true, function(v) { service.byfavorites = v; });
settings.createDivider("Source settings");
settings.createMultiOpt("usexmllocalization", "Xml file path option to use (0=merge):", [['0', 'Merge all'], ['1', 'Option 1', true], ['2', 'Option 2'], ['3', 'Option 3'], ['4', 'Option 4']], function(v) { service.usexmllocalization = v; });
settings.createString("xmllocalization1", "1) HTTP/SMB URL for sources xml file", "http://lacalhost/dev_hdd0/tr-iptv.xml", function(v) { service.xmllocalization1 = v; });
settings.createString("xmllocalization2", "2) HTTP/SMB URL for sources xml file", "http://lacalhost/dev_hdd0/tr-1-iptv.xml", function(v) { service.xmllocalization2 = v; });
settings.createString("xmllocalization3", "3) HTTP/SMB URL for sources xml file", "http://lacalhost/dev_hdd0/game/tr-2-iptv.xml", function(v) { service.xmllocalization3 = v; });
settings.createString("xmllocalization4", "4) HTTP/SMB URL for sources xml file", "http://lacalhost/dev_hdd0/game/xxl.xml", function(v) { service.xmllocalization4 = v; });
settings.createDivider("Legal settings");
settings.createBool("tos", "Terms of service accepted?", false, function(v) { service.tos = v; });
settings.createDivider("Parental control");
settings.createMultiOpt("parentalcontrol", "Block content above level", [['1', 'Level 1'], ['2', 'Level 2'], ['3', 'Level 3'], ['4', 'Level 4'], ['5', 'Level 5'], ['6', 'Level 6'], ['7', 'Level 7'], ['8', 'Level 8'], ['9', 'Level 9', true]], function(v) { service.parentalcontrol = v; });
settings.createDivider("Advanced settings");
settings.createMultiOpt("timeout", "RTMP timeout", [['0', '0 seconds'], ['10', '10 seconds', true], ['20', '20 seconds'], ['30', '30 seconds'], ['40', '40 seconds'], ['50', '50 seconds'], ['60', '60 seconds'], ['70', '70 seconds'], ['80', '80 seconds'], ['90', '90 seconds'], ['100', '100 seconds'], ['110', '110 seconds'], ['120', '120 seconds']], function(v) { service.timeout = v; });
settings.createMultiOpt("probetimeout", "Probe timeout", [['0', '0 seconds'], ['10', '10 seconds', true], ['20', '20 seconds'], ['30', '30 seconds'], ['40', '40 seconds'], ['50', '50 seconds'], ['60', '60 seconds'], ['70', '70 seconds'], ['80', '80 seconds'], ['90', '90 seconds'], ['100', '100 seconds'], ['110', '110 seconds'], ['120', '120 seconds']], function(v) { service.probetimeout = v; });
settings.createBool("debug", "Debug?", false, function(v) { service.debug = v; });
//workaround for "Syntax Error: xml is a reserved identifier"
function valid_xml(xmltext)
{
xmltext=xmltext.toString();
xmltext=xmltext.replace(/^[\s\S]*?(<[^\?!])/, "$1");
return xmltext;
}
function color_text(o,text)
{
if (osources.types!=null)
{
for each (var typ in osources.types.item)
if (typ.title.toString() == o.type.toString())
{
if (typ.textcolor.toString()!=null && typ.textcolor.toString()!='') text=text+'<br><font size="1" color="'+typ.textcolor.toString()+'">['+typ.title.toString()+']</font>';
}
}
return new showtime.RichText(text);
}
function get_settings_file(errortext)
{
if (service.usexmllocalization==null) var usexml='1';
else var usexml=service.usexmllocalization;
if (usexml!='0')
{
if (usexml=='1') var xmlpath=service.xmllocalization1;
else if (usexml=='2') var xmlpath=service.xmllocalization2;
else if (usexml=='3') var xmlpath=service.xmllocalization3;
else if (usexml=='4') var xmlpath=service.xmllocalization4;
try
{
if (xmlpath=="") var url=plugin.path+'sources.xml';
else if (xmlpath.toString().match(/http:\/\/|https:\/\/|smb:\/\//i)==null) throw "Security Error: You can only use http/smb path";
else var url=xmlpath;
if (service.debug=='1') showtime.trace("XML files path: "+url);
if (url.match(/smb:\/\/|http:\/\/|https:\/\//i)!=null) var file_readed=valid_xml(showtime.httpGet(url));
else var file_readed=valid_xml(showtime.readFile(url));
osources=new XML(file_readed);
return true;
}
catch (err) { if (service.debug=='1') showtime.trace(err+'\n'+url+'\n'+errortext); return false; }
}
else
{
try
{
var def_readed=false;
for (var i=1;i<=4;i++)
{
if (i==1) var xmlpath=service.xmllocalization1;
else if (i==2) var xmlpath=service.xmllocalization2;
else if (i==3) var xmlpath=service.xmllocalization3;
else if (i==4) var xmlpath=service.xmllocalization4;
var url='';
if (xmlpath=="" && def_readed==false) { url=plugin.path+'sources.xml'; def_readed=true; }
else if (xmlpath=="" && def_readed==true) { url=''; }
else if (xmlpath.toString().match(/http:\/\/|https:\/\/|smb:\/\//i)==null) throw "Security Error: You can only use http/smb path";
else url=xmlpath;
if (url!='')
{
if (service.debug=='1') showtime.trace("XML files path ("+i+"): "+url);
if (url.match(/smb:\/\/|http:\/\/|https:\/\//i)!=null) var file_readed=valid_xml(showtime.httpGet(url));
else var file_readed=valid_xml(showtime.readFile(url));
if (i==1) osources=new XML(file_readed);
else
{
var otsources=new XML(file_readed);
var exist=false;
for each (var titem in otsources.sources.item)
{
exist=false;
for each (var fitem in osources.sources.item)
if (fitem.link.toString()==titem.link.toString()) exist=true;
if (!exist) osources.sources.appendChild(titem);
}
for each (var titem in otsources.publishers.item)
{
exist=false;
for each (var fitem in osources.publishers.item)
if (fitem.link.toString()==titem.link.toString()) exist=true;
if (!exist) osources.publishers.appendChild(titem);
}
for each (var titem in otsources.themes.item)
{
exist=false;
for each (var fitem in osources.themes.item)
if (fitem.link.toString()==titem.link.toString()) exist=true;
if (!exist) osources.themes.appendChild(titem);
}
for each (var titem in otsources.countries.item)
{
exist=false;
for each (var fitem in osources.countries.item)
if (fitem.link.toString()==titem.link.toString()) exist=true;
if (!exist) osources.countries.appendChild(titem);
}
for each (var titem in otsources.types.item)
{
exist=false;
for each (var fitem in osources.types.item)
if (fitem.link.toString()==titem.link.toString()) exist=true;
if (!exist) osources.types.appendChild(titem);
}
}
}
}
return true;
}
catch (err) { if (service.debug=='1') showtime.trace(err+'\n'+url+'\n'+errortext); return false; }
}
}
function show_adult(o)
{
var show=true;
if (o.parentalcontrol.toString()!=null)
if (parseInt(o.parentalcontrol.toString())>parseInt(service.parentalcontrol)) show=false;
return show;
}
function searcharr(a,o)
{
for(var i = 0; i < a.length; i++)
if(a
== o) return true;
return false;
}
function tp(o)
{
return o.replace(/:/gi,' ');
}
function is_streaming_media(o)
{
if (o.link.toString().match(/rtmp|rtsp|mms|pnm|pna|thestreamdb\.com/i)==null) return false;
else return true;
}
function is_web_media(o)
{
if (o.type.toString()=="Web Resource") return true;
else return false;
}
function is_web_folder(o)
{
if (o.type.toString()=="Web Folder") return true;
else return false;
}
function is_media_available(o,lik)
{
try
{
if (o==null) var lk=lik;
else var lk=strip_timeout(o.link.toString());
if (showtime.canHandle(lk)==true)
{
if (service.probetimeout.toString()!="0")
{
var ret = showtime.probe(lk+" timeout="+service.probetimeout.toString());
if (!ret.result) return true;
else
{
if (service.debug=='1') showtime.trace(ret.errmsg+": ->"+lk);
//Workaround for unprobable URLs with timeout (Unhandled HTTP response 400)
if (is_streaming_media(lk)) return false;
else
{
var ret2 = showtime.probe(lk);
if (!ret2.result) return true;
else
{
if (service.debug=='1') showtime.trace(ret2.errmsg+": ->"+lk);
return false;
}
}
}
}
else return true;
}
else
{
if (service.debug=='1') showtime.trace("Showtime can't handle URL: ->"+lk);
return false;
}
}
catch (err)
{
if (service.debug=='1') showtime.trace(ret.errmsg+" ->"+lk);
return false;
}
}
function strip_timeout(lk)
{
lk=lk.toString().replace(/ timeout=([0-9]*)/i,'');
return lk.toString().replace(/\n/i,'');
}
function add_stream_option(page, o)
{
var streamingtype=(o.type.toString()=="Live TV")?"video":"audio";
if (o.link.toString().match(/thestreamdb\.com/i)!=null)
{
try
{
var nlink=showtime.httpGet(o.link.toString().replace(/\/stream\//i,'/strm/')).toString();
if (service.debug=='1')
{
var parts=nlink.toString().split(" ");
showtime.trace("StreamDB:");
for (var x in parts)
showtime.trace("- "+parts[x]);
}
}
catch (err) { var nlink=''; }
}
else var nlink=o.link;
if (nlink!='' && is_media_available(null,strip_timeout(nlink))) page.appendItem(strip_timeout(nlink)+" timeout="+service.timeout.toString(), streamingtype, {title: color_text(o,o.title), icon: get_image(o, null,"publisher") });
else page.appendItem(plugin_info.id+"ffline", "image", {title: color_text(o,"<font color=\"#999999\"><i>"+o.title+"</i></font>"), icon: get_image(o, null,"publisher") });
if (service.debug=='1') showtime.trace("Live: "+o.title.toString()+" "+o.type.toString());
}
function get_image(o,s,w)
{
var img='';
if (o!=null && o.thumbnail!=null && o.thumbnail.toString()!='') img=o.thumbnail.toString();
else
{
if (w=="country" && osources.countries!=null)
{
var test=(s!=null)?s.country;
for each (var coun in osources.countries.item.(title.indexOf(test)==0))
if (coun.title.toString() == test) img=coun.image.toString();
}
else if (w=="theme" && osources.themes!=null)
{
var test=(s!=null)?s.theme;
for each (var the in osources.themes.item.(title.indexOf(test)==0))
if (the.title.toString() == test) img=the.image.toString();
}
else if (w=="publisher" && osources.publishers!=null)
{
var test=(s!=null)?s.publisher;
for each (var pub in osources.publishers.item.(title.indexOf(test)==0))
if (pub.title.toString() == test) img=pub.image.toString();
}
else if (w=="type" && osources.types!=null)
{
var test=(s!=null)?s.type;
for each (var typ in osources.types.item.(title.indexOf(test)==0))
if (typ.title.toString() == test) img=typ.image.toString();
}
}
if (img=='') return null;
else return img.replace(/\[WEBMEDIA\]/gi,plugin.path);
}
// FEED ITEM functions
function get_feeditem_media_type(feeditem)
{
if (feeditem.media::content [MENTION=118316]typ[/MENTION]e.toString()!='') return feeditem.media::content [MENTION=118316]typ[/MENTION]e.toString();
else if (feeditem.enclosure [MENTION=118316]typ[/MENTION]e.toString()!='') return feeditem.enclosure [MENTION=118316]typ[/MENTION]e.toString();
else return '';
};
function get_feeditem_thumbnail(feeditem)
{
var media_type=get_feeditem_media_type(feeditem);
var item_icon='';
if (media_type.indexOf("image")!=-1) item_icon=plugin.path+'resources/others/imagecast_200x400_24.png';
else if (media_type.indexOf("audio")!=-1) item_icon=plugin.path+'resources/others/podcast_200x400_24.png';
else if (media_type.indexOf("video")!=-1) item_icon=plugin.path+'resources/others/videocast_200x400_24.png';
else item_icon=plugin.path+'resources/others/rssfeed_200x400_24.png';
if (feed_contents.channel.image.url.toString()!='') item_icon=feed_contents.channel.image.url.toString();
else if (feeditem.media::thumbnail.@url.toString()!='') item_icon=feeditem.media::thumbnail.@url.toString();
else if (feeditem.media::content.@url.toString()!='' && media_type.indexOf("image")!=-1) item_icon=feeditem.media::content.@url.toString();
else if (feeditem.enclosure.@url.toString()!='' && media_type.indexOf("image")!=-1) item_icon=feeditem.enclosure.@url.toString();
else
{
var img_desc=feeditem.description.match(/src=\"([^"]+)\"/gi);
if (img_desc!=null)
for (var i=0; i<img_desc.length;i++)
if (img_desc.toString().match(/doubleclick\.net|feedburner\.com|weborama\.fr/i)==null) item_icon=img_desc.replace(/src=\"([^"]+)\"/gi,'$1').replace(/&/g,'&').replace(/&/g,'&');
}
return item_icon;
};
function get_feeditem_content_type(feeditem)
{
var media_type=get_feeditem_media_type(feeditem);
if (media_type.indexOf("image")!=-1) return "video";//"image";
else if (media_type.indexOf("audio")!=-1) return "audio";//"audio";
else if (media_type.indexOf("video")!=-1) return "video";
else return "video";
};
function get_feeditem_title(feeditem,count)
{
return (feeditem.title.toString()=='')?'Item '+(count+1):feeditem.title.toString().replace(/(<([^>]+)>)/gi);
};
function get_feeditem_description(feeditem)
{
return new showtime.RichText(feeditem.description.toString());
};
function startPage(page)
{
if (service.tos!='1')
{
showtime.message(_TOS1, true, false);
if (showtime.message(_TOS2, true, true)) service.tos = 1;
else
{
page.error("Terms of service haven't been accepted.\nYou cannot use "+plugin_info.title+" without accepting the Terms of service.");
return;
}
}
//Load XML files
if (get_settings_file('Sources list not loaded')==false) { showtime.message('Sources list not loaded!\nCheck your sources xml file URL/path.', true, false); return; }
// Page properties
page.metadata.title = plugin_info.title+": "+plugin_info.synopsis;
page.metadata.logo = plugin.path+plugin_info.icon;
page.type = "directory";
page.contents = "items";
// Page content
if (service.bycountry!='1' && service.bytheme!='1' && service.bypublisher!='1' && service.bytype!='1' && service.byfavorites!='1')
{
var count=0;
for each (var fee in osources.sources.item)
{
if (show_adult(fee))
{
if (is_web_media(fee)) page.appendItem(fee.link.toString(), "item", { title: color_text(fee,fee.title), icon: get_image(fee,null,"publisher") });
else if (is_web_folder(fee)) page.appendItem(fee.link.toString(), "directory", { title: color_text(fee,fee.title), icon: get_image(fee,null,"publisher") });
else if (is_streaming_media(fee)) add_stream_option(page, fee);
else page.appendItem(plugin_info.id+":browse:None:All:All:All:All:All:"+count, "item", { title: color_text(fee,fee.title), icon: get_image(fee,null,"publisher") });
}
count++;
}
}
else
{
page.appendItem(plugin_info.id+":browse:None:All:All:All:All:All", "directory", { title: 'Benim Ip Tv Lerim' });
}
page.loading = false;
}
plugin.addURI(plugin_info.id+":group.*)", function(page, filter)
{
// Page properties
page.metadata.title = plugin_info.title+' > By '+filter.replace(/by/,'');
page.metadata.logo = plugin.path+plugin_info.icon;
page.type = "directory";
page.contents = "items"
// Page content
var aitem=new Array();
var notidentified=0;
for each (var fee in osources.sources.item)
{
if (show_adult(fee))
{
if (filter=='bycountry') var fee_field=fee.country;
else if (filter=='bytheme') var fee_field=fee.theme;
else if (filter=='bypublisher') var fee_field=fee.publisher;
else if (filter=='bytype') var fee_field=fee.type;
if (fee_field.length()==0) notidentified=1;
for each (var subit in fee_field)
{
if (subit=='') notidentified=1;
else
{
if (searcharr(aitem,subit)==false)
{
if (filter=='bycountry') page.appendItem(plugin_info.id+":browse:"+filter+":"+tp(subit)+":All:All:All:All", "directory", { title: subit, icon: get_image(null,subit,"country") });
else if (filter=='bytheme') page.appendItem(plugin_info.id+":browse:"+filter+":All:"+tp(subit)+":All:All:All", "directory", { title: subit, icon: get_image(null,subit,"theme") });
else if (filter=='bypublisher') page.appendItem(plugin_info.id+":browse:"+filter+":All:All:"+tp(subit)+":All:All", "directory", { title: subit, icon: get_image(null,subit,"publisher") });
else if (filter=='bytype') page.appendItem(plugin_info.id+":browse:"+filter+":All:All:All:"+tp(subit)+":All", "directory", { title: subit, icon: get_image(null,subit,"type") });
aitem.push(subit);
}
}
}
}
}
if (notidentified==1)
{
if (filter=='bycountry') page.appendItem(plugin_info.id+":browse:"+filter+":None:All:All:All:All", "directory", { title: "Not identified", icon: _IMG_UNKNOWN });
else if (filter=='bytheme') page.appendItem(plugin_info.id+":browse:"+filter+":All:None:All:All:All", "directory", { title: "Not identified", icon: _IMG_UNKNOWN });
else if (filter=='bypublisher') page.appendItem(plugin_info.id+":browse:"+filter+":All:All:None:All:All", "directory", { title: "Not identified", icon: _IMG_UNKNOWN });
else if (filter=='bytype') page.appendItem(plugin_info.id+":browse:"+filter+":All:All:All:None:All", "directory", { title: "Not identified", icon: _IMG_UNKNOWN });
}
page.loading = false;
});
plugin.addURI(plugin_info.id+":browse.*).*).*).*).*).*)", function(page, filter, coun, the, pub, typ, fav)
{
// Page properties
if (filter=='bycountry') page.metadata.title = plugin_info.title+' > By country ('+coun+') > Browse';
else if (filter=='bytheme') page.metadata.title = plugin_info.title+' > By theme ('+the+') > Browse';
else if (filter=='bypublisher') page.metadata.title = plugin_info.title+' > By publisher ('+pub+') > Browse';
else if (filter=='bytype') page.metadata.title = plugin_info.title+' > By type ('+typ+') > Browse';
else if (filter=='byfavorites') page.metadata.title = plugin_info.title+' > Favorites > Browse';
else if (filter=='None') page.metadata.title = plugin_info.title+' > Browse';
page.metadata.logo = plugin.path+plugin_info.icon;
page.type = "directory";
page.contents = "items"
page.loading = false;
// Page content
var count=0;
for each (var fee in osources.sources.item)
{
if (show_adult(fee))
{
var notidentified=0;
if (filter!="None")
{
if (filter=='bycountry') { var fee_field=fee.country; var field=coun; }
else if (filter=='bytheme') { var fee_field=fee.theme; var field=the; }
else if (filter=='bypublisher') { var fee_field=fee.publisher; var field=pub; }
else if (filter=='bytype') { var fee_field=fee.type; var field=typ; }
else if (filter=='byfavorites') { var fee_field=fee.favorite; var field=fav; }
if (fee_field.length()==0 && field=="None" && notidentified==0) //All: Not Identified group
{
if (is_web_media(fee)) page.appendItem(fee.link.toString(), "item", { title: color_text(fee,fee.title), icon: get_image(fee,null,"publisher") });
else if (is_web_folder(fee)) page.appendItem(fee.link.toString(), "directory", { title: color_text(fee,fee.title), icon: get_image(fee,null,"publisher") });
else if (is_streaming_media(fee)) add_stream_option(page, fee);
else page.appendItem(plugin_info.id+":browse:"+filter+":"+coun+":"+the+":"+pub+":"+typ+":"+fav+":"+count, "item", { title: color_text(fee,fee.title), icon: get_image(fee,null,"publisher") });
notidentified=1;
}
for each (var subit in fee_field)
{
if ((tp(subit)==field) || (subit=='' && field=="None" && notidentified==0)) //Filter: Group || Not Identified group
{
if (is_web_media(fee)) page.appendItem(fee.link.toString(), "item", { title: color_text(fee,fee.title), icon: get_image(fee,null,"publisher") });
else if (is_web_folder(fee)) page.appendItem(fee.link.toString(), "directory", { title: color_text(fee,fee.title), icon: get_image(fee,null,"publisher") });
else if (is_streaming_media(fee)) add_stream_option(page, fee);
else page.appendItem(plugin_info.id+":browse:"+filter+":"+coun+":"+the+":"+pub+":"+typ+":"+fav+":"+count, "item", { title: color_text(fee,fee.title), icon: get_image(fee,null,"publisher") });
}
}
}
else //No filter: All
{
if (is_web_media(fee)) page.appendItem(fee.link.toString(), "item", { title: color_text(fee,fee.title), icon: get_image(fee,null,"publisher") });
else if (is_web_folder(fee)) page.appendItem(fee.link.toString(), "directory", { title: color_text(fee,fee.title), icon: get_image(fee,null,"publisher") });
else if (is_streaming_media(fee)) add_stream_option(page, fee);
else page.appendItem(plugin_info.id+":browse:"+filter+":"+coun+":"+the+":"+pub+":"+typ+":"+fav+":"+count, "item", { title: color_text(fee,fee.title), icon: get_image(fee,null,"publisher") });
}
}
count++;
}
page.loading = false;
});
plugin.addURI(plugin_info.id+":browse.*).*).*).*).*).*)[0-9]+)", function(page, filter, coun, the, pub, typ, fav, feedid)
{
// Page properties
if (filter=='None') page.metadata.title = plugin_info.title+' > Browse > '+osources.sources.item[feedid].title;
else page.metadata.title = plugin_info.title+' > ... > Browse > '+osources.sources.item[feedid].title;
page.metadata.logo = plugin.path+plugin_info.icon;
page.type = "directory";
page.contents = "list";
// Page content
try
{
feed_contents = new XML(valid_xml(showtime.httpGet(osources.sources.item[feedid].link)));
var count=0;
for each (var feed_item_content in feed_contents.channel.item)
{
var media_type=get_feeditem_media_type(feed_item_content);
var item_icon=get_feeditem_thumbnail(feed_item_content);
var content_type=get_feeditem_content_type(feed_item_content);
var item_title=get_feeditem_title(feed_item_content,count);
var item_desc=get_feeditem_description(feed_item_content);
if (osources.sources.item[feedid].type!="RSS feed")
{
var media_content=(feed_item_content.enclosure [MENTION=118316]typ[/MENTION]e.toString()!='')?feed_item_content.enclosure:feed_item_content.media::content;
var media_type=media_content [MENTION=118316]typ[/MENTION]e;
var media_length=media_content.@length;
var media_url=media_content.@url;
if (is_media_available(null,media_url)) page.appendItem(media_url, content_type, { title: item_title, description: item_desc, year: feed_item_content.pubDate, icon: item_icon });
else page.appendItem(plugin_info.id+"ffline", content_type, { title: "[X] "+item_title, description: item_desc, year: feed_item_content.pubDate, icon: item_icon });
}
else page.appendItem(plugin_info.id+":browse:"+filter+":"+coun+":"+the+":"+pub+":"+typ+":"+fav+":"+feedid+"-"+count, content_type, { title: item_title, description: item_desc, year: feed_item_content.pubDate, icon: item_icon });
count=count+1;
if (service.debug=='1') showtime.trace(item_title+'\n->'+item_icon);
}
}
catch (err) { showtime.message(err+'\n'+osources.sources.item[feedid].link+'\nFeed not loaded', true, false); }
page.loading = false;
});
plugin.addURI(plugin_info.id+":browse.*).*).*).*).*).*)[0-9]+-[0-9]+)", function(page, filter, coun, the, pub, typ, fav, feedanditemid)
{
// Page properties
var parts=feedanditemid.toString().split("-");
var feedid=parts[0];
var feeditemid=parts[1];
page.metadata.title = plugin_info.title+' > ... > '+feed_contents.channel.item[feeditemid].title;
page.metadata.logo = plugin.path+plugin_info.icon;
page.type = "item";
page.metadata.icon=_IMG_UNKNOWN;
// Page content
var feed_item_content=feed_contents.channel.item[feeditemid];
var item_icon=get_feeditem_thumbnail(feed_item_content);
var item_title=get_feeditem_title(feed_item_content,feeditemid);
var item_desc=get_feeditem_description(feed_item_content);
page.metadata.icon= item_icon;
if (feed_item_content.title!='') page.appendPassiveItem("label", item_title, { title: "Title"});
if (feed_item_content.pubDate!='') page.appendPassiveItem("label", feed_item_content.pubDate, { title: "Data"});
if (feed_item_content.link!='') page.appendPassiveItem("label", feed_item_content.link, { title: "Link"});
page.appendPassiveItem("divider");
page.appendPassiveItem("bodytext", item_desc);
var next=parseInt(feeditemid)-1;
var prev=parseInt(feeditemid)+1;
if (prev<feed_contents.channel.item.length()) page.appendAction("navopen",plugin_info.id+":browse:"+filter+":"+coun+":"+the+":"+pub+":"+typ+":"+fav+":"+feedid+"-"+prev, true, { title: "<< Previous item" });
if (next>=0) page.appendAction("navopen",plugin_info.id+":browse:"+filter+":"+coun+":"+the+":"+pub+":"+typ+":"+fav+":"+feedid+"-"+next, true, { title: "Next item >>" });
page.appendAction("navopen",plugin_info.id+":browse:"+filter+":"+coun+":"+the+":"+pub+":"+typ+":"+fav+":"+feedid, true, { title: "Back to list" });
page.loading = false;
});
plugin.addURI(plugin_info.id+"ffline", function(page)
{
page.metadata.title = plugin_info.title+' > Offline';
page.type = "item";
page.metadata.icon=_IMG_OFFLINE;
page.appendPassiveItem("label", "This content is offline or Showtime can't handle it.", { title: "Title"});
page.loading = false;
});
//Start plugin
plugin.addURI(plugin_info.id+":start", startPage);
})(this);
bu webmedia nin ayar yerinde 4 link in denistirme yeri var 1 yaparsan birinci link i okuyor 2 yaparsan 2 ci link..
böyle devam 4 e kadar ve en asarda debug ja yapmaniz lazim galiba
-------------------------- bu da navi x in iptv.plx format i
iptv.plx
version=7
background=default
logo=none
title=Türk Iptv Film ve Tv
player=default
playmode=default
#
type=video
name=TURK_ULUSAL:TRT Music - TRT Music
URL=http://stream6.dyndns.tv:8888/live?channelId=187&uid=573&deviceUser=dzevad1&devicePass=dzevad1
#
type=video
name=TURK_ULUSAL:TRT MÜZİK
URL=http://trtcanlitv-lh.akamaihd.net/i/TRTMUZIK_1@181845/master.m3u8
#
type=video
name=TURK_ULUSAL:TRT MÜZIK -320*180
URL=http://re.trtcdn.com:1935/tv/trtmuzik_1/hasbahca.m3u8
#
type=video
name=TURK_ULUSAL:TRT MÜZİK -640*480
URL=http://sol.trtcdn.com/tv/trtmuzik/trtmuzik_3/hasbahca.m3u8
#
type=video
name=TURK_ULUSAL:TRT MÜZİK rtmp
URL=rtmp://sol.trtcdn.com/tv/trtmuzik/mp4:trtmuzik_3
#
type=video
name=TURK_ULUSAL:TRT OKUL
URL=http://trtcanlitv-lh.akamaihd.net/i/TRTOKUL_1@182245/master.m3u8
#
type=video
name=TURK_ULUSAL:TRT Okul - TRT Okul
URL=http://sangajstream.dyndns.biz:80/live?channelId=186&uid=573&deviceUser=dzevad1&devicePass=dzevad1
#
type=video
name=TURK_ULUSAL:TRT OKUL -640*360 rtmp
URL=rtmp://re.trtcdn.com/tv//trtokul_3
#
type=video
name=TURK_ULUSAL:TRT OKUL -640*480
URL=http://sol.trtcdn.com/tv/trtokul/smil:trtokul.smil/hasbahca.m3u8
#
type=video
name=TURK_ULUSAL:TRT OKUL m3u8 720*576 myvideo.az
URL=http://hls01-03.az.myvideo.az/hls-live/livepkgr/okul/okul/okul.m3u8?hasbahcaiptv.com=fb%2Fsimpletvipadresleri
#
type=video
name=TURK_ULUSAL:TRT OKUL rtmp
URL=rtmp://sol.trtcdn.com/tv/trtokul/mp4:trtokul_3
#
type=video
name=TURK_ULUSAL:TRT OKUL rtmp
URL=rtmp://sol.trtcdn.com/tv//trtokul_3
#
type=video
name=TURK_ULUSAL:TRT SPOR
URL=http://trtcanlitv-lh.akamaihd.net/i/TRTSPOR1_1@182042/master.m3u8
#
type=video
name=TURK_ULUSAL:TRT SPOR m3u8 720*576 myvideo.az
URL=http://hls01-08.az.myvideo.az/hls-live/livepkgr/trt3/trt3/trt3.m3u8?hasbahcaiptv.com=fb%2Fsimpletvipadresleri
#
-----------------------buda örnek m3u listesi formati-----------------------
iptv.m3u
#EXTINF:-1,TV8
Değerli ziyaretçimiz lütfen, içeriği görüntüleyebilmek için
Giriş yap
veya
Kayıt ol
anlayışınız için teşekkürler.
#EXTINF:-1,TV2 HD
Değerli ziyaretçimiz lütfen, içeriği görüntüleyebilmek için
Giriş yap
veya
Kayıt ol
anlayışınız için teşekkürler.
#EXTINF:-1,KANAL7 HD
Değerli ziyaretçimiz lütfen, içeriği görüntüleyebilmek için
Giriş yap
veya
Kayıt ol
anlayışınız için teşekkürler.
#EXTINF:-1,BEYAZ TV
Değerli ziyaretçimiz lütfen, içeriği görüntüleyebilmek için
Giriş yap
veya
Kayıt ol
anlayışınız için teşekkürler.
#EXTINF:-1,KANALTURK
Değerli ziyaretçimiz lütfen, içeriği görüntüleyebilmek için
Giriş yap
veya
Kayıt ol
anlayışınız için teşekkürler.
#EXTINF:-1,NTV
Değerli ziyaretçimiz lütfen, içeriği görüntüleyebilmek için
Giriş yap
veya
Kayıt ol
anlayışınız için teşekkürler.
#EXTINF:-1,NTV SPOR
Değerli ziyaretçimiz lütfen, içeriği görüntüleyebilmek için
Giriş yap
veya
Kayıt ol
anlayışınız için teşekkürler.
#EXTINF:-1,TRTSPOR HD
Değerli ziyaretçimiz lütfen, içeriği görüntüleyebilmek için
Giriş yap
veya
Kayıt ol
anlayışınız için teşekkürler.
#EXTINF:-1,A SPOR
Değerli ziyaretçimiz lütfen, içeriği görüntüleyebilmek için
Giriş yap
veya
Kayıt ol
anlayışınız için teşekkürler.
#EXTINF:-1,CNNTURK HD