File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,20 +26,26 @@ def decode_audio_url(string, user_id):
2626 ops_list = vk_o (vals [1 ]).split ('\x09 ' )[::- 1 ]
2727
2828 for op_data in ops_list :
29- cmd , * arg = op_data .split ('\x0b ' )
29+
30+ split_op_data = op_data .split ('\x0b ' )
31+ cmd = split_op_data [0 ]
32+ if len (split_op_data ) > 1 :
33+ arg = split_op_data [1 ]
34+ else :
35+ arg = None
3036
3137 if cmd == 'v' :
3238 tstr = tstr [::- 1 ]
3339
3440 elif cmd == 'r' :
35- tstr = vk_r (tstr , arg [ 0 ] )
41+ tstr = vk_r (tstr , arg )
3642
3743 elif cmd == 'x' :
38- tstr = vk_xor (tstr , arg [ 0 ] )
44+ tstr = vk_xor (tstr , arg )
3945 elif cmd == 's' :
40- tstr = vk_s (tstr , arg [ 0 ] )
46+ tstr = vk_s (tstr , arg )
4147 elif cmd == 'i' :
42- tstr = vk_i (tstr , arg [ 0 ] , user_id )
48+ tstr = vk_i (tstr , arg , user_id )
4349 else :
4450 raise VkAudioUrlDecodeError (
4551 'Unknown decode cmd: "{}"; Please send bugreport' .format (cmd )
You can’t perform that action at this time.
0 commit comments