Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Some queries seem to be missing the first letter in their nid #555

Open
scj643 opened this issue May 26, 2017 · 5 comments
Open

Some queries seem to be missing the first letter in their nid #555

scj643 opened this issue May 26, 2017 · 5 comments

Comments

@scj643
Copy link

scj643 commented May 26, 2017

So far I have noticed this with search results. A track result the nid will be missing the leading T
Same goes for artists

@simon-weber
Copy link
Owner

Huh. Are they still store tracks? Or are you seeing some new kind of track? Can you post a few example ids?

@simon-weber
Copy link
Owner

It looks like this comment may have noticed the same thing: #358 (comment).

@scj643
Copy link
Author

scj643 commented May 28, 2017

s = SearchResults(query='Audioslave')
p=s.results['playlist_hits']
g=p[0]
p=api.get_shared_playlist_contents(share_token=g['playlist']['shareToken'])
c=p[0]
k=c['track']
s=Song(k)
s._dict['nid']
'q2pi5znqumpbakzyia4d6wabsq'
g=api.get_track _info(store_track_id=t._dict['storeId'])
t._dict['albumId'].startswith('B')
False
g['albumId']
'Brx6cfl4cnd47vi5fuwu7nozzwu'
t._dict
``

    {'album': 'Audioslave',
     'albumArtRef': [{'aspectRatio': '1',
       'autogen': False,
       'kind': 'sj#imageRef',
       'url': 'http://lh3.googleusercontent.com/smWyGl1oLQE6vSh4UASDLmpYDt7aqTgc0jxbcZGoUIf018KHLeAZyoSp6C-7lQYpBYrrRDzYKy4'}],
     'albumArtist': 'Audioslave',
     'albumAvailableForPurchase': True,
     'albumId': 'rx6cfl4cnd47vi5fuwu7nozzwu',
     'artist': 'Audioslave',
     'artistId': ['4ii74rlqtoou3xego7kq2qlrwy'],
     'composer': '',
     'discNumber': 1,
     'durationMillis': '277000',
     'estimatedSize': '11116696',
     'explicitType': '2',
     'genre': 'Alt Metal',
     'kind': 'sj#track',
     'nid': 'abda5tzj2oc2swipsw2znml3sq',
     'primaryVideo': {'id': 'vVXIK1xCRpY',
      'kind': 'sj#video',
      'thumbnails': [{'height': 180,
        'url': 'https://i.ytimg.com/vi/vVXIK1xCRpY/mqdefault.jpg',
        'width': 320}]},
     'storeId': 'Tabda5tzj2oc2swipsw2znml3sq',
     'title': 'Show Me How to Live',
     'trackAvailableForPurchase': True,
     'trackAvailableForSubscription': True,
     'trackNumber': 2,
     'trackType': '7',
     'year': 2002}

@JVMed
Copy link

JVMed commented May 29, 2017

Also sounds like #530, where some tracks are missing the leading T. Using 'storeId' instead of 'nid' has been working fine for me.

@scj643
Copy link
Author

scj643 commented Jun 1, 2017

Well wouldn't we want to make as little amount of API calls as we can

nithinphilips added a commit to nithinphilips/spotifyscrape that referenced this issue Mar 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants