EbbLabs/python-tidal

Feature request: Add BARCODE/UPC, genre, url for tidal tracks

Closed this issue ยท 14 comments

Hello!
mentioning exislow/tidal-dl-ng#176 here.
it seems there are missing tags for tracks from Tidal using this API.
BARCODE/UPC
GENRE
URL
If Tidal supports those tags, would be nice to have those available.
Thanks

Some of the above (barcode) requires the v2 openapi endpoints so currently not available.

With URL, I assume you are referring to the URLs available in externalLinks? Otherwise, albums, artists etc. have all got URLs available so these should be added by the 3rd party library.

IIRC, genre is not available anywhere.

Hey thanks for the answer.
wow Genre is not available for tracks? it's the most basic tag anywhere I see.
Yeah, URL tag is the release store page link.

For example, Ice Spice Y2K! album, each track should have URL tag and the value is https://tidal.com/browse/album/378821868 .

I hope Barcode/UPC will be available soon!
KR

any news about this?

Well, URLs are already available for each track so that should be straight forward to use.

I have not had time to look into adding barcode/UPC support sorry.

thanks
whenever you have time no worries ๐Ÿ˜‰

Unfortunately, there is currently no way to get the genre information of a track, through the API.

The source file you are linking to is related to parsing items of the "/genres" endpoint that you can find when browsing tidal can can not be used for this.

Hey there!
How are we on BARCODE/UPC additions?

BARCODE/UPC is in the json object "upc". I tested it and it works.

tests/test_album.py

@@ -47,6 +47,7 @@
     assert album.release_date == datetime.datetime(2011, 9, 22)
     assert album.available_release_date == datetime.datetime(2011, 9, 22)
     assert album.copyright == "Sinuz Recordings (a division of HITT bv)"
+    assert album.upc == "3610151683488"
     assert album.version == "Deluxe"
     assert album.cover == "30d83a8c-1db6-439d-84b4-dbfb6f03c44c"
     assert album.video_cover is None

tidalapi/album.py

@@ -62,6 +62,7 @@
     tidal_release_date: Optional[datetime] = None
     release_date: Optional[datetime] = None
     copyright = None
+    upc = None
     version = None
     explicit: Optional[bool] = True
     universal_product_number: Optional[int] = -1
@@ -124,6 +125,7 @@
         self.num_videos = json_obj.get("numberOfVideos")
         self.num_volumes = json_obj.get("numberOfVolumes")
         self.copyright = json_obj.get("copyright")
+        self.upc = json_obj.get("upc")
         self.version = json_obj.get("version")
         self.explicit = json_obj.get("explicit")
         self.universal_product_number = json_obj.get("upc")

BARCODE/UPC is in the json object "upc". I tested it and it works.

@RyanThaDude Welcome and cheers for the suggestion. I have now added it in #317

Unfortunately, there is no way to add album genre it seems...

@orbittwz Sorry for taking a while on this one. Hoping to get a bit more time working on python-tidal the next few weeks.

still waiting ๐Ÿ‘

@orbittwz Check the additions in #317. If there are other suggestions, please add them to a separate issue.

so added but not released yet... got it

so added but not released yet... got it

No :( I have not had time to prepare the next release as I want to include ALL the recent additions + some new features. But next release should be ready very soon (1-2 weeks). ๐Ÿ‘