Compare commits

...

2 Commits

Author SHA1 Message Date
coletdjnz
d35557a75d [Telegraaf] Use mobile GraphQL API endpoint
Workaround for Cloudflare 403
Fixes https://github.com/yt-dlp/yt-dlp/issues/5000
Authored by: coletdjnz
2022-10-04 11:43:08 +01:00
dirkf
9493ffdb8b [test] Use windows-2019 for tests
(At least for now) resolves #31249
2022-10-04 11:31:29 +01:00
2 changed files with 5 additions and 3 deletions

View File

@ -15,12 +15,12 @@ jobs:
run-tests-ext: [sh] run-tests-ext: [sh]
include: include:
# python 3.2 is only available on windows via setup-python # python 3.2 is only available on windows via setup-python
- os: windows-latest - os: windows-2019
python-version: 3.2 python-version: 3.2
python-impl: cpython python-impl: cpython
ytdl-test-set: core ytdl-test-set: core
run-tests-ext: bat run-tests-ext: bat
- os: windows-latest - os: windows-2019
python-version: 3.2 python-version: 3.2
python-impl: cpython python-impl: cpython
ytdl-test-set: download ytdl-test-set: download

View File

@ -34,7 +34,9 @@ class TelegraafIE(InfoExtractor):
article_id = self._match_id(url) article_id = self._match_id(url)
video_id = self._download_json( video_id = self._download_json(
'https://www.telegraaf.nl/graphql', article_id, query={ 'https://app.telegraaf.nl/graphql', article_id,
headers={'User-Agent': 'De Telegraaf/6.8.11 (Android 11; en_US)'},
query={
'query': '''{ 'query': '''{
article(uid: %s) { article(uid: %s) {
videos { videos {