sigma67 / ytmusicapi

Unofficial API for YouTube Music
https://ytmusicapi.readthedocs.io
MIT License
1.76k stars 209 forks source link

Library search songs have missing properties #669

Open MarkhorDev opened 4 weeks ago

MarkhorDev commented 4 weeks ago

Describe the bug When using search with a library scope, duration and year are always None, and duration_seconds is not present. The documentation does not mention this anywhere, so I am assuming it is a bug. However, the information is also not visible on ytm when searching the library, so I am not sure if it is even possible for this information to be given. If the latter, I think this should be added to the docs.

To Reproduce Steps to reproduce the behavior:

  1. Search with scope as library and filter as songs
  2. Check first result for duration or year properties

Additional Information ytmusicapi version: 1.8.2 Request response: {'category': None, 'resultType': 'song', 'title': 'Thinking About You', 'album': {'name': 'Pablo Honey', 'id': 'MPREb_DciERiuADkS'}, 'videoId': '2jsPEOiMNaA', 'videoType': 'MUSIC_VIDEO_TYPE_ATV', 'duration': None, 'year': None, 'artists': [{'name': 'Radiohead', 'id': 'UCr_iyUANcn9OX_yy9piYoLw'}], 'isExplicit': True, 'thumbnails': [{'url': 'https://lh3.googleusercontent.com/U7k2oSmy45dhhj8ACdsUr1hQAvoY1IcOlHI_ZwU2rckJte1UEcTyrBUPUGr6Q-HT9-zeY0BwJ05xlOOJ=w60-h60-l90-rj', 'width': 60, 'height': 60}, {'url': 'https://lh3.googleusercontent.com/U7k2oSmy45dhhj8ACdsUr1hQAvoY1IcOlHI_ZwU2rckJte1UEcTyrBUPUGr6Q-HT9-zeY0BwJ05xlOOJ=w120-h120-l90-rj', 'width': 120, 'height': 120}]}