VideoHelp Forum



Support our site by donate $5 directly to us Thanks!!!

Try StreamFab Downloader and download streaming video from Netflix, Amazon!



+ Reply to Thread
Page 9 of 21
FirstFirst ... 7 8 9 10 11 19 ... LastLast
Results 241 to 270 of 617
  1. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by Akirainblack View Post
    I get an error on Ubuntu 24.04 running python 3.12 with updating the My5 keys.
    Do not manually update. It auto-updates on its own without using selenium driver.
    Originally Posted by Akirainblack View Post
    BBC gives:
    title = f"[green]{val.split('\t')[0]}[/green]"
    ^
    SyntaxError: f-string expression part cannot include a backslash
    The code works fine on Fedora 39 running python 3.12 and Windows 11 running 3.12.
    But someone else complained of this issue so I've refactored the code.

    Update here https://files.videohelp.com/u/301890/uk-fta_14_2.zip
    Last edited by A_n_g_e_l_a; 16th May 2024 at 13:57.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  2. Thanks @A_n_g_e_l_a that works perfectly on Ubuntu 24.04 with 3.12 now.
    Quote Quote  
  3. Originally Posted by A_n_g_e_l_a View Post
    Originally Posted by BadJoker View Post
    Just wondered can you change the audio stream that the TPTV downloader uses? as for the life of me i cannot get it to download the highest bitrate audio-2, if i change the Nm3u8DL-RE switches in the TPTV.py it still defaults to audio-0. Just wondering if it also happens to any others here that use this, i can grab them fine using the Nm3u8DL-RE gui and an older version just not with the script.
    Is there a highest bitrate on this site? It is max 576p I've never looked at audio or any stream quality for that matter. But that is for you to explore and change yourself. Plenty of people can give advice on the intricacies of N_m3u8DL-RE.
    Well i would like to specify audio-2 which is the highest bitrate audio offered, however even though i have modified the TPTV.py file to reflect this, it seems to automatically default to audio-0, you can look at most .mpds and they will have the highest video resolution paired with audio-2 usually, as i say i can manually download with the CLI version and the GUI but not with the script, it's not a big issue as i manually clean the formatting of the subs prior to muxing anyway.
    Quote Quote  
  4. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Update below
    Last edited by A_n_g_e_l_a; 17th May 2024 at 09:43.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  5. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by BadJoker View Post

    Well i would like to specify audio-2 which is the highest bitrate audio offered, however even though i have modified the TPTV.py file to reflect this,
    OK. I see what is happening now. There are fairly anonymous streams presented in the json - HLS and DASH. I chose HLS as easier and faster to deal with. But the DASH stream has 96kb/s and 127kb/s
    THe manifest json looks like this
    HTML Code:
     "sources": [
        {
          "codecs": "avc1,mp4a",
          "ext_x_version": "4",
          "src": "http://manifest.prod.boltdns.net/manifest/v1/hls/v4/aes128/6272132012001/1f4d07b0-a0c0-483e-a4fa-183ea65cb201/6s/master.m3u8?fastly_token=NjY0N2I4YWRfYWNlY2E0MTNmOWFkMzdmZWE0YjgyZjkwMzk3OWY3Yjg4Njg3ZDMzMWYzMWRjN2NlODNiYTZjZDVhM2UzMDg5ZQ%3D%3D",
          "type": "application/x-mpegURL"
        },
        {
          "codecs": "avc1,mp4a",
          "ext_x_version": "4",
          "src": "https://manifest.prod.boltdns.net/manifest/v1/hls/v4/aes128/6272132012001/1f4d07b0-a0c0-483e-a4fa-183ea65cb201/6s/master.m3u8?fastly_token=NjY0N2I4YWRfYWNlY2E0MTNmOWFkMzdmZWE0YjgyZjkwMzk3OWY3Yjg4Njg3ZDMzMWYzMWRjN2NlODNiYTZjZDVhM2UzMDg5ZQ%3D%3D",
          "type": "application/x-mpegURL"
        },
        {
          "codecs": "avc1,mp4a",
          "profiles": "urn:mpeg:dash:profile:isoff-live:2011",
          "src": "http://manifest.prod.boltdns.net/manifest/v1/dash/live-baseurl/clear/6272132012001/1f4d07b0-a0c0-483e-a4fa-183ea65cb201/6s/manifest.mpd?fastly_token=NjY0N2I4YWRfMDVkYzU4MjJjOWQwN2VmNTlmMmU0Y2UyM2UyNzE1ODgyOWVkOWViOTdlMDIwZTkzODI4MWU2YzMxN2QzMmQ2MA%3D%3D",
          "type": "application/dash+xml"
        },
        {
          "codecs": "avc1,mp4a",
          "profiles": "urn:mpeg:dash:profile:isoff-live:2011",
          "src": "https://manifest.prod.boltdns.net/manifest/v1/dash/live-baseurl/clear/6272132012001/1f4d07b0-a0c0-483e-a4fa-183ea65cb201/6s/manifest.mpd?fastly_token=NjY0N2I4YWRfMDVkYzU4MjJjOWQwN2VmNTlmMmU0Y2UyM2UyNzE1ODgyOWVkOWViOTdlMDIwZTkzODI4MWU2YzMxN2QzMmQ2MA%3D%3D",
          "type": "application/dash+xml"
        }
      ],
    So now I have handle on the issue I'll see if I can code for it.

    edit - now picking 127kb/s audio
    Image
    [Attachment 79191 - Click to enlarge]
    Last edited by A_n_g_e_l_a; 17th May 2024 at 08:50.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  6. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Update to fix TPTV and ITVX. ITVX will now handle Films as a direct download with URL. TPTV had changed since I last coded the extractor. Whilst it gave no errors it didn't give the best audio stream.

    https://files.videohelp.com/u/301890/uk-fta_14_3.zip
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  7. I have just give it a try.

    And got this error when trying to update My5 from the menu:
    Code:
    (env) PS C:\Users\user\git\UK-FTA.14.3> py -3.10 -m menu.py
    Traceback (most recent call last):
      File "C:\Users\user\git\UK-FTA.14.3\ukfta\my5_dl\hmac-aes-update.py", line 16, in <module>
        from selenium import webdriver
    ModuleNotFoundError: No module named 'selenium'
    C:\Users\user\AppData\Local\Programs\Python\Python310\python.exe: Error while finding module specification for 'menu.py' (ModuleNotFoundError: __path__ attribute not found on 'menu' while trying to find 'menu.py'). Try using 'menu' instead of 'menu.py' as the module name.

    But "selenium" is installed:
    Code:
    (env) PS C:\Users\user\git\UK-FTA.14.3> py -3.10 -m pip install -r requirements.txt
    Requirement already satisfied: beaupy==3.8.2 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 1)) (3.8.2)
    Requirement already satisfied: beautifulsoup4==4.12.3 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 2)) (4.12.3)
    Requirement already satisfied: httpx==0.27.0 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 3)) (0.27.0)
    Requirement already satisfied: jmespath==1.0.1 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 4)) (1.0.1)
    Requirement already satisfied: pycryptodome==3.19.0 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 5)) (3.19.0)
    Requirement already satisfied: pyfiglet==1.0.2 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 6)) (1.0.2)
    Requirement already satisfied: pywidevine==1.8.0 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 7)) (1.8.0)
    Requirement already satisfied: Requests==2.31.0 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 8)) (2.31.0)
    Requirement already satisfied: rich==13.7.1 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 9)) (13.7.1)
    Requirement already satisfied: Scrapy==2.11.1 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 10)) (2.11.1)
    Requirement already satisfied: selectolax==0.3.17 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 11)) (0.3.17)
    Requirement already satisfied: selenium==4.20.0 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 12)) (4.20.0)
    Requirement already satisfied: termcolor==2.4.0 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 13)) (2.4.0)
    Requirement already satisfied: pyaml==24.4.0 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 15)) (24.4.0)
    Requirement already satisfied: emoji<3.0.0,>=2.0.0 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from beaupy==3.8.2->-r requirements.txt (line 1)) (2.11.1)
    Requirement already satisfied: python-yakh==0.3.2 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from beaupy==3.8.2->-r requirements.txt (line 1)) (0.3.2)
    Requirement already satisfied: questo<0.3.0,>=0.2.3 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from beaupy==3.8.2->-r requirements.txt (line 1)) (0.2.3)
    Requirement already satisfied: soupsieve>1.2 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from beautifulsoup4==4.12.3->-r requirements.txt (line 2)) (2.5)
    Requirement already satisfied: anyio in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from httpx==0.27.0->-r requirements.txt (line 3)) (4.3.0)
    Requirement already satisfied: certifi in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from httpx==0.27.0->-r requirements.txt (line 3)) (2024.2.2)
    Requirement already satisfied: httpcore==1.* in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from httpx==0.27.0->-r requirements.txt (line 3)) (1.0.5)
    Requirement already satisfied: idna in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from httpx==0.27.0->-r requirements.txt (line 3)) (3.7)
    Requirement already satisfied: sniffio in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from httpx==0.27.0->-r requirements.txt (line 3)) (1.3.1)
    Requirement already satisfied: PyYAML<7.0.0,>=6.0.1 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from pywidevine==1.8.0->-r requirements.txt (line 7)) (6.0.1)
    Requirement already satisfied: Unidecode<2.0.0,>=1.3.7 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from pywidevine==1.8.0->-r requirements.txt (line 7)) (1.3.8)
    Requirement already satisfied: click<9.0.0,>=8.1.7 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from pywidevine==1.8.0->-r requirements.txt (line 7)) (8.1.7)
    Requirement already satisfied: protobuf<5.0.0,>=4.25.1 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from pywidevine==1.8.0->-r requirements.txt (line 7)) (4.25.3)
    Requirement already satisfied: pymp4<2.0.0,>=1.4.0 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from pywidevine==1.8.0->-r requirements.txt (line 7)) (1.4.0)
    Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Requests==2.31.0->-r requirements.txt (line 8)) (3.3.2)
    Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Requests==2.31.0->-r requirements.txt (line 8)) (2.2.1)
    Requirement already satisfied: markdown-it-py>=2.2.0 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from rich==13.7.1->-r requirements.txt (line 9)) (3.0.0)
    Requirement already satisfied: pygments<3.0.0,>=2.13.0 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from rich==13.7.1->-r requirements.txt (line 9)) (2.18.0)
    Requirement already satisfied: Twisted>=18.9.0 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Scrapy==2.11.1->-r requirements.txt (line 10)) (24.3.0)
    Requirement already satisfied: cryptography>=36.0.0 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Scrapy==2.11.1->-r requirements.txt (line 10)) (42.0.7)
    Requirement already satisfied: cssselect>=0.9.1 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Scrapy==2.11.1->-r requirements.txt (line 10)) (1.2.0)
    Requirement already satisfied: itemloaders>=1.0.1 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Scrapy==2.11.1->-r requirements.txt (line 10)) (1.2.0)
    Requirement already satisfied: parsel>=1.5.0 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Scrapy==2.11.1->-r requirements.txt (line 10)) (1.9.1)
    Requirement already satisfied: pyOpenSSL>=21.0.0 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Scrapy==2.11.1->-r requirements.txt (line 10)) (24.1.0)
    Requirement already satisfied: queuelib>=1.4.2 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Scrapy==2.11.1->-r requirements.txt (line 10)) (1.7.0)
    Requirement already satisfied: service-identity>=18.1.0 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Scrapy==2.11.1->-r requirements.txt (line 10)) (24.1.0)
    Requirement already satisfied: w3lib>=1.17.0 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Scrapy==2.11.1->-r requirements.txt (line 10)) (2.1.2)
    Requirement already satisfied: zope.interface>=5.1.0 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Scrapy==2.11.1->-r requirements.txt (line 10)) (6.4)
    Requirement already satisfied: protego>=0.1.15 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Scrapy==2.11.1->-r requirements.txt (line 10)) (0.3.1)
    Requirement already satisfied: itemadapter>=0.1.0 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Scrapy==2.11.1->-r requirements.txt (line 10)) (0.9.0)
    Requirement already satisfied: setuptools in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Scrapy==2.11.1->-r requirements.txt (line 10)) (65.5.0)
    Requirement already satisfied: packaging in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Scrapy==2.11.1->-r requirements.txt (line 10)) (24.0)
    Requirement already satisfied: tldextract in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Scrapy==2.11.1->-r requirements.txt (line 10)) (5.1.2)
    Requirement already satisfied: lxml>=4.4.1 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Scrapy==2.11.1->-r requirements.txt (line 10)) (5.2.2)
    Requirement already satisfied: PyDispatcher>=2.0.5 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Scrapy==2.11.1->-r requirements.txt (line 10)) (2.0.7)
    Requirement already satisfied: trio~=0.17 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from selenium==4.20.0->-r requirements.txt (line 12)) (0.25.1)
    Requirement already satisfied: trio-websocket~=0.9 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from selenium==4.20.0->-r requirements.txt (line 12)) (0.11.1)
    Requirement already satisfied: typing_extensions>=4.9.0 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from selenium==4.20.0->-r requirements.txt (line 12)) (4.11.0)
    Requirement already satisfied: h11<0.15,>=0.13 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from httpcore==1.*->httpx==0.27.0->-r requirements.txt (line 3)) (0.14.0)
    Requirement already satisfied: colorama in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from click<9.0.0,>=8.1.7->pywidevine==1.8.0->-r requirements.txt (line 7)) (0.4.6)
    Requirement already satisfied: cffi>=1.12 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from cryptography>=36.0.0->Scrapy==2.11.1->-r requirements.txt (line 10)) (1.16.0)
    Requirement already satisfied: mdurl~=0.1 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from markdown-it-py>=2.2.0->rich==13.7.1->-r requirements.txt (line 9)) (0.1.2)
    Requirement already satisfied: construct==2.8.8 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from pymp4<2.0.0,>=1.4.0->pywidevine==1.8.0->-r requirements.txt (line 7)) (2.8.8)
    Requirement already satisfied: attrs>=19.1.0 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from service-identity>=18.1.0->Scrapy==2.11.1->-r requirements.txt (line 10)) (23.2.0)
    Requirement already satisfied: pyasn1 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from service-identity>=18.1.0->Scrapy==2.11.1->-r requirements.txt (line 10)) (0.6.0)
    Requirement already satisfied: pyasn1-modules in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from service-identity>=18.1.0->Scrapy==2.11.1->-r requirements.txt (line 10)) (0.4.0)
    Requirement already satisfied: sortedcontainers in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from trio~=0.17->selenium==4.20.0->-r requirements.txt (line 12)) (2.4.0)
    Requirement already satisfied: outcome in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from trio~=0.17->selenium==4.20.0->-r requirements.txt (line 12)) (1.3.0.post0)
    Requirement already satisfied: exceptiongroup in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from trio~=0.17->selenium==4.20.0->-r requirements.txt (line 12)) (1.2.1)
    Requirement already satisfied: wsproto>=0.14 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from trio-websocket~=0.9->selenium==4.20.0->-r requirements.txt (line 12)) (1.2.0)
    Requirement already satisfied: automat>=0.8.0 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Twisted>=18.9.0->Scrapy==2.11.1->-r requirements.txt (line 10)) (22.10.0)
    Requirement already satisfied: constantly>=15.1 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Twisted>=18.9.0->Scrapy==2.11.1->-r requirements.txt (line 10)) (23.10.4)
    Requirement already satisfied: hyperlink>=17.1.1 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Twisted>=18.9.0->Scrapy==2.11.1->-r requirements.txt (line 10)) (21.0.0)
    Requirement already satisfied: incremental>=22.10.0 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Twisted>=18.9.0->Scrapy==2.11.1->-r requirements.txt (line 10)) (22.10.0)
    Requirement already satisfied: twisted-iocpsupport<2,>=1.0.2 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from Twisted>=18.9.0->Scrapy==2.11.1->-r requirements.txt (line 10)) (1.0.4)
    Requirement already satisfied: pysocks!=1.5.7,<2.0,>=1.5.6 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from urllib3[socks]<3,>=1.26->selenium==4.20.0->-r requirements.txt (line 12)) (1.7.1)
    Requirement already satisfied: requests-file>=1.4 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from tldextract->Scrapy==2.11.1->-r requirements.txt (line 10)) (2.0.0)
    Requirement already satisfied: filelock>=3.0.8 in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from tldextract->Scrapy==2.11.1->-r requirements.txt (line 10)) (3.13.4)
    Requirement already satisfied: six in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from automat>=0.8.0->Twisted>=18.9.0->Scrapy==2.11.1->-r requirements.txt (line 10)) (1.16.0)
    Requirement already satisfied: pycparser in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (from cffi>=1.12->cryptography>=36.0.0->Scrapy==2.11.1->-r requirements.txt (line 10)) (2.22)

    I have also checked the PATH for "config.py"
    Code:
    nano .\ukfta\configs\config.py
    but there is nothing of significance to the above error



    Here is what I have done:

    #Download
    Code:
    aria2c https://files.videohelp.com/u/301890/uk-fta_14_3.zip --dir $home\Downloads\
    tar -xzvf $home\Downloads\uk-fta_14_3.zip -C $home\git\
    ls $home\git\UK*
    mv $home\git\UK-FTA $home\git\UK-FTA.14.3
    cd $home\git\UK-FTA.14.3

    #Checked all Dependencies are Installed:
    Code:
    py -3.10 -V
    py -3.10 -m pip -V
    ffmpeg -version; 
    ffprobe -version; 
    mp4decrypt;
    N_m3u8DL-RE --version;
    mkvmerge --version; 
    shaka-packager -version; 
    #Fin;

    #Updated Python PIP in version 3.10
    Code:
    py -3.10 -m pip install --upgrade pip

    py -3.10 -m venv env
    Code:
    .\env\Scripts\activate
    py -3.10 -m pip install -r requirements.txt

    (from inside UK-FTA folder)
    cd $home\git\UK-FTA.14.3
    py -3.10 -m menu.py
    Last edited by pssh; 17th May 2024 at 11:11. Reason: Tried v14.3 as well
    If I was in politics I make sure you drink plenty of beer
    and watch plenty of TV to keep you busy. | Data is the new oil.
    Quote Quote  
  8. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by pssh View Post
    I have just give it a try.

    And got this error when trying to update My5 from the menu:
    My5 auto-updates.

    Updating from the menu is only provided if auto-update fails. The README says as much. Your machine installation reporting no selenium is strange when it is clearly listed but it indicates you have made an error.

    When a module is reported missing but it is already installed it usually means the user has confused themselves over environments. And a script is calling a program that uses selenium from an environment that doesn't actually have it installed.

    For UK-FTA create a new env and activate it. THEN do the pip install -r requirements.txt.

    I note you are calling python from source C:\Users\user\AppData\Local\Programs\Python\Python 310\python.exe - that looks to be unusual. Why? It should be in Path as python.
    When you do call it, properly you use py -3.10. That is incompatible with the top level menu - it calls scripts by 'python script <script-name>
    Unless 'python' produces

    Code:
    Python 3.12.3 (tags/v3.12.3:f6650f9, Apr  9 2024, 14:05:25) [MSC v.1938 64 bit (AMD64)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>>
    Then my script suite will not work on your non-standard system.
    Last edited by A_n_g_e_l_a; 17th May 2024 at 12:03.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  9. Originally Posted by A_n_g_e_l_a View Post
    Originally Posted by pssh View Post
    I have just give it a try.

    And got this error when trying to update My5 from the menu:
    My5 auto-updates.

    Updating from the menu is only provided if auto-update fails. The README says as much. Your machine installation reporting no selenium is strange when it is clearly listed but it indicates you have made an error.

    When a module is reported missing but it is already installed it usually means the user has confused themselves over environments. And a script is calling a program that uses selenium from an environment that doesn't actually have it installed.

    For UK-FTA create a new env and activate it. THEN do the pip install -r requirements.txt.

    I note you are calling python from source C:\Users\user\AppData\Local\Programs\Python\Python 310\python.exe - that looks to be unusual. Why? It should be in Path as python.
    When you do call it, properly you use py -3.10. That is incompatible with the top level menu - it calls scripts by 'python script <script-name>
    Unless 'python' produces

    Code:
    Python 3.12.3 (tags/v3.12.3:f6650f9, Apr  9 2024, 14:05:25) [MSC v.1938 64 bit (AMD64)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>>
    Then my script suite will not work on your non-standard system.

    Reading README it states:

    ## Requirements
    * Python 3.10.*

    So I am assuming it only works with version 3.10.* of Python,
    is that correct or is it Python 3.10+ up to the latest?


    I don't think I have non-standard system
    unless having Multiple (two 3.10 and 3.12) Major Versions of Python Package is classed as non-standard ....

    I have deleted the DIR
    rm $home\git\UK-FTA.14.3
    and tried the whole installation using py 3.10 again and when installing same message
    about already installed dependencies appeared so I may not be using the set-up
    with Multiple Major Versions of Python Package correctly .........
    and as you rightly say so..... (just trying to get my head around it) ......
    If I was in politics I make sure you drink plenty of beer
    and watch plenty of TV to keep you busy. | Data is the new oil.
    Quote Quote  
  10. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by pssh View Post
    python 3.10?
    3.10 and upwards. Poorly phrased I agree. I have 3.12 on a Linux box directly and in a virtual Windows 11 instance. Both run in (with) or without environments. That is up to the user.

    My scripts require 'python' to run. On your machine which python? becomes the issue.
    Last edited by A_n_g_e_l_a; 17th May 2024 at 13:38.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  11. Hi @A_n_g_e_l_a using 14.3 and trying to use My5 I get the following error:
    HTML Code:
    Which Channel?
    module 'time' has no attribute 'clock_gettime'
    I'm using Windows 11 and python 3.10.11.
    Quote Quote  
  12. Originally Posted by Akirainblack View Post
    Hi @A_n_g_e_l_a using 14.3 and trying to use My5 I get the following error:
    HTML Code:
    Which Channel?
    module 'time' has no attribute 'clock_gettime'
    I'm using Windows 11 and python 3.10.11.
    I have the same error Win 11 Pro | Py 3.12)
    If I was in politics I make sure you drink plenty of beer
    and watch plenty of TV to keep you busy. | Data is the new oil.
    Quote Quote  
  13. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by Akirainblack View Post
    Hi @A_n_g_e_l_a using 14.3 and trying to use My5 I get the following error:
    HTML Code:
    Which Channel?
    module 'time' has no attribute 'clock_gettime'
    I'm using Windows 11 and python 3.10.11.
    Runs on my system but apparently is now deprecated.
    So.. find autohmac.py in UK-FTA/ukfta/my5_dl/keys and change

    line 19

    time_stamp = blah-blah to

    Code:
    time_stamp = int(time.time_ns() // 1_000_000_000)
    and do the same in menu.py in UK-FTA change line 43 to the code line above.

    If your editor does not give line numbers search for 'time_stamp'
    Last edited by A_n_g_e_l_a; 18th May 2024 at 13:32.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  14. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by pssh View Post

    I have the same error Win 11 Pro | Py 3.12)
    You got it running then, well nearly...
    Fix above. My Fedora system must have a very relaxed python parser.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  15. Originally Posted by A_n_g_e_l_a View Post
    3.10 and upwards. Poorly phrased I agree. I have 3.12 on a Linux box directly and in a virtual Windows 11 instance. Both run in (with) or without environments. That is up to the user.

    My scripts require 'python' to run. On your machine which python? becomes the issue.
    Thanx for clarification.

    I have tried 3.12.x and all works (also had to install windows-curses package)
    apart from My5 and the error that @Akirainblack has with My5.

    I think I may have made a progress when it comes to having
    "Multiple (two 3.10 and 3.12) Major Versions of Python Package".


    #3.12.*
    Code:
    pip install --upgrade pip
    #########################
    Code:
    py -m venv env
    .\env\Scripts\activate
    #OR
    py -m venv $home\git\UK-FTA.14.3\

    Code:
    cat .\env\pyvenv.cfg
    pip install -r requirements.txt
    pip install windows-curses
    Code:
    py -V
    py -m pip -V
    py menu.py

    and
    #3.10.*
    #3.10
    Code:
    py -3.10 -m venv env
    .\env\Scripts\activate
    cat .\env\pyvenv.cfg
    py -m pip install --upgrade pip
    pip install -r requirements.txt
    pip install windows-curses
    #IT actually shows 3.10
    Code:
    py -V
    py -m pip -V
    py menu.py



    #ERROR | SOLVED = "pip install windows-curses"
    Code:
    Traceback (most recent call last):
      File "C:\Users\user\git\UK-FTA.14.3\ukfta\c4_dl\chan4_loader.py", line 18, in <module>
        import C4
      File "C:\Users\user\git\UK-FTA.14.3\ukfta\c4_dl\C4.py", line 28, in <module>
        import curses
      File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\curses\__init__.py", line 13, in <module>
        from _curses import *
    ModuleNotFoundError: No module named '_curses'




    #My5 #ERROR | NO SOLLUTION YET
    Code:
    (env) PS C:\Users\user\git\UK-FTA.14.3> py menu.py
         __  ____ __    _____________
        / / / / //_/___/ __/_  __/ _ |
       / /_/ / ,< /___/ _/  / / / __ |
       \____/_/|_|   /_/   /_/ /_/ |_|
    
    
    Choose Your Search, Selector and Downloader.
    
    Which Channel?
    module 'time' has no attribute 'clock_gettime'


    An interesting settings when creating VENV


    Code:
    cat .\env\pyvenv.cfg
    #3.12 has this settings:
    Code:
    home = C:\Users\user\AppData\Local\Programs\Python\Python312
    include-system-site-packages = false
    version = 3.12.3
    executable = C:\Users\user\AppData\Local\Programs\Python\Python312\python.exe
    command = C:\Users\user\AppData\Local\Programs\Python\Python312\python.exe -m venv C:\Users\user\git\UK-FTA.14.3\env

    While 3.10 only has this settings:
    Code:
    home = C:\Users\user\AppData\Local\Programs\Python\Python310
    include-system-site-packages = false
    version = 3.10.11
    If I was in politics I make sure you drink plenty of beer
    and watch plenty of TV to keep you busy. | Data is the new oil.
    Quote Quote  
  16. Originally Posted by A_n_g_e_l_a View Post
    Runs on my system but apparently is now deprecated.
    So.. find autohmac.py in UK-FTA/ukfta/my5_dl/keys and change

    line 19

    time_stamp = blah-blah to

    Code:
    time_stamp = int(time.time_ns() // 1_000_000_000)




    Code:
    nano +19 .\ukfta\my5_dl\keys\autohmac.py
    Code:
    (env) PS C:\Users\user\git\UK-FTA.14.3> py menu.py
    Traceback (most recent call last):
      File "C:\Users\user\git\UK-FTA.14.3\menu.py", line 6, in <module>
        from ukfta.my5_dl.keys.autohmac import Sethmackey as S
      File "C:\Users\user\git\UK-FTA.14.3\ukfta\my5_dl\keys\autohmac.py", line 20
        time_stamp = int(time.time_ns() // 1_000_000_000)
    TabError: inconsistent use of tabs and spaces in indentation


    Code:
    (env) PS C:\Users\user\git\UK-FTA.14.3> cat .\ukfta\my5_dl\keys\autohmac.py
    # A_n_g_e_l_a
    
    import time
    from httpx import Client
    import requests
    import time
    import json
    client = Client()
    
    class Sethmackey:
        def __init__(self):
            file = r'ukfta/my5_dl/config.py'
            # Thanks stabbedbybrick for hosting this
            res = requests.get(f"https://gist.githubusercontent.com/stabbedbybrick/8726c719721eac50a28f7bc3c94f18e9/raw/s.txt")
            res = json.loads(res.text)
    
            hmac = f'''HMAC_SECRET = "{res['hmac']}"'''
            aes = f'''AES_KEY = "{res['key']}"'''
            #time_stamp = int(time.clock_gettime(0))
            time_stamp = int(time.time_ns() // 1_000_000_000)
            # replacements to make
            text1 = f'{hmac}\n'
            text2 = f'{aes}\n'
            text3 = f"{time_stamp}\n"
    
    
            # replace_line(<path to your file> , <line number to change> < text to insert>)
            # line numbers in text count from 0
            self.replace_line(file, 1 , text1)
            self.replace_line(file, 2 , text2)
            self.replace_line(file, 3 , text3)
            return
    
        def replace_line(self,file_name, line_num, text):
            lines = open(file_name, 'r').readlines()
            lines[line_num] = text
            out = open(file_name, 'w')
            out.writelines(lines)
            out.close()
            return
    
    if __name__ == '__main__':
        Sethmackey()
    If I was in politics I make sure you drink plenty of beer
    and watch plenty of TV to keep you busy. | Data is the new oil.
    Quote Quote  
  17. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    I will release the update tomorrow if you are having indentation issues. It looks to be in autohymac.py. I use tabs to indent and you may have used spaces. Python does not like mixing tabs and spaces and without a good python editor the error is hard to spot..
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  18. Originally Posted by A_n_g_e_l_a View Post

    I will release the update tomorrow if you are having indentation issues.

    It looks to be in autohymac.py.

    I use tabs to indent and you may have used spaces.

    Python does not like mixing tabs and spaces and without a good python editor the error is hard to spot..

    Thank you very much in advance, great project ...


    Coincidentally I was just thinking about that ...


    ..Image
    [Attachment 79249 - Click to enlarge]


    As you can see I have used TAB to show you there is no spaces ...

    Here if I press "DELETE" key once twice ..

    Image
    [Attachment 79250 - Click to enlarge]



    Here is VSCode:

    Code:
    code .\ukfta\my5_dl\keys\autohmac.py
    Image
    [Attachment 79252 - Click to enlarge]
    Last edited by pssh; 18th May 2024 at 14:18. Reason: Added CODE version screenshot as well
    If I was in politics I make sure you drink plenty of beer
    and watch plenty of TV to keep you busy. | Data is the new oil.
    Quote Quote  
  19. Member
    Join Date
    May 2024
    Location
    Australia
    Search Comp PM
    Looks like a minor bug in the C4.py script.

    Trying to download an IT Crowd Episode. S01E01 Yesterday's Jam
    There is a ' in the episode name that isn't being cleaned properly.
    The files all download and decrypt correctly, but don't MUX.
    Spits out a " Could not find color or style 'Yesterday' " error.
    Quote Quote  
  20. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by davebee View Post
    Looks like a minor bug in the C4.py script.

    Trying to download an IT Crowd Episode. S01E01 Yesterday's Jam
    There is a ' in the episode name that isn't being cleaned properly.
    The files all download and decrypt correctly, but don't MUX.
    Spits out a " Could not find color or style 'Yesterday' " error.
    Thanks for the report. I've seen that on another channel; the module Rich can determine which colour to print by parsing colour-names encased in [] . When it sees something like [ak47] it throws a wobbly. I'll release a fix later today hopefully.

    EDIT: When I ran it just to check it all parsed OK on my system and the title looked like this 'The_IT_Crowd_[Yesterday]_S01E01.mkv' But I'll fix it, no problem.
    Last edited by A_n_g_e_l_a; 19th May 2024 at 03:23.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  21. Member
    Join Date
    May 2024
    Location
    Australia
    Search Comp PM
    EDIT: When I ran it just to check it all parsed OK on my system and the title looked like this 'The_IT_Crowd_[Yesterday]_S01E01.mkv' But I'll fix it, no problem.
    .

    I just realised I was running Python 3.9.
    Updated to 3.12 and the bug was gone, but then reappeared on the next episode.
    Last edited by davebee; 19th May 2024 at 04:50.
    Quote Quote  
  22. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by davebee View Post
    EDIT: When I ran it just to check it all parsed OK on my system and the title looked like this 'The_IT_Crowd_[Yesterday]_S01E01.mkv' But I'll fix it, no problem.
    .

    I just realised I was running Python 3.9.
    Updated to 3.12 and the bug was gone, but then reappeared on the next episode.
    I have episode 2 parsing OK as well now so hopefully fixed.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  23. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by pssh View Post

    I have tried 3.12.x and all works (also had to install windows-curses package)
    System does not need that; unfortunately I left in some old import statement from testing an idea.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  24. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  25. @A_n_g_e_l_a thank you, a quick check and it seems to be working perfectly on my Windows 11 box, same on my Ubuntu box.
    Thanks for all your work on this.
    Last edited by Akirainblack; 19th May 2024 at 09:34.
    Quote Quote  
  26. Member
    Join Date
    Aug 2023
    Location
    Southend On Sea Essex
    Search Comp PM
    I know this might be a stupid question but will this code be able to be created into a GUI similar to freevine for the amateur users who still getting their heads around python coding.
    Last edited by Danker1990; 19th May 2024 at 12:26.
    Quote Quote  
  27. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by Danker1990 View Post
    I know this might be a stupid question but will this code be able to be created into a GUI similar to freevine for the amateur users who still getting their heads around python coding.
    We are all amateur users, but no, it cannot be easily adapted.

    I'm a little non-plussed you should want to? And Devine (freevine parent) isn't a GUI - it takes command line arguments.
    One style requires you to remember the strings for the command-line arguments - different for each channel before it will successfully download.

    The other, UK-FTA, is already a text-based GUI with which it is possible to download without entering any text from the keyboard at all. It follows a menu system and allows a point and click approach to finding what you want from selecting screened alternates. You do not need to remember any arguments; the only text you need to type is a search term 'Coronation Street' - maybe. And if you wish you can paste a page url from the channel to display everything in the series for that url.

    Can you help me understand the user-base by describing the advantage that you see in the Devine approach?
    Last edited by A_n_g_e_l_a; 19th May 2024 at 13:29.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  28. Originally Posted by A_n_g_e_l_a View Post
    Can you help me understand the user-base by describing the advantage that you see in the Devine approach?
    Sure,

    I have been using Click, Click, Click, Click method on Windows for XX years and like many other people
    don't like change
    .

    So instead of using my brain I like to Click, Click, Click, Click instead of thinking about what it does
    and how to get it working, because with GUI I hope I would not need to use the CLI and read
    the 9 pages this thread has and/or learn how to install Python and other Requirements/Dependencies
    even that it has been covered in the Video Stream Downloading section numerous times ....
    If I was in politics I make sure you drink plenty of beer
    and watch plenty of TV to keep you busy. | Data is the new oil.
    Quote Quote  
  29. Member
    Join Date
    Oct 2023
    Location
    Afghanistan
    Search PM
    I get where people are coming from asking for a GUI having developed the FreevineGUI to go with stabby's excellent code. I wanted something simple to click a few buttons to download what I wanted BUT and this is a big but, I spent several weeks understanding the ins and outs of how all this stuff worked before I built my GUI, so I understood mostly exactly what was going on.

    Now Angela's excellent code gave me the understanding of how the simple sites, especially using boltdns framework work, and I've since built my own GUI that utilizes all the underlying code to again make it simple for me to use. But I'm really reluctant to release it into the wild for others as I'm torn in that they should also make that learning journey like many of us have done

    Image
    [Attachment 79275 - Click to enlarge]
    Quote Quote  
  30. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by billybanana View Post
    But I'm really reluctant to release it into the wild for others as I'm torn in that they should also make that learning journey like many of us have done.
    Well the code I put up in the 'Doom' series two years ago has borne fruit with you. And very well done. And thanks for the feedback

    But you are a minority; most users here appear reluctant to learn to code. Or even reluctant to follow instructions to download helper programs to get a complex suite of scripts to function. But that is fine; I think there should be a barrier to entry. Even though the barrier is erected by the user sabotaging themselves, assuming the task will be too difficult for them.

    It is horrible indictment of the Education Systems across the World that people finish their education with a 'cannot do that / wont even try' mind set.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!