R = (magni_url, json=payload)ĭef _get_key(self, pssh: str, lic_url: str, cert_b64=None) -> str: Videoname = videoname.replace(rep, replacements) Videoname = ''.join(c for c in title if c.isprintable() and c not in illegals) # replace extraneous title data and 'illegal' characters #print('Creating new instance of ITV Class')Ĭls.host = '.com' Raise RuntimeError('Call instance() instance(cls): # order in the clipbord so select video1, video2, etc in sequence # This is useful for series without numbers but relies on the correct # the videoname set the value of SEQ = TRUE # If you want each video in your clipboard to be numbered by a preface to # seting for index number to preface videoname either True or False OUT_PATH.mkdir(exist_ok=True, parents=True) #from pywidevine.元.decrypt.wvdecryptcustom import WvDecrypt #from pywidevine.元.cdm import deviceconfig # should you ever wish to run a convert subtitles routine from the command line:-įrom selectolax.lexbor import LexborHTMLParser # IMPORTANT subtitles need the pip install as below. # uses a generic tile like 'Inspector Morse' and without a series or episode number. It removes the chance of an over-write of the video name when ITV # added option for a sequence number to add to the videoname (This will be the order they # this program downloads, converts and merges subtitles. # In addition to not having to faff about with opening and saving text files # In TSD window select copy stream url as User-Defined-Command 1 # in the box adjacent to'user-defined-commands enter -> %origin% # This program uses The Stream Detector to capture page URLs # With grateful thanks to sk8ord13 for code # reworked to match recent changes at ITVX On my mac I needed to uninstall protobuf with Okay, looks like I missed that detail about wv_proto2_pb2. I understand you have currently chosen not to follow them. There are instructions elsewhere in the forum. I understand you have currently chosen not to follow them.Īnd for your information for the future Pythons's pywidevine plays very nicely with WKS-KEYS if you just recompile wv_proto2_pb2 to suit version 4 protobuf. Bernard's issue has nothing to do with WKS-KEYS vs pywidewine believe me.Īnd for your information for the future Pythons's pywidevine plays very nicely with WKS-KEYS if you just recompile wv_proto2_pb2 to suit version 4 protobuf. But that someone is not going to be me while the quick workaround is available! Philip, you misunderstand. The best solution would be for someone to update either the c4 script to make it use WKS_KEYS, or the other scripts to use the. But that someone is not going to be me while the quick workaround is available! Does installing pywidevine stop it looking through relative paths for imports? No idea, my Python is extremely basic. I put a copy of _init_.py in the pywidevine folder and that made no difference. It's still there as a path relative to the script. It can't find pywidevine/元? Well, installing pywidevine did not change the folder structure one jot. The issue is that installing pywidevine (needed for the c4 script) somehow mucks up the WKS-KEYS install. Thank you but none of that is relevant to the this issue if you read the error message. But the above is simple enough for me to do every time it's needed. The solutions posted by others have not worked for me (or, more likely, I haven't properly understood the instructions).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |