Skip Navigation

Oops! We couldn't find that page...

It may have been removed or had its name changed. Try using Search or go to The CW home page.

Go to Home Page

Search results for:

    Loading search results...

    Sorry, we couldn't find anything matching:

    • Try search using a series or movie title.

    ACTION REQUIRED! To ensure proper video playback, please update to the latest version of Google Chrome. Your current version will no longer be supported after December 6.

    `; } } else if (objectType == 'Episode') { let image_url = getTivoItemImageUrl(item, 'THUMBNAIL'); if (image_url) { let guid = item.id; let show_slug = item.metadata.slug; let item_title = item.title.en; let episodeNum = item.episodeNum - (item.seasonNum * 100); let subtitle = "S"+item.seasonNum+':E'+episodeNum+ ' | Airdate:'; // S1:E1 | Airdate: 4.6.18 let item_url = '/shows/'+show_slug+'/?play='+guid; let badge = 'NEW !'; swimlane_item_html = `
  • `+item_title+`

    `+subtitle+`

  • `; } } else { console.debug('objectType='+objectType); } return swimlane_item_html; } function getTivoSwimlane(laneidx, swimlane_class, tivo_qid, lane, items_html) { let lane_slug = mp_lc_content_slug(lane.name); let swimlane_html = `

    `+lane.name+`

      ` + items_html + `
    `; return swimlane_html; } function buildTivoSwimlaneItem(laneidx, tivo_api_url, mpid) { let all_tivo_lanes_html = ''; tivo_api_url = tivo_api_url.replace("{" + "cwuid" + "}", mpid); tivo_api_url = tivo_api_url.replace("{" + "device" + "}", 'html5'); tivo_api_url += '&offset=0&limit=10&width=50'; let base_laneidx = 1000 * laneidx, row_idx = 1; $.ajax({ dataType: "json", url: tivo_api_url, async: false, success: function(data) { if (data.rows) { let tivo_qid = data.queryId; $(data.rows).each(function(i) { let lane_item, items_html = '', item_index = 0, lane = $(this)[0]; lane_title = lane.name; let swimlane_class = 'show vertical'; // TODO $(lane.items).each(function(j) { lane_item = $(this)[0]; item_index++; let lane_html = getTivoSwimlaneItem(item_index, lane_item); items_html += lane_html; if (lane_item.objectType == 'Episode') { swimlane_class = 'video horizontal'; // TODO } }); if (items_html) { lane_html = getTivoSwimlane(base_laneidx + row_idx, swimlane_class, tivo_qid, lane, items_html); all_tivo_lanes_html += lane_html; let lane_slug = lane_title.toLowerCase().replace(/ /g, '-').replace(/[^\w-]+/g, ''); $('.swimlane.lane-'+lane_slug).remove(); console.debug('Removed: lane-'+lane_slug); } row_idx++; }); } $('#loader-'+laneidx).after(all_tivo_lanes_html); $('#loader-'+laneidx).remove(); } }); } function initializeTivoSwimlanes() { let tvs = gup('tivoscreens'); if (tvs !== null) { CWTV.Site.tivoScreensActive = tvs; } if (CWTV.Site.tivoScreensActive == 0) { $('.tivo-loader').remove(); return; } if (typeof window.mParticle.Identity.getCurrentUser == 'function') { try { let mpid = window.mParticle.Identity.getCurrentUser().getMPID(); CWTV.Site.cwuid = mpid; buildAllTivoSwimlanes(CWTV.Site.cwuid); } catch (err) { console.error(err); } } } function buildAllTivoSwimlanes(mpid) { let lanes = $('.tivo-loader'); $(lanes).each(function(){ let laneidx = $(this).data('idx'), tivo_api_url = $(this).data('apiurl'); if (tivo_api_url) { buildTivoSwimlaneItem(laneidx, tivo_api_url, mpid); } }); } document.addEventListener('lazybeforeunveil', function(e) { var bg = e.target.getAttribute('data-bg'); if (bg) { e.target.style.backgroundImage = 'url('+bg+')'; } });