Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Browse Artists and Albums #47

Merged
merged 3 commits into from
Aug 1, 2014
Merged

Conversation

felixb
Copy link
Contributor

@felixb felixb commented Jul 27, 2014

Let user browse the existing/cached library.
No network IO calls done during browse.

Directory Structure:

  • Google Music
    • Albums
      • Tracks
    • Artists
      • All Tracks
        • Tracks
      • Albums
        • Tracks

TODO:

  • fix sorting albums, e.g. disc_no
  • use _lookup_*() to reduce code duplication and show aa content

Let user browse the existing/cached library.
No network IO calls done during browse.

Directory Structure:

* Google Music
  * Albums
    * Tracks
  * Artists
    * All Tracks
      * Tracks
    * Albums
      * Tracks
@coveralls
Copy link

Coverage Status

Coverage decreased (-2.36%) when pulling 0e9c030 on felixb:browse-library into 5167a43 on hechtus:develop.

logger.warning('Unable to fetch album: %s', str(uri))
album = self.albums[uri]
tracks = []
for track in self.tracks.values():
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to use _lookup_album() here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it does yes. I'll let you change/test that before I merge.

@abarreir
Copy link
Contributor

Looks good, although I'm not able to see all access albums under gmusic:albums or gmusic:artists:artist_id, but this is due a choice I made back when I implemented support for all access.

I'll fix that in another issue.

@felixb
Copy link
Contributor Author

felixb commented Jul 27, 2014

I think, this is related to my comment above. Using _lookup_*() should show even aa content.
I'll try this after finishing the browse genre thing.

@felixb felixb mentioned this pull request Jul 28, 2014
Include AA content for browsing.
Global album list is still without any AA content.
Browsing an artist which is available on AA shows all albums of artist.
@felixb
Copy link
Contributor Author

felixb commented Jul 28, 2014

I have another patch for browsing genres as well.
Would you like me to include it here or open a second PR?

@hechtus
Copy link
Contributor

hechtus commented Jul 28, 2014

Hi, first of all, thank you for the hard work! I would suggest a new pull request for this.

@coveralls
Copy link

Coverage Status

Coverage decreased (-2.41%) when pulling 1d4211d on felixb:browse-library into 5167a43 on hechtus:develop.

@hechtus
Copy link
Contributor

hechtus commented Jul 28, 2014

Please have a look at the travis build. Always try to fix the flake8 errors. You may run flake8 on your own to check your code.

https://travis-ci.org/hechtus/mopidy-gmusic/jobs/31018034

@felixb
Copy link
Contributor Author

felixb commented Jul 28, 2014

Can you please help me with this one. I just don't get it:

./mopidy_gmusic/library.py:167:21: E126 continuation line over-indented for hanging indent

@hechtus
Copy link
Contributor

hechtus commented Jul 28, 2014

@coveralls
Copy link

Coverage Status

Coverage decreased (-2.41%) when pulling 1c6774b on felixb:browse-library into 5167a43 on hechtus:develop.

@felixb felixb mentioned this pull request Jul 28, 2014
6 tasks
@abarreir abarreir merged commit 1c6774b into mopidy:develop Aug 1, 2014
abarreir added a commit that referenced this pull request Aug 1, 2014
@lcvisser
Copy link

lcvisser commented Sep 7, 2014

I can only see some albums (16 at the moment). Those ones show up fine (correct track listing, etc.), but I have many more albums in my Google Music library. Is there some limiting in effect?

@felixb
Copy link
Contributor Author

felixb commented Sep 7, 2014

mopidy shows a huge number of albums for me:

$ mpc ls Google\ Music/Albums | wc -l
443

@lcvisser
Copy link

lcvisser commented Sep 8, 2014

$ mpc ls Google\ Music/Albums | wc -l
16

I have many more than 16. I can't find a pattern in those that are listed either: for some multi-disc albums, only one is listed, for some others all are there; for some artists only one album is listed, for some more.

@lcvisser
Copy link

lcvisser commented Sep 9, 2014

Would it be better if I opened a new issue for this?

@felixb
Copy link
Contributor Author

felixb commented Sep 9, 2014

I'd think so. You might link this issue for better understanding.

@lcvisser lcvisser mentioned this pull request Sep 9, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants