return '<ahref=""data-toggle="tooltip"title="Path is: '+data.mapped_path+'"data-season='+data.season+'data-episode='+data.episode+'data-episodeTitle="'+data.title+'"data-sonarrEpisodeId='+data.sonarrEpisodeId+'class="episode_history">'+data.title+'</a>';
if (data === 0) {return "<iclass='fas fa-trash'title='Subtitle file has been erased.'data-toggle='tooltip'data-placement='right'></i>";}
else if (data === 1) {return "<iclass='fas fa-download'title='Subtitle file has been downloaded.'data-toggle='tooltip'data-placement='right'></i>";}
else if (data === 2) {return "<iclass='fas fa-user'title='Subtitle file has been manually downloaded.'data-toggle='tooltip'data-placement='right'></i>";}
else if (data === 3) {return "<iclass='fas fa-recycle'title='Subtitle file has been upgraded.'data-toggle='tooltip'data-placement='right'></i>";}
else if (data === 4) {return "<iclass='fas fa-cloud-upload-alt'title='Subtitle file has been manually uploaded.'data-toggle='tooltip'data-placement='right'></i>";}
}},
{ data: 'language' },
{ data: 'provider' },
{ data: 'score'},
@ -772,7 +780,7 @@
]
} );
$('#episodeHistoryModal')
$('#episodeHistoryModal')
.modal({
focus: false
});
@ -790,8 +798,7 @@
$('#seriesTitle').text(seriesDetails['title']);
if (seriesDetails['alternateTitles'].length > 0) {