Rename sportsnet.ca to watch.sportsnet.ca

This commit is contained in:
freearhey 2023-11-27 17:33:53 +03:00
parent b8941c2b2d
commit eabcdc41b0
4 changed files with 13 additions and 15 deletions

View file

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<channels>
<channel site="sportsnet.ca" lang="en" xmltv_id="Sportsnet360.ca" site_id="24467">SportsNet 360</channel>
<channel site="sportsnet.ca" lang="en" xmltv_id="SportsnetEast.ca" site_id="24466">SportsNet East</channel>
<channel site="sportsnet.ca" lang="en" xmltv_id="SportsnetOne.ca" site_id="24469">SportsNet One</channel>
<channel site="sportsnet.ca" lang="en" xmltv_id="SportsnetOntario.ca" site_id="24533">SportsNet Ontario</channel>
<channel site="sportsnet.ca" lang="en" xmltv_id="SportsnetPacific.ca" site_id="24530">SportsNet Pacific</channel>
<channel site="sportsnet.ca" lang="en" xmltv_id="SportsnetWest.ca" site_id="24468">SportsNet West</channel>
<channel site="sportsnet.ca" lang="en" xmltv_id="SportsnetWorld.ca" site_id="5895">SportsNet World</channel>
<channel site="sportsnet.ca" lang="en" xmltv_id="WWENetwork.ca" site_id="29659">WWE Network Canada</channel>
</channels>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<channels>
<channel site="watch.sportsnet.ca" lang="en" xmltv_id="Sportsnet360.ca" site_id="24467">SportsNet 360</channel>
<channel site="watch.sportsnet.ca" lang="en" xmltv_id="SportsnetEast.ca" site_id="24466">SportsNet East</channel>
<channel site="watch.sportsnet.ca" lang="en" xmltv_id="SportsnetOne.ca" site_id="24469">SportsNet One</channel>
<channel site="watch.sportsnet.ca" lang="en" xmltv_id="SportsnetOntario.ca" site_id="24533">SportsNet Ontario</channel>
<channel site="watch.sportsnet.ca" lang="en" xmltv_id="SportsnetPacific.ca" site_id="24530">SportsNet Pacific</channel>
<channel site="watch.sportsnet.ca" lang="en" xmltv_id="SportsnetWest.ca" site_id="24468">SportsNet West</channel>
<channel site="watch.sportsnet.ca" lang="en" xmltv_id="SportsnetWorld.ca" site_id="5895">SportsNet World</channel>
<channel site="watch.sportsnet.ca" lang="en" xmltv_id="WWENetwork.ca" site_id="29659">WWE Network Canada</channel>
</channels>

View file

@ -4,7 +4,7 @@ const utc = require('dayjs/plugin/utc')
dayjs.extend(utc)
module.exports = {
site: 'sportsnet.ca',
site: 'watch.sportsnet.ca',
days: 2,
url: function ({ channel, date }) {
return `https://production-cdn.sportsnet.ca/api/schedules?channels=${

View file

@ -1,6 +1,4 @@
// npm run grab -- --site=sportsnet.ca
const { parser, url } = require('./sportsnet.ca.config.js')
const { parser, url } = require('./watch.sportsnet.ca.config.js')
const dayjs = require('dayjs')
const utc = require('dayjs/plugin/utc')
const customParseFormat = require('dayjs/plugin/customParseFormat')