VideoHelp Forum




+ Reply to Thread
Page 2 of 2
FirstFirst 1 2
Results 31 to 53 of 53
  1. Member
    Join Date
    Dec 2021
    Location
    Scotland
    Search Comp PM
    Code:
    py freevine.py --episode S01E01 "https://www.itv.com/watch/a-mothers-son/1a9851"
    
    18:15:20.737 INFO : Freevine v0.0.6 (080923)
    
    18:15:21.263 INFO : ITV
    18:15:21.441 INFO : A Mother's Son: 1 Season(s), 2 Episode(s)
    
    Traceback (most recent call last):
      File "D:\widevine_keys\freevine-main\freevine.py", line 38, in <module>
        main()
      File "C:\Users\me\AppData\Roaming\Python\Python310\site-packages\click\core.py", line 1157, in __call__
        return self.main(*args, **kwargs)
      File "C:\Users\me\AppData\Roaming\Python\Python310\site-packages\click\core.py", line 1078, in main
        rv = self.invoke(ctx)
      File "C:\Users\me\AppData\Roaming\Python\Python310\site-packages\click\core.py", line 1434, in invoke
        return ctx.invoke(self.callback, **ctx.params)
      File "C:\Users\me\AppData\Roaming\Python\Python310\site-packages\click\core.py", line 783, in invoke
        return __callback(*args, **kwargs)
      File "D:\widevine_keys\freevine-main\freevine.py", line 32, in main
        Service(config, **kwargs)
      File "D:\widevine_keys\freevine-main\services\itv.py", line 65, in __init__
        self.get_episode() if self.episode else None
      File "D:\widevine_keys\freevine-main\services\itv.py", line 203, in get_episode
        self.download(target, title) if target else info(
      File "D:\widevine_keys\freevine-main\services\itv.py", line 268, in download
        resolution, pssh = self.get_mediainfo(manifest, self.quality)
      File "D:\widevine_keys\freevine-main\services\itv.py", line 155, in get_mediainfo
        pssh = self.get_pssh(soup)
      File "D:\widevine_keys\freevine-main\services\itv.py", line 144, in get_pssh
        .attrs.get("cenc:default_KID")
    AttributeError: 'NoneType' object has no attribute 'attrs'
    As I said, all other webplayers work stabbedbybrick
    Last edited by deccavox; 16th Sep 2023 at 05:33.
    Quote Quote  
  2. Member
    Join Date
    Dec 2021
    Location
    england
    Search Comp PM
    Code:
    freevine.py -e S01E01 https://www.itv.com/watch/a-mothers-son/1a9851
    Image
    [Attachment 73819 - Click to enlarge]
    Quote Quote  
  3. Originally Posted by deccavox View Post
    As I said, all other webplayers work stabbedbybrick
    They work for the most part, but there are some definitive bugs here and there, and I don't mind people reporting them.

    But I can't reproduce this particular error. It works just fine for me:

    Code:
    19:36:21.885 INFO : Freevine v0.0.6 (080923)
    
    19:37:22.332 INFO : ITV
    19:37:23.467 INFO : A Mother's Son: 1 Season(s), 2 Episode(s)
    
    19:37:25.530 INFO : A.Mothers.Son.S01E01
    19:37:25.530 INFO : a2496e910d3c4b28a9af9897cb1265b7:56028083827be5859fad4e61c6ca9efb
    The only thing I've noticed is that the connection can time out once in a while, but that would produce another error. Your issue seems to be with the manifest and not being able to read it properly to find the KID. And I'm not entirely sure why that would be.
    Quote Quote  
  4. Sometimes when a download fails, if you close the cmd window and relaunch the program and drop in your url and your instructions it ends up getting what it failed to get before. But adapt because if it is a whole slew of episodes from a season the program might want to download those again. If you have for example downloaded five of ten episodes just adapt your instructions to not include the ones that did download correctly. I learned this with CTV and TubiTV. I don't have a VPN so I haven't tried ITV and such but I may have to set some money aside for a VPN because I am big fan of U.K. TV Shows.
    Quote Quote  
  5. Originally Posted by Tom Saurus View Post
    Sometimes when a download fails, if you close the cmd window and relaunch the program and drop in your url and your instructions it ends up getting what it failed to get before. But adapt because if it is a whole slew of episodes from a season the program might want to download those again. If you have for example downloaded five of ten episodes just adapt your instructions to not include the ones that did download correctly. I learned this with CTV and TubiTV. I don't have a VPN so I haven't tried ITV and such but I may have to set some money aside for a VPN because I am big fan of U.K. TV Shows.
    That's a good point. I've added checks to skip downloading of files that already exist.
    Quote Quote  
  6. Originally Posted by deccavox View Post
    Code:
    py freevine.py --episode S01E01 "https://www.itv.com/watch/a-mothers-son/1a9851"
    
    18:15:20.737 INFO : Freevine v0.0.6 (080923)
    
    18:15:21.263 INFO : ITV
    18:15:21.441 INFO : A Mother's Son: 1 Season(s), 2 Episode(s)
    
    Traceback (most recent call last):
      File "D:\widevine_keys\freevine-main\freevine.py", line 38, in <module>
        main()
      File "C:\Users\me\AppData\Roaming\Python\Python310\site-packages\click\core.py", line 1157, in __call__
        return self.main(*args, **kwargs)
      File "C:\Users\me\AppData\Roaming\Python\Python310\site-packages\click\core.py", line 1078, in main
        rv = self.invoke(ctx)
      File "C:\Users\me\AppData\Roaming\Python\Python310\site-packages\click\core.py", line 1434, in invoke
        return ctx.invoke(self.callback, **ctx.params)
      File "C:\Users\me\AppData\Roaming\Python\Python310\site-packages\click\core.py", line 783, in invoke
        return __callback(*args, **kwargs)
      File "D:\widevine_keys\freevine-main\freevine.py", line 32, in main
        Service(config, **kwargs)
      File "D:\widevine_keys\freevine-main\services\itv.py", line 65, in __init__
        self.get_episode() if self.episode else None
      File "D:\widevine_keys\freevine-main\services\itv.py", line 203, in get_episode
        self.download(target, title) if target else info(
      File "D:\widevine_keys\freevine-main\services\itv.py", line 268, in download
        resolution, pssh = self.get_mediainfo(manifest, self.quality)
      File "D:\widevine_keys\freevine-main\services\itv.py", line 155, in get_mediainfo
        pssh = self.get_pssh(soup)
      File "D:\widevine_keys\freevine-main\services\itv.py", line 144, in get_pssh
        .attrs.get("cenc:default_KID")
    AttributeError: 'NoneType' object has no attribute 'attrs'
    As I said, all other webplayers work stabbedbybrick
    I get the same error with ITV, Decca. Please let me know if you fix it and how? Thanks.
    Quote Quote  
  7. Member
    Join Date
    Dec 2022
    Location
    Lesotho
    Search Comp PM
    I get the same errors with ITV. Similar errors with STV.

    The scripts finds the episodes without a problem.



    Then throws a wobbly.

    Quote Quote  
  8. Make sure you guys are using the correct Python version (3.10.*) when running the program. If you do, and the errors persist, let me know and I'll look into it.

    It might also be time to make a separate thread for this since this one is kind of all over the place.
    Quote Quote  
  9. Originally Posted by stabbedbybrick View Post
    Make sure you guys are using the correct Python version (3.10.*) when running the program. If you do, and the errors persist, let me know and I'll look into it.

    It might also be time to make a separate thread for this since this one is kind of all over the place.
    I'll just confirm that I am, but I'm also very new to this so it might be good if others confirm, too.

    C:\>python --version
    Python 3.10.0
    Quote Quote  
  10. Hey stabbedbybrick, just wanted to say that this is an amazing tool to use. To just grab 30+ episodes with 1 link and sit back is like magic to me.

    I do have 1 tiny tiny request and that is, if it would be possible to convert the subtitles from .vtt to .srt before muxing them into the .mkv container? It is just that plex does not play nice with those kind of subtitles.

    I understand if that is how you prefer them and do not want to do that by default, then maybe make it optional:

    freevine.py --episode S01E01 --subs-srt URL
    Thanks again for your work!
    Quote Quote  
  11. All right, after some testing it turns out the issue is definitely with the Python versions. It's very common for modules to behave differently in each version of Python and I thought that putting 3.10.* in the requirements was enough, but apparently it's even more specific than that. I'm on Linux, which defaults to 3.10.12 and is guaranteed to work. I don't feel like testing every single version, so I guess that's the official recommendation.

    @cmonSon:

    You're very welcome, glad you're enjoying it.
    N_m3u8DL-RE is supposed to convert and "fix" the subtitles, but maybe it's not enough? I don't really use subtitles so I haven't noticed, but I'll see if I can figure something out for future updates.
    Quote Quote  
  12. Member
    Join Date
    Dec 2021
    Location
    england
    Search Comp PM
    mine is 3.9, works with all services
    Quote Quote  
  13. Originally Posted by stabbedbybrick View Post
    N_m3u8DL-RE is supposed to convert and "fix" the subtitles, but maybe it's not enough? I don't really use subtitles so I haven't noticed, but I'll see if I can figure something out for future updates.
    I had only used it for CTV and they all ended up as VTT. I just tried ALL4 and it did indeed convert to SRT. So it does work, kinda. :P
    Quote Quote  
  14. Originally Posted by cmonSon View Post
    Originally Posted by stabbedbybrick View Post
    N_m3u8DL-RE is supposed to convert and "fix" the subtitles, but maybe it's not enough? I don't really use subtitles so I haven't noticed, but I'll see if I can figure something out for future updates.
    I had only used it for CTV and they all ended up as VTT. I just tried ALL4 and it did indeed convert to SRT. So it does work, kinda. :P
    Subtitle formats and how they are served with the stream varies from service to service, and I guess N_m3u8DL-RE doesn't convert the ones you have to import, like CTV.

    But it turns out it was a pretty simple fix to get SRT subtitles for CTV. I'll include it in the next update.
    Quote Quote  
  15. Member
    Join Date
    Dec 2021
    Location
    Scotland
    Search Comp PM
    Originally Posted by stabbedbybrick View Post
    All right, after some testing it turns out the issue is definitely with the Python versions. It's very common for modules to behave differently in each version of Python and I thought that putting 3.10.* in the requirements was enough, but apparently it's even more specific than that. I'm on Linux, which defaults to 3.10.12 and is guaranteed to work. I don't feel like testing every single version, so I guess that's the official recommendation.
    Ah well, I'm v3.10.1
    I'm working my way through the script to maybe spot something but it could take a while (there's a few modules I'm having to learn about lol).
    The lack of ITVX is no big deal really. Their content is pretty much covered by STV anyway, but better specs (1080p vs 720p & 128Kbps vs 96Kbps). OK, I lose out on ITV2/3/4/Be content. Not much there and I still have my own ITVX downloader (though not as sophisticated as this one, I have to input one episode at a time).

    Your script works great with the other webplayers I use (All4, STV, UKTV) so I do thank you for that.
    Quote Quote  
  16. Originally Posted by stabbedbybrick View Post
    But it turns out it was a pretty simple fix to get SRT subtitles for CTV. I'll include it in the next update.
    Excellent.

    Your work is much appreciated!
    Quote Quote  
  17. Originally Posted by stabbedbybrick View Post
    Originally Posted by Tom Saurus View Post
    Sometimes when a download fails, if you close the cmd window and relaunch the program and drop in your url and your instructions it ends up getting what it failed to get before. But adapt because if it is a whole slew of episodes from a season the program might want to download those again. If you have for example downloaded five of ten episodes just adapt your instructions to not include the ones that did download correctly. I learned this with CTV and TubiTV. I don't have a VPN so I haven't tried ITV and such but I may have to set some money aside for a VPN because I am big fan of U.K. TV Shows.
    That's a good point. I've added checks to skip downloading of files that already exist.
    Thank you for this addition to an already terrific program.
    Quote Quote  
  18. The error has been fixed, and all services should now work in just about any Python version from at least 3.10 and up. Probably lower versions as well, but I can't check all of them.
    Quote Quote  
  19. Member
    Join Date
    Dec 2022
    Location
    Lesotho
    Search Comp PM
    Works like magic! Thank you very much.
    Quote Quote  
  20. Originally Posted by stabbedbybrick View Post
    The error has been fixed, and all services should now work in just about any Python version from at least 3.10 and up. Probably lower versions as well, but I can't check all of them.
    Hey, it works! Cheers!
    Quote Quote  
  21. Member
    Join Date
    Dec 2021
    Location
    Scotland
    Search Comp PM
    Moved to Freevine-support-thread
    Last edited by deccavox; 18th Sep 2023 at 13:53.
    Quote Quote  
  22. Getting a token error with Britbox content on ITVX:

    Error! 403
    b'{\n "Message" : "UserTokenValidationFailed for user: None message: Token not
    provided",\n "TransactionId" : "oas-magni-935833-gnWjlM"\n}'

    However working fine with catchup programmes on the service.
    Quote Quote  
  23. Please use the new Freevine support thread from here on out: https://forum.videohelp.com/threads/411643-Freevine-support-thread

    It's a bit easier to keep everything in one place rather than running around several threads.
    Quote Quote  



Similar Threads

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