@@ -39,7 +39,7 @@ def clip_embed_wrapper(*args, **kwargs):
39
39
40
40
41
41
def m3u8_to_dict (string ):
42
- log .debug ('m3u8_to_dict called for:\n {}' .format (string ))
42
+ log .debug ('m3u8_to_dict called for:\n {0 }' .format (string ))
43
43
d = dict ()
44
44
matches = re .finditer (_m3u_pattern , string )
45
45
for m in matches :
@@ -51,12 +51,12 @@ def m3u8_to_dict(string):
51
51
'url' : m .group ('url' ),
52
52
'bandwidth' : int (m .group ('bandwidth' ))
53
53
}
54
- log .debug ('m3u8_to_dict result:\n {}' .format (d ))
54
+ log .debug ('m3u8_to_dict result:\n {0 }' .format (d ))
55
55
return d
56
56
57
57
58
58
def m3u8_to_list (string ):
59
- log .debug ('m3u8_to_list called for:\n {}' .format (string ))
59
+ log .debug ('m3u8_to_list called for:\n {0 }' .format (string ))
60
60
l = list ()
61
61
matches = re .finditer (_m3u_pattern , string )
62
62
for m in matches :
@@ -69,12 +69,12 @@ def m3u8_to_list(string):
69
69
'bandwidth' : int (m .group ('bandwidth' ))
70
70
})
71
71
72
- log .debug ('m3u8_to_list result:\n {}' .format (l ))
72
+ log .debug ('m3u8_to_list result:\n {0 }' .format (l ))
73
73
return l
74
74
75
75
76
76
def clip_embed_to_list (string ):
77
- log .debug ('clip_embed_to_list called for:\n {}' .format (string ))
77
+ log .debug ('clip_embed_to_list called for:\n {0 }' .format (string ))
78
78
match = re .search (_clip_embed_pattern , string )
79
79
l = list ()
80
80
if match :
@@ -93,5 +93,5 @@ def clip_embed_to_list(string):
93
93
'bandwidth' : - 1
94
94
})
95
95
96
- log .debug ('clip_embed_to_list result:\n {}' .format (l ))
96
+ log .debug ('clip_embed_to_list result:\n {0 }' .format (l ))
97
97
return l
0 commit comments