diff options
author | Jens Georg <mail@jensge.org> | 2020-07-30 00:21:09 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2020-07-30 00:22:23 +0200 |
commit | 5105e2ce4a63e4e6b4bf27707629ee8e70fe63ca (patch) | |
tree | d010871ecb1e39556becba73bc1beb5bead4f5a2 | |
parent | 42921c5d927337ef08dc49b368535da76bfc87de (diff) | |
download | rygel-5105e2ce4a63e4e6b4bf27707629ee8e70fe63ca.tar.gz |
media-export: Fix handling virtual-id: ids with :
If there's more than 2 : it would fail right away. Instead of splitting
into all parts, limit it to two.
Fixes #167
-rw-r--r-- | src/plugins/media-export/rygel-media-export-root-container.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/media-export/rygel-media-export-root-container.vala b/src/plugins/media-export/rygel-media-export-root-container.vala index 6c80981b..ed5ed91b 100644 --- a/src/plugins/media-export/rygel-media-export-root-container.vala +++ b/src/plugins/media-export/rygel-media-export-root-container.vala @@ -114,7 +114,7 @@ public class Rygel.MediaExport.RootContainer : TrackableDbContainer { return container; } else if (id.has_prefix (QueryContainer.ITEM_PREFIX)) { var tmp_id = id.replace (QueryContainer.ITEM_PREFIX, ""); - var parts = tmp_id.split (":"); + var parts = tmp_id.split (":", 2); if (parts.length != 2) { return null; } |