forked from enlightenment/terminology
fix some media handling of mp3's and music files with tyls+thumb links.
This commit is contained in:
parent
1fb9a04ad8
commit
4caebb56b7
|
@ -553,24 +553,31 @@ _smart_media_clicked(void *data, Evas_Object *obj, void *info __UNUSED__)
|
||||||
{
|
{
|
||||||
if (blk->link)
|
if (blk->link)
|
||||||
{
|
{
|
||||||
|
int type = media_src_type_get(blk->link);
|
||||||
Config *config = termio_config_get(data);
|
Config *config = termio_config_get(data);
|
||||||
|
|
||||||
if (config)
|
if (config)
|
||||||
{
|
{
|
||||||
const char *cmd = NULL;
|
if ((!config->helper.inline_please) ||
|
||||||
|
(!((type == TYPE_IMG) || (type == TYPE_SCALE) ||
|
||||||
file = blk->link;
|
(type == TYPE_EDJE) || (type == TYPE_MOV))))
|
||||||
if ((config->helper.local.general) &&
|
|
||||||
(config->helper.local.general[0]))
|
|
||||||
cmd = config->helper.local.general;
|
|
||||||
if (cmd)
|
|
||||||
{
|
{
|
||||||
char buf[PATH_MAX];
|
const char *cmd = NULL;
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "%s %s", cmd, file);
|
file = blk->link;
|
||||||
ecore_exe_run(buf, NULL);
|
if ((config->helper.local.general) &&
|
||||||
return;
|
(config->helper.local.general[0]))
|
||||||
|
cmd = config->helper.local.general;
|
||||||
|
if (cmd)
|
||||||
|
{
|
||||||
|
char buf[PATH_MAX];
|
||||||
|
|
||||||
|
snprintf(buf, sizeof(buf), "%s %s", cmd, file);
|
||||||
|
ecore_exe_run(buf, NULL);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
file = blk->link;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -345,12 +345,12 @@ const Cmatch fmatch[] =
|
||||||
{ 3, 4, 5, 9, 9, 9, "*.264", NULL},
|
{ 3, 4, 5, 9, 9, 9, "*.264", NULL},
|
||||||
{ 3, 4, 5, 9, 9, 9, "*.3gp", NULL},
|
{ 3, 4, 5, 9, 9, 9, "*.3gp", NULL},
|
||||||
|
|
||||||
{ 2, 3, 5, 9, 9, 9, "*.mp3", NULL},
|
{ 2, 3, 5, 9, 9, 9, "*.mp3", "audio-x-mpeg.svg"},
|
||||||
{ 2, 3, 5, 9, 9, 9, "*.MP3", NULL},
|
{ 2, 3, 5, 9, 9, 9, "*.MP3", "audio-x-mpeg.svg"},
|
||||||
{ 2, 3, 5, 9, 9, 9, "*.aac", NULL},
|
{ 2, 3, 5, 9, 9, 9, "*.aac", "audio-x-generic.svg"},
|
||||||
{ 2, 3, 5, 9, 9, 9, "*.AAC", NULL},
|
{ 2, 3, 5, 9, 9, 9, "*.AAC", "audio-x-generic.svg"},
|
||||||
{ 2, 3, 5, 9, 9, 9, "*.wav", NULL},
|
{ 2, 3, 5, 9, 9, 9, "*.wav", "audio-x-wav.svg"},
|
||||||
{ 2, 3, 5, 9, 9, 9, "*.WAV", NULL},
|
{ 2, 3, 5, 9, 9, 9, "*.WAV", "audio-x-wav.svg"},
|
||||||
{ 2, 3, 5, 9, 9, 9, "*.m3u", "audio-x-mp3-playlist"},
|
{ 2, 3, 5, 9, 9, 9, "*.m3u", "audio-x-mp3-playlist"},
|
||||||
{ 2, 3, 5, 9, 9, 9, "*.M3U", "audio-x-mp3-playlist"},
|
{ 2, 3, 5, 9, 9, 9, "*.M3U", "audio-x-mp3-playlist"},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue