summaryrefslogtreecommitdiffstats
path: root/lib/class/song.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class/song.class.php')
-rw-r--r--lib/class/song.class.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/class/song.class.php b/lib/class/song.class.php
index 029d45a4..9ce008b4 100644
--- a/lib/class/song.class.php
+++ b/lib/class/song.class.php
@@ -688,6 +688,14 @@ class Song extends database_object implements media {
// Get the top tags
$tags = Tag::get_top_tags('song',$this->id);
+ $this->tags = $tags;
+
+ $tag = new Tag($tags['0']);
+
+ // Emulate the genre information for legacy crap (API)
+ $this->f_genre = $tag->name;
+ $this->genre = $tag->id;
+
$this->f_tags = Tag::get_display($tags,$this->id,'song');
// Format the size