Skip to content

Commit

Permalink
update model in content.json if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor committed Oct 4, 2024
1 parent ba183a3 commit d8f051a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ tonie_info_t *getTonieInfo(const char *contentPath, bool lock, settings_t *setti
{
tonieInfo->json._source_type = CT_SOURCE_TAF_INCOMPLETE;
}
else if (tonieInfo->json._source_type == CT_SOURCE_NONE) // TAF beside the content json
else if ((tonieInfo->json.tonie_model == NULL || tonieInfo->json.tonie_model[0] == '\0') && (tonieInfo->json._source_type == CT_SOURCE_NONE || tonieInfo->json._source_type == CT_SOURCE_TAF)) // TAF beside the content json
{
content_json_update_model(&tonieInfo->json, tonieInfo->tafHeader->audio_id, tonieInfo->tafHeader->sha1_hash.data);
}
Expand Down

0 comments on commit d8f051a

Please sign in to comment.