From 27d51ac964d807051e432e711705c03b54579a6e Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Fri, 1 Dec 2023 14:25:47 +0300 Subject: [PATCH] Rename tving.com to m.tving.com --- .../__data__/content.txt | 0 .../__data__/no_content.txt | 0 sites/m.tving.com/m.tving.com.channels.xml | 33 +++++++++++++++++++ .../m.tving.com.config.js} | 2 +- .../m.tving.com.test.js} | 5 +-- sites/tving.com/tving.com.channels.xml | 33 ------------------- 6 files changed, 35 insertions(+), 38 deletions(-) rename sites/{tving.com => m.tving.com}/__data__/content.txt (100%) rename sites/{tving.com => m.tving.com}/__data__/no_content.txt (100%) create mode 100644 sites/m.tving.com/m.tving.com.channels.xml rename sites/{tving.com/tving.com.config.js => m.tving.com/m.tving.com.config.js} (95%) rename sites/{tving.com/tving.com.test.js => m.tving.com/m.tving.com.test.js} (84%) delete mode 100644 sites/tving.com/tving.com.channels.xml diff --git a/sites/tving.com/__data__/content.txt b/sites/m.tving.com/__data__/content.txt similarity index 100% rename from sites/tving.com/__data__/content.txt rename to sites/m.tving.com/__data__/content.txt diff --git a/sites/tving.com/__data__/no_content.txt b/sites/m.tving.com/__data__/no_content.txt similarity index 100% rename from sites/tving.com/__data__/no_content.txt rename to sites/m.tving.com/__data__/no_content.txt diff --git a/sites/m.tving.com/m.tving.com.channels.xml b/sites/m.tving.com/m.tving.com.channels.xml new file mode 100644 index 00000000..88025bff --- /dev/null +++ b/sites/m.tving.com/m.tving.com.channels.xml @@ -0,0 +1,33 @@ + + + + 채널a + 채널a plus + 중화TV + 히스토리 + jtbc2 + jtbc4 + jtbc + MBN + MBN Plus + Mnet + OCN + Ch. CGV + super Action + OGN + Onstyle + Tooniverse + c time + tv조선 + tvN + OtvN + Xtvn + Olive + 연합뉴스 + YTN life + YTN + YTN science + diff --git a/sites/tving.com/tving.com.config.js b/sites/m.tving.com/m.tving.com.config.js similarity index 95% rename from sites/tving.com/tving.com.config.js rename to sites/m.tving.com/m.tving.com.config.js index 7e9ce9dc..454d0c02 100644 --- a/sites/tving.com/tving.com.config.js +++ b/sites/m.tving.com/m.tving.com.config.js @@ -10,7 +10,7 @@ dayjs.extend(timezone) dayjs.extend(customParseFormat) module.exports = { - site: 'tving.com', + site: 'm.tving.com', days: 2, url: function ({ channel, date }) { return `https://api.tving.com/v2/media/schedules/${channel.site_id}/${date.format( diff --git a/sites/tving.com/tving.com.test.js b/sites/m.tving.com/m.tving.com.test.js similarity index 84% rename from sites/tving.com/tving.com.test.js rename to sites/m.tving.com/m.tving.com.test.js index 9f7cd6ce..d3ba9fc1 100644 --- a/sites/tving.com/tving.com.test.js +++ b/sites/m.tving.com/m.tving.com.test.js @@ -1,7 +1,4 @@ -// npm run channels:parse -- --config=./sites/tving.com/tving.com.config.js --output=./sites/tving.com/tving.com.channels.xml -// npm run grab -- --site=tving.com - -const { parser, url } = require('./tving.com.config.js') +const { parser, url } = require('./m.tving.com.config.js') const fs = require('fs') const path = require('path') const dayjs = require('dayjs') diff --git a/sites/tving.com/tving.com.channels.xml b/sites/tving.com/tving.com.channels.xml deleted file mode 100644 index 0e019688..00000000 --- a/sites/tving.com/tving.com.channels.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - 채널a - 채널a plus - 중화TV - 히스토리 - jtbc - jtbc2 - jtbc4 - MBN - MBN Plus - Mnet - OCN - Ch. CGV - super Action - OGN - Olive - Onstyle - OtvN - Tooniverse - tv조선 - c time - tvN - Xtvn - 연합뉴스 - YTN - YTN life - YTN science -