Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It cannot be downloaded from www.iprima.cz. I have a paid tariff PREMIUM Prima+ #6524

Open
10 of 11 tasks
Pavot2010 opened this issue Mar 12, 2023 · 16 comments
Open
10 of 11 tasks
Labels
account-needed Account details are needed to test/fix this can-share-account Someone is willing to provide account details for development needs-testing Patch needs testing patch-available There is patch available that should fix this issue. Someone needs to make a PR with it site-bug Issue with a specific website

Comments

@Pavot2010
Copy link

Pavot2010 commented Mar 12, 2023

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Region

Czech Republic

Example URLs

https://www.iprima.cz/serialy/zakony-vlka/zakony-vlka/1-skodna-v-reviru
https://www.iprima.cz/serialy/sedm-schodu-k-moci/cesta-k-moci-verze-2022/2-epizoda-2

Provide a description that is worded well enough to be understood

It cannot be downloaded from www.iprima.cz

ERROR: [IPrima] 1-skodna-v-reviru: Access to stream infos forbidden
File "yt_dlp\extractor\common.py", line 694, in extract
File "yt_dlp\extractor\iprima.py", line 150, in _real_extract
File "yt_dlp\extractor\iprima.py", line 120, in _raise_access_error
File "yt_dlp\extractor\common.py", line 1172, in raise_no_formats

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

C:\yt>yt-dlp -vU --netrc https://www.iprima.cz/serialy/zakony-vlka/zakony-vlka/1-skodna-v-reviru
[debug] Command-line config: ['-vU', '--netrc', 'https://www.iprima.cz/serialy/zakony-vlka/zakony-vlka/1-skodna-v-reviru']
[debug] Encodings: locale cp1250, fs utf-8, pref cp1250, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2023.03.12.091732 [e389d172b] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19044-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: none
[debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1788 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Available version: nightly@2023.03.12.091732, Current version: nightly@2023.03.12.091732
Current Build Hash: 9815b3ef69ae5b0e06ec9266b8759c6a45b34cdb082d2fdfc82a3fd510fd9da7
yt-dlp is up to date (nightly@2023.03.12.091732)
[IPrima] Downloading login page
[IPrima] Logging in
[IPrima] Selecting profile
[IPrima] Downloading token
[IPrima] Extracting URL: https://www.iprima.cz/serialy/zakony-vlka/zakony-vlka/1-skodna-v-reviru
[IPrima] 1-skodna-v-reviru: Downloading webpage
[IPrima] p1098253: Getting manifest URLs
ERROR: [IPrima] 1-skodna-v-reviru: Access to stream infos forbidden
  File "yt_dlp\extractor\common.py", line 694, in extract
  File "yt_dlp\extractor\iprima.py", line 150, in _real_extract
  File "yt_dlp\extractor\iprima.py", line 120, in _raise_access_error
  File "yt_dlp\extractor\common.py", line 1172, in raise_no_formats
@Pavot2010 Pavot2010 added site-request Request to support a new website triage Untriaged issue labels Mar 12, 2023
@pukkandan pukkandan added account-needed Account details are needed to test/fix this site-bug Issue with a specific website and removed site-request Request to support a new website triage Untriaged issue labels Mar 12, 2023
@pukkandan
Copy link
Member

The account-needed label is just a hint for maintainers and any potential contributors that account is needed to work on the issue; and is not asking you to give account to the maintainer who added the label. If someone is interested in working on this and needs account details for that, they will let you know how to share it privately.

@slrslr
Copy link

slrslr commented Jun 2, 2023

I have tried to download same address and the error is a bit different:
$ yt-dlp -vU --username myemailhere --password mypassword https://www.iprima.cz/serialy/zakony-vlka/zakony-vlka/1-skodna-v-reviru

[debug] Command-line config: ['-vU', '--username', 'PRIVATE', '--password', 'PRIVATE', 'https://www.iprima.cz/serialy/zakony-vlka/zakony-vlka/1-skodna-v-reviru']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2023.06.02.182917 [1a7dcca37] (zip)
[debug] Python 3.9.2 (CPython x86_64 64bit) - Linux-5.10.0-23-amd64-x86_64-with-glibc2.31 (OpenSSL 1.1.1n  15 Mar 2022, glibc 2.31)
[debug] exe versions: ffmpeg 4.3.6-0, ffprobe 4.3.6-0
[debug] Optional libraries: Cryptodome-3.9.7, certifi-2020.12.05, pyxattr-0.7.2, secretstorage-3.3.1, sqlite3-2.6.0
[debug] Proxy map: {}
[debug] Loaded 1840 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Available version: nightly@2023.06.02.182917, Current version: nightly@2023.06.02.182917
Current Build Hash: 1a0590ee87e69bebf3ad9e4fc4deddec70649278c03ff3d362cfb902bbc9db7a
yt-dlp is up to date (nightly@2023.06.02.182917)
[IPrima] Downloading login page
[IPrima] Logging in
[IPrima] Downloading token
[IPrima] Extracting URL: https://www.iprima.cz/serialy/zakony-vlka/zakony-vlka/1-skodna-v-reviru
[IPrima] 1-skodna-v-reviru: Downloading webpage
ERROR: [IPrima] 1-skodna-v-reviru: Unable to extract __NUXT__; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 703, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/iprima.py", line 137, in _real_extract
    nuxt_data = self._search_nuxt_data(webpage, video_id, traverse='data')
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 1676, in _search_nuxt_data
    js, arg_keys, arg_vals = self._search_regex(
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 1251, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)

I am having free account at iprima.

@sourekv
Copy link

sourekv commented Oct 7, 2023

Hello I would like to confirm that this is the issue of paid vs free account.

Free works.

Paid fails:

yt-dlp.exe -vU -u login -p password https://www.iprima.cz/serialy/zakony-vlka/zakony-vlka/2-prilis-krehka-pravda --output "1-2. Prilis krehka pravda.mp4"
[debug] Command-line config: ['-vU', '-u', 'PRIVATE', '-p', 'PRIVATE', 'https://www.iprima.cz/serialy/zakony-vlka/zakony-vlka/2-prilis-krehka-pravda', '--output', '1-2. Prilis krehka pravda.mp4']
[debug] Encodings: locale cp1250, fs utf-8, pref cp1250, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2023.10.07.010341 [377e85a] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k 25 Mar 2021)
[debug] exe versions: ffmpeg 2023-08-23-git-5f5a1ccd04-full_build-www.gyan.dev (setts), ffprobe 2023-08-23-git-5f5a1ccd04-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.19.0, brotli-1.1.0, certifi-2023.07.22, mutagen-1.47.0, sqlite3-3.35.5, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1886 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Available version: nightly@2023.10.07.010341, Current version: nightly@2023.10.07.010341
Current Build Hash: 0bf0154602da2dad4684719096b8f1498f1a53b8e409ad053127e31f0f902e48
yt-dlp is up to date (nightly@2023.10.07.010341)
[IPrima] Downloading login page
[IPrima] Logging in
[IPrima] Downloading token
[IPrima] Extracting URL: https://www.iprima.cz/serialy/zakony-vlka/zakony-vlka/2-prilis-krehka-pravda
[IPrima] 2-prilis-krehka-pravda: Downloading webpage
[IPrima] p1141074: Getting manifest URLs
ERROR: [IPrima] 2-prilis-krehka-pravda: Access to stream infos forbidden
File "yt_dlp\extractor\common.py", line 715, in extract
File "yt_dlp\extractor\iprima.py", line 157, in _real_extract
File "yt_dlp\extractor\iprima.py", line 120, in _raise_access_error
File "yt_dlp\extractor\common.py", line 1193, in raise_no_formats

