Skip to content

Commit

Permalink
chore: clarify vtmgo pssh error (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
BelgianNoise authored Jun 28, 2024
1 parent 63b2055 commit 974f1f2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dl-downer/src/downloaders/VTMGO.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,12 @@ def VTMGO_DL(dl_request: DLRequest):
# get pssh from mpd
manifest_response = requests.get(mpd_url)
manifest_response.raise_for_status()
pssh = re.findall(r'<cenc:pssh[^>]*>(.{,180})</cenc:pssh>', manifest_response.text)[0]
logger.debug(f'Manifest response status: {manifest_response.status_code}')
try:
pssh = re.findall(r'<cenc:pssh[^>]*>(.{,180})</cenc:pssh>', manifest_response.text)[0]
assert pssh
except:
raise Exception(f'Failed to find pssh in manifest: {manifest_response.text}')
logger.debug(f'PSSH: {pssh}')

cdm = Local_CDM()
Expand Down

0 comments on commit 974f1f2

Please sign in to comment.