spotify-json.js 306 B

123456789101112
  1. console.log(`spotify-json-2023.06.13`);
  2. let url = $request.url;
  3. // console.log(`原始url:${url}`);
  4. if (url.includes('platform=iphone')) {
  5. url = url.replace(/platform=iphone/, 'platform=ipad');
  6. // console.log(`替换platform:${url}`);
  7. } else {
  8. console.log('无需处理');
  9. }
  10. $done({
  11. url
  12. });