Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,965

    [Announce] Band's Campout 1.5.0

    Now you can browse Bandcamp URLs directly. Just enter them in the corresponding menu (easiest in the web UI, obviously ;-)) to get access to bands or albums. Eg. fill in https://hrmnn.bandcamp.com/album/hermann and you'd directly browse the album Hermann by Hermann :-).

    This feature was contributed by Peter Oliver - thanks a lot!
    Michael

    http://www.herger.net/slim-plugins - Spotty, MusicArtistInfo

  2. #2
    Senior Member
    Join Date
    Nov 2015
    Location
    Near Buffalo, NY
    Posts
    102

    Any chance of...

    Any chance of splitting up 'My Collection' into 'Collection' and 'Wishlist'

    I'm a HUGE user of BandCamp, or at least I think I am...;-), and this would make it easier to gain access the 850+ items in my collection and 1800+ in my wish list.

    FYI, I was hoping I could use a direct URL feature to go to my wishlist https://bandcamp.com/meathead9999/wishlist, but it gave me a 'Sorry, we couldnĺt recognise that as a Bandcamp URL.' error

    A pagination setting for the number of items to list would be great also for large collections, so I could set it to (20 or a 100 if I want)

    And...maybe even a way of sorting these like the BandCamp app! (i.e. a-z, dated added descending, most played, history), but not sure if those are easily exposed.


  3. #3
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,965

    [Announce] Band's Campout 1.5.0

    > Any chance of splitting up 'My Collection' into 'Collection' and
    > 'Wishlist'


    v1.5.1 is on its way to you...

    --

    Michael

  4. #4
    Senior Member
    Join Date
    Nov 2015
    Location
    Near Buffalo, NY
    Posts
    102
    OMG!!! This is AWESOME!!!! THANK YOU, THANK YOU, THANK YOU!!!

    Apparently I missed the notification from the forum when you posted this AND I haven't tried using the Band's Campout app in a while...had alot more time around the Christmas/New Year's holiday to explore

    Anyway, JUST went into the app and holy smoke - this is FANTASTIC Michael!

  5. #5
    Senior Member
    Join Date
    Nov 2015
    Location
    Near Buffalo, NY
    Posts
    102
    Thanks again for your work on this Michael. Even in it's current state, it's much improved from what was...except...

    I started exploring and realized it's only showing 45 items of each - collection, wishlist, bands, fans, and followers.

    Since I have a pretty large collection (861), and a wishlist of almost 2000 items - I was hoping to also have a 'prev' & 'next' to allow paging through.

    I can't figure out what it's currently pulling down. Looking at my wishlist in LMS, the 45 album titles are sorted from A-Z, but they also RANGE from A-Z?!
    So if the plugin is pulling down the first 45 albums sorted by title, there is no way I would see albums with 'Z' titles!

    What I envisioned was having settings on the plugins page that would allow you to set:

    • pagination size (enter you own number -or- if easier for you something like 50, 100, 200, 400, All)
    • A separate sort method for each Collection & Wishlists - The standard BandCamp app methods are (A-Z, date added, most played, history)

    Not sure if these sort methods are exposed to other developers or not, but
    the I personally use these the most:

    • Collection (play history)
    • Wishlist ('date added')


    Hoping for a v1.5.2

    EDIT:
    Rather than having to 'set' a sort method, how about a flyout for each under Collection & Wishlist?
    That way a user doesn't have to possibly keep changing it to their liking during any given listen session!
    Last edited by markm9999; 2018-02-17 at 23:21.

  6. #6
    Senior Member
    Join Date
    Nov 2015
    Location
    Near Buffalo, NY
    Posts
    102
    Michael,

    Okay, I found that a simple wget only retrieves 45 items...but so does a web browser. There is a button at the bottom that will enable you to ultimately view all the items, depending on the page you're currently visiting. What I can tell you is the site doesn't get them all at once either. As you scroll down it 'shows' another group of 45-50(?) or so and the scroll bar just keeps jumping until you reach the end of the web page listing.

    The good news (as far as I'm concerned) is that the items are already in 'date added' order, so leaving the list UNSORTED should result in them being presented this way with no effort.

    I'm also not a 'Perl Guy' , but I tried to do some hacking about in Scraper.pm by removing the 'sort' at line 88-89, and in Plugin.pm at lines 303 & 308 by adding dontSort => 1. This did cause something to happen - the results are no longer sorted but they are not in the same order as a 'wget' either. I'm sure I did something wrong.

    So, it would seem to me a quick fix for testing is to have a fly-out under 'Collection' and 'Wishlist' that say something like 'unsorted = date added', and if possible 'sorted = A-Z by Artist-Album', and , 'sorted = A-Z by Album Title', and for 'Followers' and 'Following' just 2 - 'unsorted = date added', 'sorted = A-Z'.

    Once that is working, fixing the issue of getting all the content would be next - how to fix that issue, I'm clueless. Someday I hope to gain a better understanding of how exactly all this code works, because I absolutely love the platform.

    I'm sure the pagination is a more complex issue, so I understand if it just goes on a 'wish list' for now...

    Thanks again for all your work in maintaining this community and helping it continue to thrive!

    Mark

  7. #7
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,965

    [Announce] Band's Campout 1.5.0

    Thanks for looking into this already. I hope to find some time, soon.
    Your analysis already gives me a good starting point.

    --

    Michael

  8. #8
    Senior Member
    Join Date
    Nov 2015
    Location
    Near Buffalo, NY
    Posts
    102
    Thanks Michael!

  9. #9
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,965

    [Announce] Band's Campout 1.5.0

    Ok, I think I've figured it out. Their web page is excellent for this
    kind of work. Almost all data is fetched by some API call :-).

    https://bandcamp.com/api/fancollection/1/followers
    https://bandcamp.com/api/fancollecti...ollowing_bands
    https://bandcamp.com/api/fancollection/1/following_fans
    https://bandcamp.com/api/fancollection/1/wishlist_items
    https://bandcamp.com/api/fancollecti...llection_items

    Just the parameters I still need to figure fully out. They use some
    token for the paging which seems to be timestamp based, but isn't really...

    --

    Michael

  10. #10
    Senior Member
    Join Date
    Nov 2015
    Location
    Near Buffalo, NY
    Posts
    102
    I guess I didn't dig far enough, because I didn't see those API's listed on this page:


    And looking again, I still don't see them. Where did you find them?!

    For completeness of this thread, if you could post a link to the 'fancollection' API info, that would be awesome!

    EDIT:
    By this, I assume this means you won't have to actually do a screen scrape anymore too!
    Last edited by markm9999; 2018-02-23 at 00:00.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •