[tracker-miners: 3/4] tracker-extract-mp3.c: Update MP3 tests for MBIDs



commit 9ad3a02a2010d64c517b6ba9b12e3649867cedbe
Author: Sumaid Syed <sumaidsyed gmail com>
Date:   Wed Jun 12 15:35:04 2019 +0530

    tracker-extract-mp3.c: Update MP3 tests for MBIDs
    
    Existing mp3 tests should also check MusicBrainz IDs.
    audio-test-1 uses id3 v2.4 tags and audio-test-2
    uses v2.3 tags.
    
    https://gitlab.gnome.org/GNOME/tracker-miners/issues/68

 .../audio/audio-test-1.expected.json                |  17 +++++++++++++++--
 .../test-extraction-data/audio/audio-test-1.mp3     | Bin 61547 -> 61547 bytes
 .../audio/audio-test-2.expected.json                |  16 ++++++++++++++--
 .../test-extraction-data/audio/audio-test-2.mp3     | Bin 65536 -> 65664 bytes
 4 files changed, 29 insertions(+), 4 deletions(-)
---
diff --git a/tests/functional-tests/test-extraction-data/audio/audio-test-1.expected.json 
b/tests/functional-tests/test-extraction-data/audio/audio-test-1.expected.json
index f569c8cd2..f8db9f60b 100644
--- a/tests/functional-tests/test-extraction-data/audio/audio-test-1.expected.json
+++ b/tests/functional-tests/test-extraction-data/audio/audio-test-1.expected.json
@@ -15,6 +15,19 @@
         "nfo:channels": "1",
         "nfo:duration": "15",
         "nfo:sampleRate": "22050",
-        "nfo:averageBitrate": "32000"
+        "nfo:averageBitrate": "32000",
+        "nmm:mbTrackID": "123456",
+        "nmm:mbRecordingID": "456123",
+        "nmm:performer": {
+            "@type": "nmm:Artist",
+            "nmm:artistName": "AbBaby",
+            "nmm:mbArtistID": "234561"
+        },
+        "nmm:musicAlbum": {
+            "@type": "nmm:MusicAlbum",
+            "nie:title": "SinCos",
+            "nmm:mbReleaseGroupID": "561234",
+            "nmm:mbReleaseID": "345612"
+        }
     }
-}
\ No newline at end of file
+}
diff --git a/tests/functional-tests/test-extraction-data/audio/audio-test-1.mp3 
b/tests/functional-tests/test-extraction-data/audio/audio-test-1.mp3
index bbd4c768d..2727f1209 100644
Binary files a/tests/functional-tests/test-extraction-data/audio/audio-test-1.mp3 and 
b/tests/functional-tests/test-extraction-data/audio/audio-test-1.mp3 differ
diff --git a/tests/functional-tests/test-extraction-data/audio/audio-test-2.expected.json 
b/tests/functional-tests/test-extraction-data/audio/audio-test-2.expected.json
index a464ca4c4..0818e0ca7 100644
--- a/tests/functional-tests/test-extraction-data/audio/audio-test-2.expected.json
+++ b/tests/functional-tests/test-extraction-data/audio/audio-test-2.expected.json
@@ -13,6 +13,18 @@
         "nfo:codec": "MPEG",
         "nfo:channels": "2",
         "nfo:sampleRate": "44100",
-        "nfo:averageBitrate": "256000"
+        "nfo:averageBitrate": "256000",
+        "nmm:mbTrackID": "123456",
+        "nmm:mbRecordingID": "456123",
+        "nmm:performer": {
+            "@type": "nmm:Artist",
+            "nmm:artistName": "Anna Abreu",
+            "nmm:mbArtistID": "234561"
+        },
+        "nmm:musicAlbum": {
+            "@type": "nmm:MusicAlbum",
+            "nmm:mbReleaseGroupID": "561234",
+            "nmm:mbReleaseID": "345612"
+        }
     }
-}
\ No newline at end of file
+}
diff --git a/tests/functional-tests/test-extraction-data/audio/audio-test-2.mp3 
b/tests/functional-tests/test-extraction-data/audio/audio-test-2.mp3
index d8a176f72..da92a0b2e 100644
Binary files a/tests/functional-tests/test-extraction-data/audio/audio-test-2.mp3 and 
b/tests/functional-tests/test-extraction-data/audio/audio-test-2.mp3 differ


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