@gamer191
Copy link
Collaborator

gamer191 commented Oct 9, 2023

@sourekv if a developer requested it, would you be willing to share your account credentials? Please don't post your credentials on Github, by the way

@sourekv
Copy link

sourekv commented Oct 9, 2023

@sourekv if a developer requested it, would you be willing to share your account credentials? Please don't post your credentials on Github, by the way

Yes, sure.

@pkejval
Copy link

pkejval commented Oct 31, 2023

Is there any progress on this?

@sourekv
Copy link

sourekv commented Nov 6, 2023

@gamer191 Is there still possibility that you will use my credentials to investigate issue? I consider not to extend my premium account.

@stanoarn
Copy link
Contributor

@mkubecek implemented a workaround for this years ago. No idea if it still works.
His fix can be found here.
I will hopefully look into this a bit more before Christmas.

@pukkandan pukkandan added patch-available There is patch available that should fix this issue. Someone needs to make a PR with it needs-testing Patch needs testing can-share-account Someone is willing to provide account details for development labels Nov 29, 2023
@sourekv
Copy link

sourekv commented Jan 13, 2024

I am not sure this is the same issue but free acount is not working as well.


yt-dlp.exe -vU -u user -p password https://www.iprima.cz/serialy/na-jezere/top-of-the-lake-s1/1-epizoda-1  --output "epizoda-1.mp4"
[debug] Command-line config: ['-vU', '-u', 'PRIVATE', '-p', 'PRIVATE', 'https://www.iprima.cz/serialy/na-jezere/top-of-the-lake-s1/1-epizoda-1', '--output', 'epizoda-1.mp4']
[debug] Encodings: locale cp1250, fs utf-8, pref cp1250, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2024.01.09.232723 from yt-dlp/yt-dlp-nightly-builds [95e82347b] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg 4.2.3, ffprobe 2023-10-09-git-37b5f4a1f6-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.19.1, brotli-1.1.0, certifi-2023.11.17, mutagen-1.47.0, requests-2.31.0, sqlite3-3.35.5, urllib3-2.1.0, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1798 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Latest version: nightly@2024.01.09.232723 from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date (nightly@2024.01.09.232723 from yt-dlp/yt-dlp-nightly-builds)
[IPrima] Downloading login page
[IPrima] Logging in
[IPrima] Downloading token
[IPrima] Extracting URL: https://www.iprima.cz/serialy/na-jezere/top-of-the-lake-s1/1-epizoda-1
[IPrima] 1-epizoda-1: Downloading webpage
[IPrima] p1237764: Getting manifest URLs
ERROR: [IPrima] 1-epizoda-1: Access to stream infos forbidden
  File "yt_dlp\extractor\common.py", line 718, in extract
  File "yt_dlp\extractor\iprima.py", line 157, in _real_extract
  File "yt_dlp\extractor\iprima.py", line 120, in _raise_access_error
  File "yt_dlp\extractor\common.py", line 1196, in raise_no_formats

