Browse Source

更新ts移位说明

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

+ 2 - 2
Controller/CloudStorage.py

@@ -259,8 +259,8 @@ class CloudStorageView(View):
         playlist_entries = []
         playlist_entries = []
         fg = int(fg)
         fg = int(fg)
         # ts_count = fg & 0xf
         # ts_count = fg & 0xf
-        #fg 64位整型,最低位代表总数,每四位转为十进制即为当前ts文件的描述
-        for i in range(16):
+        #fg 64位整型,低四位代表ts文件总数,然后进行位运算,一次移四位,每四位转为十进制即为当前ts文件的秒数
+        for i in range(15):
             shift = (i + 1) * 4
             shift = (i + 1) * 4
             duration = (fg >> shift) & 0xf
             duration = (fg >> shift) & 0xf
             if duration > 0:
             if duration > 0: