diff --git a/config.php b/config.php index 8302415..43f9e04 100644 --- a/config.php +++ b/config.php @@ -17,8 +17,11 @@ define('DB_PASS', "YOUR_DATABASE_PASSWORD"); // DB table names - define('DB_TABLE', "tracks"); +//your last.fm info +define('API_KEY', "YOUR_LASTFM_API_KEY"); +define('LASTFM_USER', "YOUR_LASTFM_USER"); + ?> diff --git a/heardsync.php b/heardsync.php index d4f87f7..4851b74 100644 --- a/heardsync.php +++ b/heardsync.php @@ -23,8 +23,7 @@ // for now, we'll just run this 2 times per day, so if you listen to more than 200 songs in 12 hours, we will miss some... // at one point I knew the right way to do it but I didn't implement it, so feel free to figure it out... -$from_xml_source = 'http://ws.audioscrobbler.com/2.0/?method=user.getRecentTracks&api_key=xxxxxxxxxxxxxxxxxxxxxxxx&user=xxxxxxxxxxxx&limit=100&page=1'; -// ...................................................................................... ^ PUT YOUR API KEY HERE ^ PUT YOUR USERNAME HERE +$from_xml_source = 'http://ws.audioscrobbler.com/2.0/?method=user.getRecentTracks&api_key='.API_KEY.'&user='.LASTFM_USER.'&limit=100&page=1'; $from_remote_fp = fopen($from_xml_source, "rb"); diff --git a/tracks.php b/tracks.php index d334c72..8862dc7 100644 --- a/tracks.php +++ b/tracks.php @@ -130,7 +130,7 @@
tracks scrobbled.