Use www.mncvision.id as TV guide source.

Guide for mncvision.id expects to be POST request. The first POST request
indeed routed to https://mncvision.id/schedule/table, but this site will
then redirect it to https://www.mncvision.id/schedule/table. The redirection
will use GET request, so the schedule POST data will never be received
by the site.

Signed-off-by: Toha <tohenk@yahoo.com>
This commit is contained in:
Toha 2023-11-04 01:16:11 +07:00
parent 0cc7f6a5c4
commit f88cb8c0b1
No known key found for this signature in database
GPG key ID: 2D7AA6389D44DCAB
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ dayjs.extend(customParseFormat)
module.exports = {
site: 'mncvision.id',
days: 2,
url: 'https://mncvision.id/schedule/table',
url: 'https://www.mncvision.id/schedule/table',
request: {
method: 'POST',
data: function ({ channel, date }) {

View file

@ -26,7 +26,7 @@ const headers = {
}
it('can generate valid url', () => {
expect(url).toBe('https://mncvision.id/schedule/table')
expect(url).toBe('https://www.mncvision.id/schedule/table')
})
it('can generate valid request method', () => {