Skip to content

Commit

Permalink
Decode metadata right away if request points to a local file.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Apr 17, 2024
1 parent 939eba2 commit d2a38cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/request.ml
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,9 @@ let push_indicators t l =
add_log t
(Printf.sprintf "Pushed [%s;...]." (Lang_string.quote_string hd.string));
t.indicators <- l :: t.indicators;
t.decoder <- None)
t.decoder <- None;
let indicator = peek_indicator t in
if file_exists indicator.string then read_metadata t)

let resolved t = match t.status with Ready | Playing -> true | _ -> false

Expand Down

0 comments on commit d2a38cf

Please sign in to comment.