misc.anonradio: try 2
This commit is contained in:
		
							parent
							
								
									947a7baa44
								
							
						
					
					
						commit
						5e97b7e9cf
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -283,7 +283,9 @@ anonradio.callback = async function (msg, line) {
 | 
			
		|||
  );
 | 
			
		||||
  const icecast = await fetch("http://anonradio.net:8010/status-json.xsl")
 | 
			
		||||
    .then((res) => res.text())
 | 
			
		||||
    .then((data) => JSON.parse(data.replace(/"title":-,/g, '"title":"-",')));
 | 
			
		||||
    .then((data) =>
 | 
			
		||||
      JSON.parse(data.replace(/"title": - ,/g, '"title":" - ",'))
 | 
			
		||||
    );
 | 
			
		||||
 | 
			
		||||
  let lines = schedule.split("\n");
 | 
			
		||||
  lines = lines.slice(4, lines.length - 2);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue