const fs = require('fs');
const content = fs.readFileSync('C:\\Users\\Administrator\\AppData\\Local\\Temp\\zq_kw_v3-fix1.js', 'utf-8');

// Find musicSearch module (ID 5019)
let idx = content.indexOf('/***/ 5019:');
if (idx < 0) idx = content.indexOf('"5019"');
console.log('Module 5019 at:', idx);
if (idx >= 0) console.log(content.substring(idx, idx + 2000));

// Look for the search function's returned fields
console.log('\n=== Looking for field names in search results ===');
const fieldPatterns = ['hash:', 'Hash:', 'songmid:', 'songMid:', 'SongID:', 'songId:', 'MusicID:', 'FileHash:', 'album_name:', 'singer:', 'singername:', 'songname:', 'songName:'];
for (const p of fieldPatterns) {
  const fi = content.indexOf(p);
  if (fi > 0 && fi < content.indexOf('module.exports')) {
    console.log(`  ${p} at ${fi}: ${content.substring(Math.max(0,fi-80), fi+80)}`);
  }
}

// Look for how search results are formatted
console.log('\n=== Search function body ===');
const searchFnStart = content.indexOf('function search_song');
if (searchFnStart >= 0) {
  console.log(content.substring(searchFnStart, searchFnStart + 3000));
}
