jQuery(document).ready(function(s){var t,a=s("#ssp-external-feed-progress"),o=s("#podcast_settings_tab_nonce"),n=!0;if(0Imported "+e[a]+"

"+t;r.html(t)}function u(){s(".ssp-ssp-external-feed-message").html("Import completed successfully !").css("color","green")}function c(){n=!1,clearInterval(t)}function d(){s.ajax({url:ajaxurl,type:"get",data:{action:"get_external_rss_feed_progress",nonce:o.val()}}).done(function(e){n&&(l(e.progress,"blue"),i(e.episodes))})}function p(){s.ajax({url:ajaxurl,type:"get",data:{action:"reset_rss_feed_data",nonce:o.val()}}).done(function(e){"error"===e.status&&alert("Could not reset current feed import, please refresh this page to try again")})}function f(e=""){e=e||"An error occurred importing the RSS feed. \n\n We'll try to proceed importing after the page refresh.",alert(e)||window.location.reload()}});