Skip to content

Commit

Permalink
Fix Issue 197 (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
xsxiaosa authored Jun 5, 2024
1 parent e345697 commit fb4262c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/models/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ def get_video_size(json_data, file_path):
[new_tag_list.append(i) for i in tag_list if i]
if definition and 'definition' in config.tag_include:
new_tag_list.insert(0, definition)
new_tag_list.insert(0, codec_fourcc.upper()) # 插入编码格式
if hd_get == 'video':
new_tag_list.insert(0, codec_fourcc.upper()) # 插入编码格式
json_data['tag'] = ','.join(new_tag_list)
return json_data

Expand Down

0 comments on commit fb4262c

Please sign in to comment.