[grilo-plugins] grl-dleyna-source: Set artist, album and genre properties for containers



commit 5511ad119f89853312d893ffcf286ef00a2c0418
Author: Chinmay Gurjar <chnmgurjar gmail com>
Date:   Mon Aug 17 15:19:01 2020 +0530

    grl-dleyna-source: Set artist, album and genre properties for containers
    
    This patch is an extension of !87
    Some containers can also have properties like artist, album and genre,
    these need to be set for album media.

 src/dleyna/grl-dleyna-source.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/dleyna/grl-dleyna-source.c b/src/dleyna/grl-dleyna-source.c
index 999bbb39..ddeb7614 100644
--- a/src/dleyna/grl-dleyna-source.c
+++ b/src/dleyna/grl-dleyna-source.c
@@ -543,19 +543,19 @@ media_set_property (GrlMedia *media,
   }
   else if (g_strcmp0 (key, "Artist") == 0) {
     s = g_variant_get_string (value, NULL);
-    if (grl_media_is_audio (media)) {
+    if (grl_media_is_audio (media) || grl_media_is_container (media)) {
       grl_media_set_artist (media, s);
     }
   }
   else if (g_strcmp0 (key, "Album") == 0) {
     s = g_variant_get_string (value, NULL);
-    if (grl_media_is_audio (media)) {
+    if (grl_media_is_audio (media) || grl_media_is_container (media)) {
       grl_media_set_album (media, s);
     }
   }
   else if (g_strcmp0 (key, "Genre") == 0) {
     s = g_variant_get_string (value, NULL);
-    if (grl_media_is_audio (media)) {
+    if (grl_media_is_audio (media) || grl_media_is_container (media)) {
       grl_media_set_genre (media, s);
     }
   }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]