File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 21
21
# Wait for the asset to become ready, and then print its playback URL
22
22
if create_asset_response .data .status != 'ready' :
23
23
24
- print "Waiting for asset to become ready..."
24
+ print ( "Waiting for asset to become ready..." )
25
25
while True :
26
26
asset_response = assets_api .get_asset (create_asset_response .data .id )
27
27
if asset_response .data .status != 'ready' :
28
28
print ("Asset still not ready. Status was: " + asset_response .data .status )
29
29
time .sleep (1 )
30
30
else :
31
- print "Asset Ready! Playback URL: https://stream.mux.com/" + asset_response .data .playback_ids [0 ].id + ".m3u8"
31
+ print ( "Asset Ready! Playback URL: https://stream.mux.com/" + asset_response .data .playback_ids [0 ].id + ".m3u8" )
32
32
break
Original file line number Diff line number Diff line change 15
15
try :
16
16
assets_api .get_asset ("HELLO" )
17
17
except NotFoundException as e :
18
- print "Cound not find asset!"
19
- print "Error Type: " + e .error_type
20
- print "Error Messages: " + ", " .join (e .error_messages )
18
+ print ( "Cound not find asset!" )
19
+ print ( "Error Type: " + e .error_type )
20
+ print ( "Error Messages: " + ", " .join (e .error_messages ) )
You can’t perform that action at this time.
0 commit comments