@std-move
Copy link
Contributor

@sourekv No, it is not the same issue, please see #6187 (comment)

This error is expected with free accounts.

@sourekv
Copy link

sourekv commented Jan 14, 2024

Thank you for the explanation. It was still working a few days ago. I mean free accounts.

@sourekv
Copy link

sourekv commented Jan 14, 2024

Log for premium acccount

yt-dlp.exe -vU -u user -p password https://www.iprima.cz/serialy/na-jezere/top-of-the-lake-s1/1-epizoda-1  --output "epizoda-1.mp4"
[debug] Command-line config: ['-vU', '-u', 'PRIVATE', '-p', 'PRIVATE', 'https://www.iprima.cz/serialy/na-jezere/top-of-the-lake-s1/1-epizoda-1', '--output', 'epizoda-1.mp4']
[debug] Encodings: locale cp1250, fs utf-8, pref cp1250, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2024.01.09.232723 from yt-dlp/yt-dlp-nightly-builds [95e82347b] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg 4.2.3, ffprobe 2023-10-09-git-37b5f4a1f6-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.19.1, brotli-1.1.0, certifi-2023.11.17, mutagen-1.47.0, requests-2.31.0, sqlite3-3.35.5, urllib3-2.1.0, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1798 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Latest version: nightly@2024.01.09.232723 from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date (nightly@2024.01.09.232723 from yt-dlp/yt-dlp-nightly-builds)
[IPrima] Downloading login page
[IPrima] Logging in
[IPrima] Downloading token
[IPrima] Extracting URL: https://www.iprima.cz/serialy/na-jezere/top-of-the-lake-s1/1-epizoda-1
[IPrima] 1-epizoda-1: Downloading webpage
[IPrima] p1237764: Getting manifest URLs
ERROR: [IPrima] 1-epizoda-1: Access to stream infos forbidden
  File "yt_dlp\extractor\common.py", line 718, in extract
  File "yt_dlp\extractor\iprima.py", line 157, in _real_extract
  File "yt_dlp\extractor\iprima.py", line 120, in _raise_access_error
  File "yt_dlp\extractor\common.py", line 1196, in raise_no_formats

@std-move
Copy link
Contributor

That error could probably be addressed by the patch above #6524 (by importing header X-OTT-Device)

@sourekv
Copy link

sourekv commented Jan 14, 2024

Thank you. Unfortunately that is above my abilities.

@mkubecek
Copy link
Contributor

mkubecek commented Jan 14, 2024

For the record, I no longer work on this problem as I stopped paying for the subscription. (When I learned that after the "Prima Plus" redesign, I would have to pay about three times as much as before, I decided that 1080p Prima is not worth that much for me.) If someone wants to take over, the latest state of the patch can be found in branch https://github.com/mkubecek/yt-dlp/tree/mk/primaplus in my clone of the repository but I cannot even test it any more.

@sourekv
Copy link

sourekv commented Feb 4, 2024

@mkubecek is there a chance to make you fix this? Eg. one year voucher for free? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
account-needed Account details are needed to test/fix this can-share-account Someone is willing to provide account details for development needs-testing Patch needs testing patch-available There is patch available that should fix this issue. Someone needs to make a PR with it site-bug Issue with a specific website
Projects
None yet
Development

No branches or pull requests

9 participants