mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 02:47:02 -05:00
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:
@@ -13,7 +13,7 @@ dayjs.extend(customParseFormat)
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'mncvision.id',
|
site: 'mncvision.id',
|
||||||
days: 2,
|
days: 2,
|
||||||
url: 'https://mncvision.id/schedule/table',
|
url: 'https://www.mncvision.id/schedule/table',
|
||||||
request: {
|
request: {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
data: function ({ channel, date }) {
|
data: function ({ channel, date }) {
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ const headers = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
it('can generate valid url', () => {
|
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', () => {
|
it('can generate valid request method', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user