mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 23:59:24 +00:00
add position to progress, remove get progress
This commit is contained in:
@@ -125,7 +125,12 @@ class SearchProcess:
|
||||
total = video_dict["player"].get("duration")
|
||||
if player_position and total:
|
||||
progress = 100 * (player_position / total)
|
||||
video_dict["player"].update({"progress": progress})
|
||||
video_dict["player"].update(
|
||||
{
|
||||
"progress": progress,
|
||||
"position": player_position,
|
||||
}
|
||||
)
|
||||
|
||||
return dict(sorted(video_dict.items()))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user