Список разделов › foobar2000 › Секреты foobar2000
http://searchservice.myspace.com/index.cfm?fuseaction=sitesearch.results&qry=ARTISTNAME&type=Music
http://searchservice.myspace.com/index.cfm?fuseaction=sitesearch.results&qry=(%artist%, ,%20)&type=Music
http://searchservice.myspace.com/index.cfm?fuseaction=sitesearch.results&orig=search_Header&type=Music&qry=(%artist%, , %20)&submit=%D0%9F%D0%BE%D0%B8%D1%81%D0%BA
http://searchservice.myspace.com/index.cfm?fuseaction=sitesearch.results&type=Music&qry=$replace($replace(%artist%, ,+),&,'%26')
// ==========================================================================
// JavaScript Tool for URL Encoding/Decoding
// Copyright (C) 2006 Netzreport (netzreport.googlepages.com)
//
// Website: http://netzreport.googlepages.com/online_tool_for_url_en_decoding.html
//
// 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 2
// 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, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
//
// The GNU General Public License is also available from:
// http://www.gnu.org/copyleft/gpl.html
//
// A local copy of the GNU General Public License is available here:
// http://netzreport.googlepages.com/gpl.txt
// ==========================================================================
// According to RFC 3986, only characters from a set of reserved and a set
// of unreserved characters are allowed in a URL:
var unreserved = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_.~+";
var reserved = "!*'();:@&=$,/?%#[]";
var allowed = unreserved + reserved;
var hexchars = "0123456789ABCDEFabcdef";
var result="";
var link = WScript.Arguments;
function gethex(decimal) {
return "%" + hexchars.charAt(decimal >> 4) + hexchars.charAt(decimal & 0xF);
}
function encode(decoded) {
var encoded = "";
for (var i = 0; i < decoded.length; i++ ) {
var ch = decoded.charAt(i);
if (unreserved.indexOf(ch) != -1) {
encoded = encoded + ch;
} else {
var charcode = decoded.charCodeAt(i);
if (charcode < 128) {
encoded = encoded + gethex(charcode);
}
if (charcode > 127 && charcode < 2048) {
encoded = encoded + gethex((charcode >> 6) | 0xC0);
encoded = encoded + gethex((charcode & 0x3F) | 0x80);
}
if (charcode > 2047 && charcode < 65536) {
encoded = encoded + gethex((charcode >> 12) | 0xE0);
encoded = encoded + gethex(((charcode >> 6) & 0x3F) | 0x80);
encoded = encoded + gethex((charcode & 0x3F) | 0x80);
}
if (charcode > 65535) {
encoded = encoded + gethex((charcode >> 18) | 0xF0);
encoded = encoded + gethex(((charcode >> 12) & 0x3F) | 0x80);
encoded = encoded + gethex(((charcode >> 6) & 0x3F) | 0x80);
encoded = encoded + gethex((charcode & 0x3F) | 0x80);
}
}
}
return encoded;
}
for (var i = 0; i < link.length; i++ ) {
if (i%2==0)
result = result + link(i);
else
result = result + encode(link(i));
}
WScript.CreateObject("WScript.Shell").Run(result);
.\tools\url.js string1 var1 [string2 [var2 [string3 [var3 […]]]]]
http://www.discogs.com/search?type=artists&q=$replace($replace(%artist%, ,+),&,'%26')
неизменяемые и переменные части отделяются пробелами, их может быть неограниченное число..\tools\url.js http://www.discogs.com/search?type=artists&q= $replace($replace(%artist%, ,+),&,'%26')
http://forum.funkysouls.com/index.php?s=&act=Search&CODE=01&keywords=$ansi($replace((%artist%,а,'%'D0'%'B0,б,'%'D0'%'B1,в,'%'D0'%'B2,г,'%'D0'%'B3,д,'%'D0'%'B4,е,'%'D0'%'B5,ё,'%'D1'%'91,ж,'%'D0'%'B6,з,'%'D0'%'B7,и,'%'D0'%'B8,й,'%'D0'%'B9,к,'%'D0'%'BA,л,'%'D0'%'BB,м,'%'D0'%'BC,н,'%'D0'%'BD,о,'%'D0'%'BE,п,'%'D0'%'BF,р,'%'D1'%'80,с,'%'D1'%'81,т,'%'D1'%'82,у,'%'D1'%'83,ф,'%'D1'%'84,х,'%'D1'%'85,ц,'%'D1'%'86,ч,'%'D1'%'87,ш,'%'D1'%'88,щ,'%'D1'%'89,ъ,'%'D1'%'8A,ы,'%'D1'%'8B,ь,'%'D1'%'8C,э,'%'D1'%'8D,ю,'%'D1'%'8E,я,'%'D1'%'8F,А,'%'D0'%'90,Б,'%'D0'%'91,В,'%'D0'%'92,Г,'%'D0'%'93,Д,'%'D0'%'94,Е,'%'D0'%'95,Ё,'%'D0'%'81,Ж,'%'D0'%'96,З,'%'D0'%'97,И,'%'D0'%'98,Й,'%'D0'%'99,К,'%'D0'%'9A,Л,'%'D0'%'9B,М,'%'D0'%'9C,Н,'%'D0'%'9D,О,'%'D0'%'9E,П,'%'D0'%'9F,Р,'%'D0'%'A0,С,'%'D0'%'A1,Т,'%'D0'%'A2,У,'%'D0'%'A3,Ф,'%'D0'%'A4,Х,'%'D0'%'A5,Ц,'%'D0'%'A6,Ч,'%'D0'%'A7,Ш,'%'D0'%'A8,Щ,'%'D0'%'A9,Ъ,'%'D0'%'AA,Ы,'%'D0'%'AB,Ь,'%'D0'%'AC,Э,'%'D0'%'AD,Ю,'%'D0'%'AE,Я,'%'D0'%'AF))&namesearch=&exactname=1&joinname=1&cats=all&cat_forum=forum&forums=all&searchsubs=1&search_in=titles&result_type=topics&prune=0&prune_type=newer&sort_key=last_post&sort_order=desc
".\tools\AlbumArtDownloader\albumart.exe" -ae on -pf on -ar "%album artist%" -al "%album%" -p "$replace(%_path%,'\'%_filename_ext%,)" -f "cover.'%'extension'%'"
тоесть? создать батник, а потом его запускать через foo_run?panda:батник с параметрами
Вернуться в Секреты foobar2000