JSON load series data

series data

by Craig Martin

HTML

<div id="rez">x</div>


<script>

seriesdata = {
"series_title":"The Break-Up Diet",  
"coverimage":"https://www.hollywoodtechshop.com/podscribe/wp-content/uploads/2021/07/Break-Up-Diet-Image-e1629319597834.png", 
"epi_id":"30282", 
    "episodes":{
        "ep1":{
            "epi_num":1.1,
            "endof_series" : false,
            "episode_title":" I’m Not Miranda Hobbes",
            "mp3":"hollywoodtechshop.com/podscribe/wp-content/uploads/series_episodes/THE_BRAKE_UP_DIET_1.1.mp3",
            "offsets":{
            "dialogtimes" : "2,29,65,68,85,100,101,114,125,130,166,185,186,196,207,209,210,223,233,239,249,250,252,253,254,258,263,266,271,272,274,275,281,286,295,296,299,300,301,305,306,307,315,318,322"
            },
            "content":"<li spkr_name='Fictionz' class='cue speaker1 spk trlistyle notspeaking' start-offset='2'><div class='mark_time'>0:02</div><span>Hello, you are listening to Fictionz. Short serialized, female forward stories. Please be advised the show may contain scenes that some viewers may find disturbing. It is intended for mature listeners.</span></li><li spkr_name='Rose' class='cue speaker1 spk trlistyle notspeaking' start-offset='29'><div class='mark_time'>0:29</div><span>You know that romantic comedy where the girl is faking that her life is so perfect? And you're like, stop lying, we can all see that you have a shit job and your boyfriend is cheating on you, and you could stand to lose 10 pounds. Well, maybe 13 and a half. Anyway, I can relate to this poor unfortunate soul. It's like when your friend group assigns everyone a character in Sex in the City. I'm always Miranda Hobbs. No one ever wants to be Miranda. I can't possibly be all of Miranda. But that's not the point. It all started two weeks ago when I caught my boyfriend. </span></li><li spkr_name='Cliff' class='cue speaker1 spk trlistyle notspeaking' start-offset='65'><div class='mark_time'>1:05</div><span>Ex, your ex boyfriend. </span></li><li spkr_name='Rose'...

CSS

//$epi_id = get_post_meta($postid, 'epi_id', true);//product id
//$epi_num = get_post_meta($postid, 'epi_num', true);
//$series_title = get_post_meta($postid, 'series_title', true);
//$tracktitle = get_post_meta($postid, 'tracktitle', true);
//$mp3 = site_url()."/".get_post_meta($postid, 'mp3', true);
///$buypage = get_post_meta($postid, 'buypage', true);
//$cover_image = get_post_meta($postid, 'coverimage', true);

$site_url_home = site_url();

$tags = get_tags();
$html = '<div style="display:;" class="post_tags">';
foreach ( $tags as $tag ) {
    $tag_link = get_tag_link( $tag->term_id );
             
    $html .= "<a href='{$tag_link}' title='{$tag->name} Tag' class='{$tag->slug}'>";
    $html .= "{$tag->name}</a>";
}
$html .= '</div>';
echo $html;




$epi_numG = $_GET['epi_num'];
$epi_id_get = $_GET['epi_id']; 
$epi_num = $_GET['epi_num'];
if(!$epi_num){
$epi_num = 1.1;
}




$player_opt = $_GET['opt'];
if(!$player_opt){
$player_opt = "audiotext";
}

$product = wc_get_product( $epi_id );
$regular_price = $product->get_regular_price();
$unlimited_price = 100;
$sale_price = $product->get_sale_price();
$price = $product->get_price();

?>

<script>
console.log("Series Player v2.74");
site_url_home = "<? echo $site_url_home;?>";
unlimited_price = "<? echo $unlimited_price;?>";
regular_price = "<? echo $regular_price;?>";
sale_price = "<? echo $sale_price;?>";
price = "<? echo $price;?>";
//epi_id = "<? echo $epi_id;?>";
//epi_id_get = "<? echo $epi_id;?>";

player_opt = "<? echo $player_opt;?>";
prm_user = true;
def_episode_start_loc = 0;
def_episode_end_loc = 25;
//series_title = "<? echo $series_title;?>";
//tracktitle = "<? echo $tracktitle;?>";
epi_num_next = epi_num + 0.1;
sel_episode_num = epi_num;
audiopath = "<? echo $mp3;?>";  
coverImage = "<? echo $cover_image;?>";	
series_image = "<? echo $series_image;?>";