Files

47 lines
1.0 KiB
Markdown
Raw Permalink Normal View History

2025-09-28 17:55:05 +03:00
# tv.yandex.ru
https://tv.yandex.ru/
This site is protected by captcha, so if you hit by an error `Got captcha, please goto https://tv.yandex.ru and update cookies!`,
update site configuration in `tv.yandex.ru.config.js` by heading to this site and use browser
Developer Tools and replace matching cookies. The Cookie will likely lasting for one year.
To enable debugging while updating channel list or grabbing the guide, set `DEBUG` environment
to `site:tv.yandex.ru` or `site:*`.
On Windows with Command Prompt:
```sh
set DEBUG="site:tv.yandex.ru"
```
On Windows with PowerShell:
```ps
$env:DEBUG="site:tv.yandex.ru"
```
On Unix-like OSes:
```sh
export DEBUG="site:tv.yandex.ru"
```
### Download the guide
```sh
npm run grab --- --site=tv.yandex.ru
```
### Update channel list
```sh
npm run channels:parse --- --config=sites/tv.yandex.ru/tv.yandex.ru.config.js --output=sites/tv.yandex.ru/tv.yandex.ru.channels.xml
```
### Test
```sh
npm test --- tv.yandex.ru
```