song_update: update the "has_playlist" flag
This commit is contained in:
parent
686d8bbe69
commit
a7f13d841f
@ -118,7 +118,7 @@ song_file_update(struct song *song)
|
|||||||
/* load file tag */
|
/* load file tag */
|
||||||
song->tag = tag_new();
|
song->tag = tag_new();
|
||||||
if (decoder_plugin_scan_file(plugin, path_fs,
|
if (decoder_plugin_scan_file(plugin, path_fs,
|
||||||
&add_tag_handler, song->tag))
|
&full_tag_handler, song->tag))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
tag_free(song->tag);
|
tag_free(song->tag);
|
||||||
@ -139,7 +139,7 @@ song_file_update(struct song *song)
|
|||||||
if (is != NULL) {
|
if (is != NULL) {
|
||||||
song->tag = tag_new();
|
song->tag = tag_new();
|
||||||
if (decoder_plugin_scan_stream(plugin, is,
|
if (decoder_plugin_scan_stream(plugin, is,
|
||||||
&add_tag_handler,
|
&full_tag_handler,
|
||||||
song->tag))
|
song->tag))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -162,7 +162,7 @@ song_file_update(struct song *song)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (song->tag != NULL && tag_is_empty(song->tag))
|
if (song->tag != NULL && tag_is_empty(song->tag))
|
||||||
tag_scan_fallback(path_fs, &add_tag_handler, song->tag);
|
tag_scan_fallback(path_fs, &full_tag_handler, song->tag);
|
||||||
|
|
||||||
g_free(path_fs);
|
g_free(path_fs);
|
||||||
return song->tag != NULL;
|
return song->tag != NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user