Browse Source

更新ts秒数移位

lang 4 years ago
parent
commit
3c92af1233
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Controller/CloudStorage.py

+ 3 - 2
Controller/CloudStorage.py

@@ -258,8 +258,9 @@ class CloudStorageView(View):
         conn = session.client('s3')
         conn = session.client('s3')
         playlist_entries = []
         playlist_entries = []
         fg = int(fg)
         fg = int(fg)
-        ts_count = fg & 0xf
-        for i in range(ts_count):
+        # ts_count = fg & 0xf
+        #fg 64位整型,最低位代表总数,每四位转为十进制即为当前ts文件的描述
+        for i in range(16):
             shift = (i + 1) * 4
             shift = (i + 1) * 4
             duration = (fg >> shift) & 0xf
             duration = (fg >> shift) & 0xf
             if duration > 0:
             if duration > 0: