diff options
author | Bastien Nocera <hadess@hadess.net> | 2019-11-09 14:14:06 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2019-11-12 18:31:50 +0000 |
commit | 2a8218cb35d2601097465b40407c264be7b49d8c (patch) | |
tree | c1278b709911fec11a2edf7ed7968b25a9889f68 /src | |
parent | 0a3ff1f1b0234fa6ed35f72d179c450b7885adbe (diff) | |
download | totem-2a8218cb35d2601097465b40407c264be7b49d8c.tar.gz |
main: Ignore more file types when parsing playlists
Including ignoring more files that could end up next to, but aren't used
for video playback, such as text files, and other garbage.
See https://gitlab.gnome.org/GNOME/totem-pl-parser/merge_requests/6
Diffstat (limited to 'src')
-rw-r--r-- | src/totem-playlist.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/totem-playlist.c b/src/totem-playlist.c index 6867f8ab0..6d01a12df 100644 --- a/src/totem-playlist.c +++ b/src/totem-playlist.c @@ -827,6 +827,13 @@ totem_playlist_init (TotemPlaylist *playlist) totem_pl_parser_add_ignored_scheme (playlist->priv->parser, "cd:"); totem_pl_parser_add_ignored_scheme (playlist->priv->parser, "dvb:"); totem_pl_parser_add_ignored_mimetype (playlist->priv->parser, "application/x-trash"); + totem_pl_parser_add_ignored_mimetype (playlist->priv->parser, "text/html"); + totem_pl_parser_add_ignored_mimetype (playlist->priv->parser, "application/x-ms-dos-executable"); + totem_pl_parser_add_ignored_glob (playlist->priv->parser, "*.htm"); + totem_pl_parser_add_ignored_glob (playlist->priv->parser, "*.html"); + totem_pl_parser_add_ignored_glob (playlist->priv->parser, "*.nfo"); + totem_pl_parser_add_ignored_glob (playlist->priv->parser, "*.txt"); + totem_pl_parser_add_ignored_glob (playlist->priv->parser, "*.exe"); g_signal_connect (G_OBJECT (playlist->priv->parser), "entry-parsed", |