mirror of
https://github.com/p-stream/providers.git
synced 2026-04-20 17:52:11 +00:00
Update rgshows source URLs and headers to .ru domain
Changed all references from rgshows.me to rgshows.ru in baseUrl and HTTP headers to reflect the new domain. This ensures requests are sent to the correct API and comply with updated referer and origin requirements.
This commit is contained in:
parent
961baf979b
commit
cbb39e9b0b
1 changed files with 5 additions and 5 deletions
|
|
@ -3,11 +3,11 @@ import { NotFoundError } from '@/utils/errors';
|
|||
|
||||
import { SourcererOutput, makeSourcerer } from '../base';
|
||||
|
||||
const baseUrl = 'api.rgshows.me';
|
||||
const baseUrl = 'api.rgshows.ru';
|
||||
|
||||
const headers = {
|
||||
referer: 'https://rgshows.me/',
|
||||
origin: 'https://rgshows.me',
|
||||
referer: 'https://www.rgshows.ru/',
|
||||
origin: 'https://www.rgshows.ru',
|
||||
host: baseUrl,
|
||||
'User-Agent':
|
||||
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',
|
||||
|
|
@ -36,8 +36,8 @@ async function comboScraper(ctx: ShowScrapeContext | MovieScrapeContext): Promis
|
|||
const m3u8Headers = {
|
||||
...headers,
|
||||
host: streamHost,
|
||||
origin: 'https://www.rgshows.me',
|
||||
referer: 'https://www.rgshows.me/',
|
||||
origin: 'https://www.rgshows.ru',
|
||||
referer: 'https://www.rgshows.ru/',
|
||||
};
|
||||
|
||||
ctx.progress(100);
|
||||
|
|
|
|||
Loading…
Reference in a new issue