Skip to content

Commit

Permalink
Fix distortionradio.com (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wykks committed Jun 13, 2015
1 parent 8030197 commit 07e2625
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions data/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,19 @@ switch(host)
case 'distortionradio.com':
setInterval(function()
{
var currentPlaying = $('.item_info').slice(0,1);
var artistName = currentPlaying.find('.artist').text();
var trackName = currentPlaying.find('.title').text();
var play = artistName + ' - ' + trackName;
if ($('#pause').length){
var artistName = $('#current_artist > a').text();
var trackName = $('#current_title').text();
var play = artistName + ' - ' + trackName;

if (last !== play){
nowPlaying(
{
nowPlaying : play,
trackName : artistName,
artistName : trackName,
});
if (last !== play){
nowPlaying(
{
nowPlaying : play,
trackName : trackName,
artistName : artistName,
});
}
}
}, interval);
break;
Expand Down

0 comments on commit 07e2625

Please sign in to comment.