package music2;
import tool.*;
import java.io.File;
public class pro {
int s,datanumber;
String[] data=new String[40000];
String[] link=new String[40000];
String[] name=new String[40000];
String[] music=new String[40000];
public static void main(String[] args) {
pro t=new pro();
}
pro(){
File f=new File("profile");
String[] ff=f.list();
int tr=1238;
int sx=0;
for(tr=0;tr<ff.length;tr++){
readfile sub2=new readfile();
sub2.makedata("profile/"+ff[tr],"UTF-8");
data=sub2.data;
datanumber=sub2.datanumber;
String date="";
String str="";
int s1=1;
for(s=1;s<datanumber;s++){
if(data[s].indexOf("toc_media")>-1)s1=s;
}
sx=0;
for(s=s1;s<datanumber;s++){
if(data[s].indexOf("/mediadb/media")>-1)sx=sx+1;
if(data[s].indexOf("/mediadb/media")>-1) music[sx]=data[s];
}
int number=sx;
for(s=1;s<number+1;s++){
int p1=music[s].indexOf("/mediadb/media/");
int p2=music[s].indexOf("\"",p1);
link[s]=music[s].substring(p1,p2);
}
writefile sub5=new writefile();
sub5.data=link;
sub5.datanumber=number;
sub5.makedata("data/"+ff[tr]);
}
}
String change(String str){
int n;
for(n=1;n<11;n++){
str=rev(str);
}
str=str.replace(" ","");
return str;
}
String rev(String str){
if(str==null)str="";
int p1=str.indexOf("<");
int p2=str.indexOf(">",p1);
String strx="";
if(p2>-1)strx=str.substring(p1,p2+1);
str=str.replace(strx,"");
return str;
}
}
最終更新:2016年09月09日 08:06