./smooth-dl.py:137: FutureWarning: This search is broken in 1.3 and earlier, and will be fixed in a future version. If you rely on the current behaviour, change it to './/StreamIndex'
def print_manifest_info(manifest):
def print_manifest_info(manifest):
- streams = manifest.findall('//StreamIndex')
+ streams = manifest.findall('.//StreamIndex')
for i, s in enumerate(streams):
stream_type = s.attrib["Type"]
for i, s in enumerate(streams):
stream_type = s.attrib["Type"]
if os.path.exists(dest_dir) == False:
os.mkdir(dest_dir, 0755)
if os.path.exists(dest_dir) == False:
os.mkdir(dest_dir, 0755)
- stream = manifest.findall('//StreamIndex')[stream_index]
+ stream = manifest.findall('.//StreamIndex')[stream_index]
quality = stream.findall("QualityLevel")[quality_level]
bitrate = quality.attrib["Bitrate"]
quality = stream.findall("QualityLevel")[quality_level]
bitrate = quality.attrib["Bitrate"]
if final_dest_file == None:
final_dest_file = dest_file_name
if final_dest_file == None:
final_dest_file = dest_file_name
- stream = manifest.findall('//StreamIndex')[stream_index]
+ stream = manifest.findall('.//StreamIndex')[stream_index]
quality = stream.findall("QualityLevel")[quality_level]
bitrate = quality.attrib["Bitrate"]
quality = stream.findall("QualityLevel")[quality_level]
bitrate = quality.attrib["Bitrate"]
def calc_tracks_delay(manifest, stream1_index, stream2_index):
def calc_tracks_delay(manifest, stream1_index, stream2_index):
- streams = manifest.findall('//StreamIndex')
+ streams = manifest.findall('.//StreamIndex')
s1 = streams[stream1_index]
s2 = streams[stream2_index]
s1 = streams[stream1_index]
s2 = streams[stream2_index]