<commit_before>/*
 * Chrome-Last.fm-Scrobbler for Daytrotter.com "new interface" Connector
 * 
 * <NAME> - tomkrall[at]gmail[dot]com
 *
 */

console.log('Entered daytrotter.js');

var track;
var artist;
var duration;
var current;

var _flg_Reported;

var container_duration = 'div#jp_interface_1.jp-interface div.jp-duration';
var container_currenttime = 'div#jp_interface_1.jp-interface div.jp-current-time';
var container_mediainfo	= 'div#jp_playlist_1.jp-playlist.single ul.nof li a';
var container_playbutton = 'a.jp-play';		//'div#jp_playlist_1.jp-playlist.single ul.nof.jp-controls li a.jp-pause';
var container_pausebutton = 'a.jp-pause';	//'div#jp_playlist_1.jp-playlist.single ul.nof.jp-controls li a.jp-play';

var _flg_IsPlaying = false;
var _flg_IsPaused = false;
var _flg_NeedsToBeReported = 0;
var _flg_HasBeenReported = 0;

function IsPaused(){
	return !_flg_IsPaused;
}

$(function(){

	console.log("Daytrotter module starting up");

	/*********************************************************************************************************************************

		Monitor the duration container for changines to the track. When the duration changes and is set, it is definitely a new track.

	**********************************************************************************************************************************/
	$(container_duration).live('DOMSubtreeModified', function(e) {

		var tempStr = $(container_mediainfo).text();
		var tempSplit = tempStr.split(" - ", 2);
		var t_artist = tempSplit[0];
		var t_track = tempSplit[1];<commit_msg>Update daytrotter.js<commit_after>/*
 * Chrome-Last.fm-Scrobbler for Daytrotter.com "new interface" Connector
 * 
 * <NAME> - tomkrall[at]gmail[dot]com
 *
 */

console.log('Entered daytrotter.js');

var track;
var artist;
var duration;
var current;

var _flg_Reported;

var container_duration = 'div#jp_interface_1.jp-interface div.jp-duration';
var container_currenttime = 'div#jp_interface_1.jp-interface div.jp-current-time';
var container_mediainfo	= 'div#jp_playlist_1.jp-playlist.single ul.nof li a';
var container_playbutton = 'a.jp-play';		//'div#jp_playlist_1.jp-playlist.single ul.nof.jp-controls li a.jp-pause';
var container_pausebutton = 'a.jp-pause';	//'div#jp_playlist_1.jp-playlist.single ul.nof.jp-controls li a.jp-play';

var _flg_IsPlaying = false;
var _flg_IsPaused = false;
var _flg_NeedsToBeReported = 0;
var _flg_HasBeenReported = 0;

function IsPaused(){
	return !_flg_IsPaused;
}

$(function(){

	console.log("Daytrotter module starting up");

	/*********************************************************************************************************************************

		Monitor the duration container for changes to the track. When the duration changes and is set, it is definitely a new track.

	**********************************************************************************************************************************/
	$(container_duration).live('DOMSubtreeModified', function(e) {

		var tempStr = $(container_mediainfo).text();
		var tempSplit = tempStr.split(" - ", 2);
		var t_artist = tempSplit[0];
		var t_track = tempSplit[1];
{'fraction_non_alphanumeric': 0.2726118692478578, 'fraction_numerical': 0.006347191367819739, 'mean_word_length': 6.115124153498871, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1171153', 'n_tokens_mistral': 1068, 'n_tokens_neox': 971, 'n_words': 214}