Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $lines = file(__DIR__.'/exported_tracks.txt');
- $row = null;
- $ts = time();
- $result = "#AUDIOSCROBBLER/1.0
- #TZ/UTC
- #CLIENT/Rockbox h3xx 1.1\n";
- foreach ($lines as $line) {
- $ts -= 19;
- $row = explode("\t", $line);
- $result .= implode("\t", [$row[2], $row[3], $row[1], '', 180, 'L', $ts])."\n";
- }
- file_put_contents(__DIR__.'/.scrobbler.log', $result);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement