31 this._originalURI =
null;
38 return this._originalURI;
44 this._originalURI =
value;
48 function(aFile, aMediaList, aReplace)
52 var typeSniffer =
Cc[
"@songbirdnest.com/Songbird/Mediacore/TypeSniffer;1"]
53 .createInstance(
Ci.sbIMediacoreTypeSniffer);
68 var re =
new RegExp(
"href\\s*=\\s*(['\"])?(.*?)(?:\\1|>)",
"ig");
73 var a = re.exec(aLine);
74 while (a && a.length == 3) {
77 if (newUri && typeSniffer.isValidMediaURL(newUri)) {
78 var item = {
uri: newUri, properties: {}};
100 return "Songbird HTML Reader";
106 return "Scrape HREFs from HTML files.";
112 var mimeTypes = [
"text/html"];
113 aMIMECount.value = mimeTypes.length;
120 var exts = [
"html",
"htm",
"php",
"php3",
""];
121 aExtCount.value = exts.length;
128 if (!iid.equals(
Ci.sbIPlaylistReader) &&
129 !iid.equals(
Ci.nsISupports))
130 throw Cr.NS_ERROR_NO_INTERFACE;
function sbHTMLPlaylistHandler()
function SB_AddItems(aItems, aMediaList, aAddDistinctOnly)
function SB_ResolveURI(aStringURL, aBaseURI)
function SB_ProcessFile(aFile, aCallback, aThis)
Process the file aFile line by line with the callback function aCallback.