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 38 of 54
FirstFirst ... 28 36 37 38 39 40 48 ... LastLast
Results 1,111 to 1,140 of 1612
  1. Is there a way just to select one (.vtt) subtitle track from rte? all 3 are the same, just different formats, and vtt seems to include the color brackets.
    Quote Quote  
  2. Originally Posted by pauli3 View Post
    Is there a way just to select one (.vtt) subtitle track from rte? all 3 are the same, just different formats, and vtt seems to include the color brackets.
    You select subtitles like you would with video and audio:

    Code:
    -ss id=textstream=1000
    
    OR
    
    -ss codecs=wvtt
    Quote Quote  
  3. Member
    Join Date
    Dec 2021
    Location
    Scotland
    Search Comp PM
    Originally Posted by stabbedbybrick View Post
    Originally Posted by deccavox View Post
    I am having problems with RTE. Using Fair City Thurs 7 March as an example:
    py freevine.py get -e https://www.rte.ie/player/series/fair-city/SI0000000564?epguid=IH10002398-24-0012

    I get this error:

    Code:
    11:22:45.140 INFO : Decrypting...
    11:22:54.214 ERROR: Could not find color or style '1080p'.
    This results in the streams (audio, video) not being muxed in the Downloads folder and the 'temp' folder remaining. Obviously I can delete that folder and mux using ffmpeg, but clearly there's an issue. The video stream is 1080p.

    I have my config.yaml set to mux to mp4, muxer: ffmpeg and to not mux the subs. Interestingly, Sun 3 March episode is OK (https://www.rte.ie/player/series/fair-city/SI0000000564?epguid=IH10002398-24-0010) but that episode has no subs.
    That error is from N_m3u8DL-RE and would indicate a problem with displaying colors in your terminal. I don't know why it would complain about "1080p" since there are no colors associated with that, and why it throws an error when decrypting. I've tested the episode with all possible configurations and it works as expected, and I can't reproduce the error no matter what I try.

    What terminal are you using? If you're on Windows, I'd highly recommend using the Windows Terminal and not the old cmd.exe.
    I have tried using the Windows terminal (powershell). Still the same error.

    But, I've found the reason for it. It seems to be to do with filenames.
    In the config.yaml, I use
    filename:
    series: "{title} S{season}E{episode} {name} [{resolution}]"
    movies: "{title} ({year}) [{resolution}]"

    That has worked with every UK channel so far.

    You use:
    filename:
    series: "{title}.S{season}E{episode}.{name}.{resolution}.{ service}.WEB-DL.{audio}.H.264"
    movies: "{title}.{year}.{resolution}.{service}.WEB-DL.{audio}.H.264"

    There's actually not that much difference between the two except you have dot separators and extra stuff added. I tried yours. It worked fine. I tried mine, replacing the space separators with dots. Still the same 'color' error. After a few experiments, it's the square brackets [] it doesn't like that I have around the resolution. If I use parentheses (), it's OK. So, for some reason [] works fine with all other channels apart from RTE.

    Is there any obvious explanation? Could you possibly adjust the code to accept square brackets?
    Quote Quote  
  4. Nice work figuring out the culprit. I still have no idea what the reason is and why you have this error when I don't:
    Code:
    15:30:57.485 INFO : Decrypting...
    15:31:12.408 WARN : Fair City E12 [1080p].mp4
    15:31:12.408 WARN : Fair City E12 [1080p].m4a
    15:31:12.409 WARN : Fair City E12 [1080p].copy.srt
    15:31:12.409 WARN : Fair City E12 [1080p].en.srt
    15:31:12.410 WARN : Fair City E12 [1080p].srt
    15:31:12.410 WARN : Muxing to Fair City E12 [1080p].MUX.mkv
    15:31:20.331 WARN : Cleaning files...
    15:31:20.504 WARN : Rename to Fair City E12 [1080p].mkv
    15:31:20.505 INFO : Done
    I'll look into it, but it's really difficult finding an error I can't reproduce.
    Quote Quote  
  5. Member
    Join Date
    Dec 2023
    Location
    Spain
    Search Comp PM
    Can mp4decrypt be ran on a Pi3? I'm using the 'Lite' Debian 64bit OS

    Code:
    19:54:58.614 ERROR: An error occurred trying to start process '/media/freevine/mp4decrypt' with working directory '/media/freevine'. Exec format error
    Last edited by mkjustuk; 11th Mar 2024 at 12:56. Reason: mp4decrypt
    Quote Quote  
  6. Member
    Join Date
    Dec 2021
    Location
    Scotland
    Search Comp PM
    Originally Posted by stabbedbybrick View Post
    Nice work figuring out the culprit. I still have no idea what the reason is and why you have this error when I don't:
    Code:
    15:30:57.485 INFO : Decrypting...
    15:31:12.408 WARN : Fair City E12 [1080p].mp4
    15:31:12.408 WARN : Fair City E12 [1080p].m4a
    15:31:12.409 WARN : Fair City E12 [1080p].copy.srt
    15:31:12.409 WARN : Fair City E12 [1080p].en.srt
    15:31:12.410 WARN : Fair City E12 [1080p].srt
    15:31:12.410 WARN : Muxing to Fair City E12 [1080p].MUX.mkv
    15:31:20.331 WARN : Cleaning files...
    15:31:20.504 WARN : Rename to Fair City E12 [1080p].mkv
    15:31:20.505 INFO : Done
    I'll look into it, but it's really difficult finding an error I can't reproduce.
    It's all very strange if you cannot reproduce it. My mkvmerge.exe was a little out of date, but updating that did nothing. I've even used your exact config.yaml except for square brackets around your {resolution}, still the same.

    On another note. I normally have my config.yaml setup so that it defaults to, for subs, no_mux: "true".

    Is it possible to have an extra option for the command line to reverse this, eg: --sub-mux. You seem to have all the other options covered at command line level apart from this one.
    Quote Quote  
  7. I have an issue with cbs from a proxy


    Code:
    13:07:19.425 INFO : CBS
    13:07:19.427 INFO : + Adding service profile
    13:07:19.630 INFO : + Adding Hola proxy location: US
    Traceback (most recent call last):
      File "C:\Users\psxma\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py", line 712, in urlopen
        self._prepare_proxy(conn)
      File "C:\Users\psxma\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py", line 1012, in _prepare_proxy
        conn.connect()
      File "C:\Users\psxma\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connection.py", line 419, in connect
        self.sock = ssl_wrap_socket(
                    ^^^^^^^^^^^^^^^^
      File "C:\Users\psxma\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\util\ssl_.py", line 449, in ssl_wrap_socket
        ssl_sock = _ssl_wrap_socket_impl(
                   ^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\psxma\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\util\ssl_.py", line 493, in _ssl_wrap_socket_impl
        return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\psxma\AppData\Local\Programs\Python\Python312\Lib\ssl.py", line 455, in wrap_socket
        return self.sslsocket_class._create(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\psxma\AppData\Local\Programs\Python\Python312\Lib\ssl.py", line 1046, in _create
        self.do_handshake()
      File "C:\Users\psxma\AppData\Local\Programs\Python\Python312\Lib\ssl.py", line 1321, in do_handshake
        self._sslobj.do_handshake()
    ssl.SSLEOFError: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1000)
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\Users\psxma\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\adapters.py", line 486, in send
        resp = conn.urlopen(
               ^^^^^^^^^^^^^
      File "C:\Users\psxma\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py", line 799, in urlopen
        retries = retries.increment(
                  ^^^^^^^^^^^^^^^^^^
      File "C:\Users\psxma\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\util\retry.py", line 592, in increment
        raise MaxRetryError(_pool, url, error or ResponseError(cause))
    urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.cbs.com', port=443): Max retries exceeded with url: /shows/video/5o3H2I9ypVZsb8fwIEWoDlTsftOKTWpN/ (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1000)')))
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\freevine\freevine.py", line 15, in <module>
        cli()
      File "C:\Users\psxma\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1157, in __call__
        return self.main(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\psxma\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1078, in main
        rv = self.invoke(ctx)
             ^^^^^^^^^^^^^^^^
      File "C:\Users\psxma\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1688, in invoke
        return _process_result(sub_ctx.command.invoke(sub_ctx))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\psxma\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1434, in invoke
        return ctx.invoke(self.callback, **ctx.params)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\psxma\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 783, in invoke
        return __callback(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\freevine\utils\commands.py", line 90, in get
        Service(config, **kwargs)
      File "C:\freevine\services\cbs\cbs.py", line 51, in __init__
        self.get_options()
      File "C:\freevine\services\cbs\cbs.py", line 216, in get_options
        downloads, title = get_downloads(self)
                           ^^^^^^^^^^^^^^^^^^^
      File "C:\freevine\utils\options.py", line 160, in get_downloads
        downloads, title = stream.get_episode_from_url(stream.episode)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\freevine\services\cbs\cbs.py", line 181, in get_episode_from_url
        r = self.client.get(url)
            ^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\psxma\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\sessions.py", line 602, in get
        return self.request("GET", url, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\psxma\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\sessions.py", line 589, in request
        resp = self.send(prep, **send_kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\psxma\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\sessions.py", line 703, in send
        r = adapter.send(request, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\psxma\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\adapters.py", line 517, in send
        raise SSLError(e, request=request)
    requests.exceptions.SSLError: HTTPSConnectionPool(host='www.cbs.com', port=443): Max retries exceeded with url: /shows/video/5o3H2I9ypVZsb8fwIEWoDlTsftOKTWpN/ (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1000)')))
    Press any key to continue . . .

    Video url https://www.cbs.com/shows/video/5o3H2I9ypVZsb8fwIEWoDlTsftOKTWpN/

    Same error with ep with VPN
    Last edited by PSXman_uk; 12th Mar 2024 at 07:14.
    Quote Quote  
  8. Originally Posted by deccavox View Post

    On another note. I normally have my config.yaml setup so that it defaults to, for subs, no_mux: "true".

    Is it possible to have an extra option for the command line to reverse this, eg: --sub-mux. You seem to have all the other options covered at command line level apart from this one.
    Muxing everything is default behavior so there's no need to have it as an option. Setting the subtitle no_mux option to false in config and then using --sub-no-mux when needed seems like a better solution.

    Originally Posted by PSXman_uk
    I have an issue with cbs from a proxy
    If a proxy and/or VPN doesn't work, that's up to the providers and not much I can do about it.
    Quote Quote  
  9. Originally Posted by stabbedbybrick View Post
    Originally Posted by deccavox View Post

    On another note. I normally have my config.yaml setup so that it defaults to, for subs, no_mux: "true".

    Is it possible to have an extra option for the command line to reverse this, eg: --sub-mux. You seem to have all the other options covered at command line level apart from this one.
    Muxing everything is default behavior so there's no need to have it as an option. Setting the subtitle no_mux option to false in config and then using --sub-no-mux when needed seems like a better solution.

    Originally Posted by PSXman_uk
    I have an issue with cbs from a proxy
    If a proxy and/or VPN doesn't work, that's up to the providers and not much I can do about it.

    its only that url after further testing all the other normal ones seem to work fine not a big deal just errors.

    Code:
    https://vod-gcs-cedexis.cbsaavideo.com/intl_vms/2024/02/29/2313106499803/2613062_cenc_dash/stream.mpd
    
    Key=20248ba2e9c14135a4149d476a063566:63cdad75ee901ab1e51403ec99b15ebe
    Got it manually.

    Weird one that
    Last edited by PSXman_uk; 12th Mar 2024 at 14:34.
    Quote Quote  
  10. Member
    Join Date
    Dec 2021
    Location
    Scotland
    Search Comp PM
    Originally Posted by stabbedbybrick View Post
    Originally Posted by deccavox View Post

    On another note. I normally have my config.yaml setup so that it defaults to, for subs, no_mux: "true".

    Is it possible to have an extra option for the command line to reverse this, eg: --sub-mux. You seem to have all the other options covered at command line level apart from this one.
    Muxing everything is default behavior so there's no need to have it as an option. Setting the subtitle no_mux option to false in config and then using --sub-no-mux when needed seems like a better solution.

    If a proxy and/or VPN doesn't work, that's up to the providers and not much I can do about it.
    Yes I know. But it's a pain to have to type out '--sub-no-mux' for the majority of my downloads. But, never mind. Just a suggestion.
    Quote Quote  
  11. Member
    Join Date
    Oct 2023
    Location
    Afghanistan
    Search PM
    @stabbedbybrick are you going to add search capability for RTE and CBS ?
    Quote Quote  
  12. Originally Posted by billybanana View Post
    @stabbedbybrick are you going to add search capability for RTE and CBS ?
    They've both been added in the latest commit.
    Quote Quote  
  13. Member
    Join Date
    Oct 2023
    Location
    Afghanistan
    Search PM
    Thanks stabby.
    Quote Quote  
  14. Member
    Join Date
    Dec 2021
    Location
    Scotland
    Search Comp PM
    Originally Posted by stabbedbybrick View Post
    Nice work figuring out the culprit. I still have no idea what the reason is and why you have this error when I don't:
    Code:
    15:30:57.485 INFO : Decrypting...
    15:31:12.408 WARN : Fair City E12 [1080p].mp4
    15:31:12.408 WARN : Fair City E12 [1080p].m4a
    15:31:12.409 WARN : Fair City E12 [1080p].copy.srt
    15:31:12.409 WARN : Fair City E12 [1080p].en.srt
    15:31:12.410 WARN : Fair City E12 [1080p].srt
    15:31:12.410 WARN : Muxing to Fair City E12 [1080p].MUX.mkv
    15:31:20.331 WARN : Cleaning files...
    15:31:20.504 WARN : Rename to Fair City E12 [1080p].mkv
    15:31:20.505 INFO : Done
    I'll look into it, but it's really difficult finding an error I can't reproduce.
    Back to the square bracket issue in the final filename.

    After further investation I've found if we download multiple streams of the same thing, whether that 'thing' be audio or subs, I get that 'color' error. For instance, with RTE, it automatically downloads multiple subs streams. That causes the problem. Just selecting one stream in the CL solves the problem (more on that later).

    It's not just subs. Take Channel 4, Screw S01E01 which has two audio streams: 'audio=128000' and 'audio_eng=128000'. Normally we have the config set to download the 'best' one only, so we don't see any problem. But try downloading both of them by setting audio options in config to "for=best2":
    Code:
    py freevine.py get --no-cache -e https://www.channel4.com/programmes/screw/on-demand/68619-001
    We get the same 'color' error and the streams don't do the final mux.

    With regard to RTE and which subs stream to select.
    There's a suggestion above to use the '-ss id=textstream=1000' subs stream.
    However,
    Code:
    py freevine.py get --no-cache -ss id=textstream=1000 -e https://www.rte.ie/player/series/fair-city/SI0000000564?epguid=IH10002398-24-0013
    does not remove all the formatting. Look at the video at 00:00:36, we get shown: '<c>Mairead gave out to me. </c></c><c>What? </c><c> </c>'. There's no colours though. Its filesize is 47K.

    using '-ss id=textstream_eng=1000':
    Code:
    py freevine.py get --no-cache -ss id=textstream_eng=1000 -e https://www.rte.ie/player/series/fair-city/SI0000000564?epguid=IH10002398-24-0013
    Much better. Its filesize is 34K with no formatting codes.
    Quote Quote  
  15. Originally Posted by deccavox View Post
    It's not just subs. Take Channel 4, Screw S01E01 which has two audio streams: 'audio=128000' and 'audio_eng=128000'. Normally we have the config set to download the 'best' one only, so we don't see any problem. But try downloading both of them by setting audio options in config to "for=best2":
    Code:
    py freevine.py get --no-cache -e https://www.channel4.com/programmes/screw/on-demand/68619-001
    We get the same 'color' error and the streams don't do the final mux.
    I'm sorry, but I have absolutely no clue why you're getting this error. What if you download the streams the old-fashioned way by manually feeding N_m3u8DL-RE the .mpd and use the same naming format, do you get the same error?
    Quote Quote  
  16. Member
    Join Date
    Dec 2021
    Location
    Scotland
    Search Comp PM
    Originally Posted by stabbedbybrick View Post
    Originally Posted by deccavox View Post
    It's not just subs. Take Channel 4, Screw S01E01 which has two audio streams: 'audio=128000' and 'audio_eng=128000'. Normally we have the config set to download the 'best' one only, so we don't see any problem. But try downloading both of them by setting audio options in config to "for=best2":
    Code:
    py freevine.py get --no-cache -e https://www.channel4.com/programmes/screw/on-demand/68619-001
    We get the same 'color' error and the streams don't do the final mux.
    I'm sorry, but I have absolutely no clue why you're getting this error. What if you download the streams the old-fashioned way by manually feeding N_m3u8DL-RE the .mpd and use the same naming format, do you get the same error?
    Yes, it yields the same error:
    Code:
    N_m3u8DL-RE -M format=mp4 --auto-select --auto-subtitle-fix --thread-count 16 --del-after-done --save-dir ./Finished --tmp-dir ./ -mt --key 9dfcf0625c1091550a83b17ac8f75505:5dda52c3a681dbc74193502815a9b1d8 "https://vod.rte.ie/rte/vod-d/RTE_Prod_-_Prod/65/1016/IH10002398-24-0013/M3814629-1709830184232.ism/.mpd?filter=systemBitrate%3C%3D7000000&hls_fmp4=true&available=1710104400&expiry=1712692800&ip=82.46.151.107&token1=b0f7a7b5f9ee5e5f4690c843b9aa6e6ee210c3ee8bc5f2f1a99a8ee70412cef9" --save-name "Fair City [1080p]"
    An end filename of "Fair City (1080p)" is OK though.

    So, conclusion: if you download multiple streams of subs or multiple streams of audio, and having square brackets in the end filename, N_m3u8DL-RE does not like it and will not mux. Certainly on a Windows system, anyway.
    I guess I'll stick with parenthesis () lol.
    Quote Quote  
  17. Originally Posted by deccavox View Post

    So, conclusion: if you download multiple streams of subs or multiple streams of audio, and having square brackets in the end filename, N_m3u8DL-RE does not like it and will not mux. Certainly on a Windows system, anyway.
    I guess I'll stick with parenthesis () lol.
    I've tried on both Windows and Linux and have no problems with any of this. The error seem specific to your setup and N_m3u8DL-RE. You could open an issue on their github and see if they can bring some clarity.

    Either way, this is outside the scope of Freevine and unfortunately not something I can fix for you.
    Quote Quote  
  18. Originally Posted by deccavox View Post
    Originally Posted by stabbedbybrick View Post
    Nice work figuring out the culprit. I still have no idea what the reason is and why you have this error when I don't:
    Code:
    15:30:57.485 INFO : Decrypting...
    15:31:12.408 WARN : Fair City E12 [1080p].mp4
    15:31:12.408 WARN : Fair City E12 [1080p].m4a
    15:31:12.409 WARN : Fair City E12 [1080p].copy.srt
    15:31:12.409 WARN : Fair City E12 [1080p].en.srt
    15:31:12.410 WARN : Fair City E12 [1080p].srt
    15:31:12.410 WARN : Muxing to Fair City E12 [1080p].MUX.mkv
    15:31:20.331 WARN : Cleaning files...
    15:31:20.504 WARN : Rename to Fair City E12 [1080p].mkv
    15:31:20.505 INFO : Done
    I'll look into it, but it's really difficult finding an error I can't reproduce.
    It's all very strange if you cannot reproduce it. My mkvmerge.exe was a little out of date, but updating that did nothing. I've even used your exact config.yaml except for square brackets around your {resolution}, still the same.

    On another note. I normally have my config.yaml setup so that it defaults to, for subs, no_mux: "true".

    Is it possible to have an extra option for the command line to reverse this, eg: --sub-mux. You seem to have all the other options covered at command line level apart from this one.
    the same happens with me on RTE, i have use the no mux option an mux manually
    Quote Quote  
  19. Member
    Join Date
    Dec 2021
    Location
    Scotland
    Search Comp PM
    I've solved it. I, like many others, was still using the N_m3u8DL-RE release from Jun 28, 2023. I've now downloaded the new pre-release version as described in https://github.com/stabbedbybrick/freevine/releases/tag/v1.1.8

    The square brackets in filename problem no longer exists with that.
    @stabbedbybrick I assume that you are using that version, so could not reproduce the problem.

    Many thanks to AlwaysDistracted for helping me to solve this.

    I will say, it has produced other problems though. Avast AV would not let me download the zip file (possible malware). Even disabling Avast I still couldn't download it. I had to source it from another PC that had downloaded it. I ran both an Avast & Malwarebytes scan on it and they detected no issues. However, using it, again Avast kicks in. I've now added it as an exception in Avast.

    I am assuming it is safe
    Last edited by deccavox; 15th Mar 2024 at 17:58.
    Quote Quote  
  20. Ah, damn. I've been using that build of N_m3u8DL-RE for months, so I totally forgot about it not being standard and didn't think it could be the reason. But glad to hear you figured it out. My best guess for the initial bug is that the brackets are somehow interpreted as markdown, where [ ] are used to display things like styles, links, etc. Which they seemed to have fixed since.

    If you're worried about it being safe, it's pretty easy to build it yourself. Just fork their repository and run their workflow.
    Quote Quote  
  21. Has anyone tried getting an episode of Station Eleven from CBC? I think the URL was https://gem.cbc.ca/station-eleven, but I'm nowhere near my laptop to check.

    Other CBC shows are fine, but this one didn't work when I tried it (but it did play in a browser).
    Quote Quote  
  22. python freevine.py get -e ep https://gem.cbc.ca/station-eleven standard mode doesn't like the url needs the episode number.


    ie S01E01
    Quote Quote  
  23. Thanks, I'll grab the latest from github and try it again. User error

    Edit: I've almost finished watching this in the browser, but I did try the latest from github, (same issue):

    Code:
    py freevine.py get --proxy ca -e s01e08 https://gem.cbc.ca/station-eleven
    
    ❯_freevine v1.1.8
    
     ←[4m←[32mINFO←[0m : ←[1mCBC Gem←[0m
     ←[4m←[32mINFO←[0m : + Adding service profile
     ←[4m←[32mINFO←[0m : + Adding Hola proxy location: CA
     ←[4m←[32mINFO←[0m : Using cached login tokens
     ←[4m←[32mINFO←[0m : + New access tokens placed in cache
    Traceback (most recent call last):
      File "E:\freevine\lib\site-packages\requests\models.py", line 971, in json
        return complexjson.loads(self.text, **kwargs)
      File "C:\Users\b\AppData\Local\Programs\Python\Python310\lib\json\__init__.py", line 346, in loads
        return _default_decoder.decode(s)
      File "C:\Users\b\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 337, in decode
        obj, end = self.raw_decode(s, idx=_w(s, 0).end())
      File "C:\Users\b\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 355, in raw_decode
        raise JSONDecodeError("Expecting value", s, err.value) from None
    json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "E:\freevine\freevine.py", line 15, in <module>
        cli()
      File "E:\freevine\lib\site-packages\click\core.py", line 1157, in __call__
        return self.main(*args, **kwargs)
      File "E:\freevine\lib\site-packages\click\core.py", line 1078, in main
        rv = self.invoke(ctx)
      File "E:\freevine\lib\site-packages\click\core.py", line 1688, in invoke
        return _process_result(sub_ctx.command.invoke(sub_ctx))
      File "E:\freevine\lib\site-packages\click\core.py", line 1434, in invoke
        return ctx.invoke(self.callback, **ctx.params)
      File "E:\freevine\lib\site-packages\click\core.py", line 783, in invoke
        return __callback(*args, **kwargs)
      File "E:\freevine\utils\commands.py", line 90, in get
        Service(config, **kwargs)
      File "E:\freevine\services\cbc\cbc.py", line 61, in __init__
        self.get_options()
      File "E:\freevine\services\cbc\cbc.py", line 425, in get_options
        downloads, title = get_downloads(self)
      File "E:\freevine\utils\options.py", line 163, in get_downloads
        content, title = stream.get_content(stream.url)
      File "E:\freevine\services\cbc\cbc.py", line 406, in get_content
        content = self.get_series(url)
      File "E:\freevine\services\cbc\cbc.py", line 232, in get_series
        data = self.get_data(url)
      File "E:\freevine\services\cbc\cbc.py", line 229, in get_data
        return self.client.get(url).json()
      File "E:\freevine\lib\site-packages\requests\models.py", line 975, in json
        raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
    requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
    Last edited by bamboobali; 17th Mar 2024 at 11:51.
    Quote Quote  
  24. Originally Posted by bamboobali View Post
    Thanks, I'll grab the latest from github and try it again. User error

    Edit: I've almost finished watching this in the browser, but I did try the latest from github, (same issue):

    Code:
    py freevine.py get --proxy ca -e s01e08 https://gem.cbc.ca/station-eleven
    
    ❯_freevine v1.1.8
    
     ←[4m←[32mINFO←[0m : ←[1mCBC Gem←[0m
     ←[4m←[32mINFO←[0m : + Adding service profile
     ←[4m←[32mINFO←[0m : + Adding Hola proxy location: CA
     ←[4m←[32mINFO←[0m : Using cached login tokens
     ←[4m←[32mINFO←[0m : + New access tokens placed in cache
    Traceback (most recent call last):
    it looks like your current issue is with your cached tokens, try deleting them from the cbc profile.yaml file and then try again.

    but the problem for station-eleven seems to be that 1080p is not available so it errors out on the try/except on line 333 of cbc.py when the request to the smooth url fails with an error code 400. this might be something for stabby to look at.

    Code:
    >py freevine.py get -e s01e07 https://gem.cbc.ca/station-eleven
    
    ❯_freevine v1.1.8
    
    12:45:42.518 ←[4m←[32mINFO←[0m : ←[1mCBC Gem←[0m
    12:45:42.519 ←[4m←[32mINFO←[0m : + Adding service profile
    12:45:42.526 ←[4m←[32mINFO←[0m : Cache is empty, aquiring new login tokens...
    12:45:43.850 ←[4m←[32mINFO←[0m : + New login tokens placed in cache
    12:45:48.016 ←[4m←[32mINFO←[0m : + New access tokens placed in cache
    12:45:50.043 ←[4m←[32mINFO←[0m : Station Eleven: 1 Season(s), 10 Episode(s)
    
    Traceback (most recent call last):
      File "C:\freevine\freevine.py", line 15, in <module>
        cli()
      File "C:\freevine\venv\lib\site-packages\click\core.py", line 1157, in __call__
        return self.main(*args, **kwargs)
      File "C:\freevine\venv\lib\site-packages\click\core.py", line 1078, in main
        rv = self.invoke(ctx)
      File "C:\freevine\venv\lib\site-packages\click\core.py", line 1688, in invoke
        return _process_result(sub_ctx.command.invoke(sub_ctx))
      File "C:\freevine\venv\lib\site-packages\click\core.py", line 1434, in invoke
        return ctx.invoke(self.callback, **ctx.params)
      File "C:\freevine\venv\lib\site-packages\click\core.py", line 783, in invoke
        return __callback(*args, **kwargs)
      File "C:\freevine\utils\commands.py", line 90, in get
        Service(config, **kwargs)
      File "C:\freevine\services\cbc\cbc.py", line 61, in __init__
        self.get_options()
      File "C:\freevine\services\cbc\cbc.py", line 437, in get_options
        self.download(download, title)
      File "C:\freevine\services\cbc\cbc.py", line 440, in download
        mpd_url, m3u8, audio = self.get_playlist(stream.data)
      File "C:\freevine\services\cbc\cbc.py", line 396, in get_playlist
        return self.get_hls(response.get("url"))
      File "C:\freevine\services\cbc\cbc.py", line 335, in get_hls
        r.raise_for_status()
      File "C:\freevine\venv\lib\site-packages\requests\models.py", line 1021, in raise_for_status
        raise HTTPError(http_error_msg, response=self)
    requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://cbcrcott-drm-gem.akamaized.net/85b62b72-cd6d-4787-b4c8-badb95368b22/CBC_STATIONELEVEN_S01E07.ism/manifest(filter=QualityLevels(5999999)/Manifest(video,type=keyframes)
    Quote Quote  
  25. Originally Posted by bamboobali View Post
    Thanks, I'll grab the latest from github and try it again. User error

    Edit: I've almost finished watching this in the browser, but I did try the latest from github, (same issue):

    Code:
    py freevine.py get --proxy ca -e s01e08 https://gem.cbc.ca/station-eleven
    There's something off with this show. Can you really play this in browser? Every browser I try returns a media error and a 403 response code. And when looking at the response in the code, it returns an .mpd without hmac, when it should return a .m3u8 with an hmac, so it fails to read the original manifest even in browser.

    All other shows are working as expected, so they've messed something up with this one. If you really can play this show, I'm thoroughly puzzled.
    Quote Quote  
  26. Yes, it plays in the browser, but not easily. It's the only time I've ever needed to use hola, and that only worked with -proxy-type lum.

    When it plays in the browser you can see that widevine is used (I didn't think other shows on CBC used widevine).

    I tried uncommenting the 'proxy-type' and 'lum' lines in your script, that might have been when I saw the 400 error. Putting the manifest into yt-dlp shows that it is only 720p as ElCap said.
    Quote Quote  
  27. Okay, after some testing it turns out that this particular show is indeed encrypted and have a much more aggressive geo block. I don't know if it's just a one-off or if it's a sign of things to come, but it's at least confirmed for Station Eleven. Handling the encryption is no problem, but adding this new variant to an already pretty rough codebase is... not fun.

    I think I'm going to hold back a bit and see if they keep adding more DRM content before I start rewriting a bunch of stuff. This is so far the only title I've seen on CBC that is encrypted.
    Quote Quote  
  28. Member
    Join Date
    Mar 2006
    Location
    United States
    Search Comp PM
    Originally Posted by stabbedbybrick View Post
    Okay, after some testing it turns out that this particular show is indeed encrypted and have a much more aggressive geo block. I don't know if it's just a one-off or if it's a sign of things to come, but it's at least confirmed for Station Eleven. Handling the encryption is no problem, but adding this new variant to an already pretty rough codebase is... not fun.

    I think I'm going to hold back a bit and see if they keep adding more DRM content before I start rewriting a bunch of stuff. This is so far the only title I've seen on CBC that is encrypted.
    I ran into the same issue with 2 other shows on cbc gem:
    HTML Code:
    https://gem.cbc.ca/wild-cards
    HTML Code:
    https://gem.cbc.ca/allegiance
    Both of which just serve up unencrypted desktop_master.m3u8.... In Developer Tools-Network Tab

    Easy enough to download with N_m3u8DL-RE. So if you can work y our magic and add back to freevine, that would be great! Only getting 720p versions, which is all I normally had downloaded for space reasons. I think freevine had picked up 1080p if I am not mistaken.
    Quote Quote  
  29. @ehurdler:

    I'm not sure what you mean? Neither of those shows use DRM and they work fine in the current version of the script.
    Quote Quote  
  30. Member
    Join Date
    Mar 2006
    Location
    United States
    Search Comp PM
    Originally Posted by stabbedbybrick View Post
    @ehurdler:

    I'm not sure what you mean? Neither of those shows use DRM and they work fine in the current version of the script.
    hmmmm, you are right, I guess NOT the same. My bad.

    I get the following, even after I clear-cache.
    Code:
    (venv) C:\freevine>python freevine.py clear-cache
    
    ❯_freevine v1.1.8
    
    13:11:06.474 ←[4m←[32mINFO←[0m : Download cache has been cleared!
    
    (venv) C:\freevine>python freevine.py get --season S01E06 https://gem.cbc.ca/allegiance
    
    ❯_freevine v1.1.8
    
    13:11:10.374 ←[4m←[32mINFO←[0m : ←[1mCBC Gem←[0m
    13:11:10.375 ←[4m←[32mINFO←[0m : + Adding service config
    13:11:10.383 ←[4m←[32mINFO←[0m : + Adding service profile
    13:11:10.407 ←[4m←[32mINFO←[0m : Refreshing expired login tokens...
    Traceback (most recent call last):
      File "C:\freevine\freevine.py", line 15, in <module>
        cli()
      File "C:\freevine\venv\Lib\site-packages\click\core.py", line 1157, in __call__
        return self.main(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\freevine\venv\Lib\site-packages\click\core.py", line 1078, in main
        rv = self.invoke(ctx)
             ^^^^^^^^^^^^^^^^
      File "C:\freevine\venv\Lib\site-packages\click\core.py", line 1688, in invoke
        return _process_result(sub_ctx.command.invoke(sub_ctx))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\freevine\venv\Lib\site-packages\click\core.py", line 1434, in invoke
        return ctx.invoke(self.callback, **ctx.params)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\freevine\venv\Lib\site-packages\click\core.py", line 783, in invoke
        return __callback(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\freevine\utils\commands.py", line 90, in get
        Service(config, **kwargs)
      File "C:\freevine\services\cbc\cbc.py", line 61, in __init__
        self.get_options()
      File "C:\freevine\services\cbc\cbc.py", line 425, in get_options
        downloads, title = get_downloads(self)
                           ^^^^^^^^^^^^^^^^^^^
      File "C:\freevine\utils\options.py", line 163, in get_downloads
        content, title = stream.get_content(stream.url)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\freevine\services\cbc\cbc.py", line 406, in get_content
        content = self.get_series(url)
                  ^^^^^^^^^^^^^^^^^^^^
      File "C:\freevine\services\cbc\cbc.py", line 232, in get_series
        data = self.get_data(url)
               ^^^^^^^^^^^^^^^^^^
      File "C:\freevine\services\cbc\cbc.py", line 224, in get_data
        access_token = self.authenticate()
                       ^^^^^^^^^^^^^^^^^^^
      File "C:\freevine\services\cbc\cbc.py", line 204, in authenticate
        auth_token = self.refresh_auth_token(cache["login"]["refresh"])
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\freevine\services\cbc\cbc.py", line 176, in refresh_auth_token
        access_token = auth.get("access_token")
                       ^^^^^^^^
    AttributeError: 'Response' object has no attribute 'get'
    Actually I just removed the profile.yaml and recreated profile. This did work now. Sorry for he trouble. I should have tried that first. When I opened up profile.yaml I noticed that it had expired still, even after refresh.
    Last edited by ehurdler; 19th Mar 2024 at 13:14. Reason: Fixed it, or Understood and fixed it! :-)
    Quote Quote  



Similar Threads

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