Greasemonkeys » Discussions

Last.fm Playlist and Tag Manager

 
  • Last.fm Playlist and Tag Manager

    Hi everyone,

    This is the support thread for my Last.fm Playlist and Tag Manager script, available at http://userscripts.org/scripts/show/32963. It has these features:
    • Complete playlist/tag management: create, add, copy, merge, convert and delete.
    • Export tracks to tab-separated text output.
    • Import tracks in one go rather than searching for and adding them one-by-one.

    All details, the source and screen shots are available at the link mentioned above. To install the script, please go to http://userscripts.org/scripts/source/32963.user.js

    I have a to-do list of things I'm thinking about adding to it. If you find bugs or have comments or special requests, please let me know!

    Maarten

    Try my Last.fm Greasemonkey scripts at http://userscripts.org/users/64961/scripts
    Edited by maarten_gm on 29 Mar 2009, 02:37
  • This is really amazing! Added now. Thanks! :)

  • I'm not a playlist guy, but this looks interesting!

  • Updated version 1.6 and a new name!

    I've posted an update to this script, which required a script name change. It's now called Last.fm Playlist and Tag Manager. It now offers complete playlist and tag management: create, add, copy, merge, and convert. Export tracks to tab-separated text output. Import tracks in one go rather than having to search for and add tracks one-by-one.

    Here's what changed:
    - changed script name
    - made script runnable on localized Last.fm sites too
    - made script appear on those pages it's needed (rather than only on playlist page)
    - created specific import/export sections
    - added all playlist options to tags as well including the ability to turn playlist into tag
    - added export tracks option
    - added black/red skin support

    If you're upgrading from Last.FM Playlist Generator, v1.5 or earlier, please uninstall the old version via Tools->Greasemonkey->Manage User Scripts...
    Select Last.FM Playlist Generator and press the Uninstall button.
    Then, if you haven't already, install the new Last.fm Playlist and Tag Manager script.

    Enjoy!

    Maarten

    Try my Last.fm Greasemonkey scripts at http://userscripts.org/users/64961/scripts
  • Updated version 1.7

    I've posted an update to this script. Please uninstall any old versions before installing the latest version.

    Here's what changed:
    - add export options to group charts
    - add export options to similar tracks
    - add export options to tagged tracks
    - add export options to user charts
    - add progress indicator for lengthy operations
    - keep output area scrolled to last line

    For a full description, the script source, to view a screen shot, or to install, please visit: http://userscripts.org/scripts/show/32963.

    Maarten

    Try my Last.fm Greasemonkey scripts at http://userscripts.org/users/64961/scripts
  • Last.fm Playlist and Tag Manager v1.8

    I've posted an update to this script. Please uninstall any old versions before installing the latest version.

    Here's what changed:
    - fixed a customer-reported issue for tracks which URL contains "+redirect" that caused the script to fail
    - get closer to JSLint compliance

    For a full description, the script source, to view a screen shot, or to install, please visit: http://userscripts.org/scripts/show/32963.

    Maarten

    Try my Last.fm Greasemonkey scripts at http://userscripts.org/users/64961/scripts
  • Last.fm Playlist and Tag Manager v1.9

    I've posted an update to this script. Please uninstall any old versions before installing the latest version.

    Now really fixed the customer-reported issue; here's what changed:
    - AJAX request to fetch track ID sometimes returns empty string so just try again in that case
    - fix regular expression for matching track ID

    For a full description, the script source, to view a screen shot, or to install, please visit: http://userscripts.org/scripts/show/32963.

    Maarten

    Try my Last.fm Greasemonkey scripts at http://userscripts.org/users/64961/scripts
  • Last.fm Playlist and Tag Manager v1.10

    I've posted an update to this script. Please uninstall any old versions before installing the latest version.

    Here's what changed:
    - add delete of playlists and tags
    - add multi-page support
    - get closer to JSLint compliance

    For a full description, the script source, to view a screen shot, or to install, please visit: http://userscripts.org/scripts/show/32963.

    Maarten

    Try my Last.fm Greasemonkey scripts at http://userscripts.org/users/64961/scripts
  • Last.fm Playlist and Tag Manager v1.11

    I've posted an update to this script. Please uninstall any old versions before installing the latest version.

    Here's what changed:
    - fix display issues on Mac

    For a full description, the script source, to view a screen shot, or to install, please visit: http://userscripts.org/scripts/show/32963.

    Maarten

    Try my Last.fm Greasemonkey scripts at http://userscripts.org/users/64961/scripts
  • Last.fm Playlist and Tag Manager v1.12

    I've posted an update to this script. Please uninstall any old versions before installing the latest version.

    Here's what changed:
    - sort playlist/tag dropdowns alphabetically
    - make labels for radio buttons and checkboxes clickable
    - make script run on Firefox 2.x (customer reported issue)

    For a full description, the script source, to view screen shots, or to install, please visit: http://userscripts.org/scripts/show/32963.

    Maarten, who also has a new user icon.

    Try my Last.fm Greasemonkey scripts at http://userscripts.org/users/64961/scripts
  • Last.fm Playlist and Tag Manager v1.13

    I've posted an update to this script. Please uninstall any old versions before installing the latest version.

    Here's what changed:
    - fix script due to last.fm site updates

    For a full description, the script source, to view screen shots, or to install, please visit: http://userscripts.org/scripts/show/32963.

    Maarten

    Try my Last.fm Greasemonkey scripts at http://userscripts.org/users/64961/scripts
    • IanAR said...
    • User
    • 7 Jul 2009, 12:42

    v1.13 - Limited Number of Tag Names Imported Alphabetically

    Hi Maarten - I think you came by to count my tags recently.

    I just used v1.13 to merge best of 2008 and best of 2009, to make best of 2008-9 :)

    However, following the "Example: merge playlists/tags" notes, I was not able to pick source tags, 'cause the ones I wanted were not in the tiny fraction of tag names the script imported. Instead, I got the job done by exporting, copy/pasting between screens and importing, repeatedly.

    Whist a complete fix is impracticable, you may wish to elaborate the notes, as above. Partial fix wise, I'd be better to see top tags by count or usage (those in the cloud view), in the list of source / import options.

    BTW: I'd love the have a fully set of boolean operations supported by the 'merge' functionality. The current is a boolean-OR, just the addition of an AND whould be amazing, e.g. to make .

    Happily listening to my new tag, thanks! - Best, Ian

  • Re: v1.13 - Limited Number of Tag Names Imported Alphabetically

    Hi Ian,

    Thanks for letting me know of the inefficiencies in the script. The problem here is that you have many pages of tags, and I don't. I simply didn't realize the list would be paginated, and so the script only picks up the tags on the first page. That shouldn't be too hard for me to fix.

    As for the merge functionality, let me see if I understood your request correctly.

    Currently, Last.fm does not allow the same track in a list more than once, so even though the script requests to have all tracks added, the result is an "OR" of the two lists.
    For example, if list 1 has tracks A, B, C, and list 2 has tracks B, C, D, E, then the "OR" merge would result in list 3 with tracks A, B, C, D, E. (Not A, B, C, B, C, D, E.)

    But maybe you didn't mean that, you just want to be able to select two lists and merge them in such a way that the resulting list contains only those tracks that the two lists have in common?
    For example, taking list 1 and 2 from the example above, the "AND" merge would result in list 4 with tracks B, C. Is that what you meant?

    Maarten

    Try my Last.fm Greasemonkey scripts at http://userscripts.org/users/64961/scripts
    • IanAR said...
    • User
    • 26 Jul 2009, 18:40

    Boolean AND

    IanAR said:
    I'd love the have a fully set of boolean operations supported by the 'merge' functionality. The current is a boolean-OR, just the addition of an AND whould be amazing, e.g. to make .
    maarten_gm said:
    select two lists and merge them in such a way that the resulting list contains only those tracks that the two lists have in common?
    For example, taking list 1 and 2 from the example above, the "AND" merge would result in list 4 with tracks B, C. Is that what you meant?
    Hi again Maarten - You seem to have a handle on the tag-name limitations, though I'm not trying to demand all tag names are imported.

    Yep, a Boolean AND (or logical conjunction) results in only tracks that exist in both source lists / tags :) Best, Ian

  • Tag Management

    Hi, thanks for all of your work on this script. It is very useful and I am particularly interested in the tag part of the functionality.

    I had a couple of queries, I have been adding music without any genre tags, as they are incorrect at source (iTunes). As I only subscribed recently I don't have too much music in the library, but I want to tag what is there (I am just trying to figure out a system that suits me.)

    Is it fair to say that the tagging functionality is geared around the tags and playlist pages, for tracks that already are tagged or in a playlist. It occured to me that it would be really useful to have this script on the pages in the library that list the "plays" from albums. This way new tags could be added to tracks that do not have any.

    I am a bit surprised that the library lists artists and it seems a bit awkward to list the tracks in the library (clicking "* plays" is the only way I found to do it.) I don't suppose you have plans to add the script to these "play" pages?

    This would allow me to firstly export a list of tracks (again with no tags) and secondly add them to the "Search for and add the following tracks (one track per line):" field.

    The other thing I wondered whether it was possible to add some functionality to remove tags for a particular track before or during adding new tags? This would help where tracks have existing incorrect tags.

    Is there any other workaround or way to tag multiple tracks already in the library that do not have any tags yet?

    By the way, I am not a developer as you might have guessed, merely a humble and thankful user. Thanks again for your script, it is very useful!

    John.

  • Track Tag Workaround

    Hi, Since my last post I have realised that your script also exists on the track listings accessed through the charts. Exporting this to the tab separated list allows me to re-organise by album in Excel and then import to apply tags that generally suit the artist (or group of artists). Individual songs can be corrected as required.

    I think it would be handy to be able to tag artists which would result in all the tracks in your library taking the artists tags. I suppose this is particularly relevant if you are tagging by genre and maybe not for other sorts.

    This method allows me to tag tracks that have been added to the library without tags. If anyone has a better way please let me know!!

    Thanks again for a great script!

    John

  • Import one-track-per-line: broken? :(

    Unless I'm being a complete noob (which is possible), I can't get the multi-line import to work.

    For instance, if I pass in a list of 363 tracks, like this:

    Lady GaGa - Bad Romance
    Ke$ha - TiK ToK
    Lady GaGa - Poker Face
    Lady GaGa - Paparazzi
    <etc>

    When I click Start, the status window says:

    Processing...
    Read 363 lines containing NaN tracks.
    Tagging tracks...
    Parse error for track 1: Lady GaGa - Bad Romance
    Parse error for track 2: Ke$ha - TiK ToK
    Parse error for track 3: Lady GaGa - Poker Face
    Parse error for track 4: Lady GaGa - Paparazzi
    <etc>

    Whatever I do, or whatever I paste in, it always says "NaN tracks" and displays a parse error for every line. Can you please help?

    • K1MO said...
    • User
    • 6 Apr 2010, 10:29

    delete tags - not working

    hi maarten

    i was very happy to find out that you added tag deleting to your script. i instantly started my quest of getting rid of tags i dont want anymore.. the first deletions worked well but then after 3 or 4 tags the script stopped working. also i found out that the ones i thought got deleted were just reduced in number .. but not deleted.

    as i'm not a scripter i don't know what else information i could give / you might need to fix it .. ?

    in addition to all the nice functions your script gives i'm looking for renaming tags for a long time.. but didn't find any script or tool wich is able to do this .. do you think your script can be altered to do that, too? would be lovely :)

    thx for your work by now though!!

    cheers
    norman

    edit:
    i tried a bit more with tags that only have a count of 1. some got deleted.. others "finished" with "NaN% completed" .. not deleted.

  • Busy, busy

    Hi everyone,

    I apologize for being absent. I am rather busy nowadays which unfortunately prevents me from doing maintenance on this script for now. I hope to find some time in the next month or so to look at the issues reported and provide an update.

    Maarten

    Try my Last.fm Greasemonkey scripts at http://userscripts.org/users/64961/scripts
    • K1MO said...
    • User
    • 17 Apr 2010, 20:49

    Strange tagging instead of deleting tags

    hi maarten

    i kept on trying to delete tags .. and this had very strange effects. first of all, some deletions seemed to work but when i later revisited my tag page those tags reappeared. but the most odd behaviour is that my activity monitoring now says that i tagged tracks with tags i actually tried to delete with your script. that's really strange and i'll stop trying until you find time to have a look into it. maybe this feature should be taken off the script for now..?

    best
    norman

    • Skiye said...
    • Event Moderator
    • 2 Nov 2010, 17:50
    this script will prove to be of even greater use in lieu of the recent update...

  • I am updating the script NOW; what do you need?

    Hi folks,

    I am greatly bummed by the news Skiye mentioned above and will spend this weekend capturing my own tags, playlists and loved tracks using my script.

    Luckily it still works for export purposes, but I'll be making some enhancements to the script to accommodate some of the issues people have run into (and reported in this discussion).

    If there's anything you'd like the script to do so you can successfully back up your track lists, let me know NOW. I'll be checking this discussion throughout the weekend but once the weekend is up, so will be my time to spend on it.

    Maarten

    Try my Last.fm Greasemonkey scripts at http://userscripts.org/users/64961/scripts
  • Last.fm Playlist and Tag Manager v1.16

    I've made some updates to the script today. Please uninstall any old versions before installing the latest version.

    Here's what changed:
    - v1.16: fix NaN bug in #tracks display for raw text input option, make v1.15 changes be supported by Firefox 2
    - v1.15: export now also exports tagged artists and albums
    - v1.14: add exporting banned tracks


    For a full description, the script source, to view screen shots, or to install, please visit: http://userscripts.org/scripts/show/32963.

    Maarten

    Try my Last.fm Greasemonkey scripts at http://userscripts.org/users/64961/scripts
  • Feedback for reported issues

    ----- LastBlog -----
    http://www.last.fm/group/Greasemonkeys/forum/35794/_/457538/_/11662742

    I fixed the NaN issue but cannot reproduce the parse errors. (I did notice searching for the tracks you showed resulted in different tracks or versions of the track to be added. The script just runs whatever you enter through Last.fm's search and grabs the top result. I cannot control that, but you may have better results when you put artist and track title between double quotes and maybe remove the dash.)


    ----- KIMO -----
    http://www.last.fm/group/Greasemonkeys/forum/35794/_/457538/_/12227108
    I could not reproduce your issue. Does it still occur? If so, can you let me know one of your tags you're trying to delete? I'll try to copy it into my own tag and try to delete it.


    Everyone else, sorry for not addressing your feedback, I'm focusing exclusively on export right now.

    Try my Last.fm Greasemonkey scripts at http://userscripts.org/users/64961/scripts
    • K1MO said...
    • User
    • 7 Nov 2010, 14:22
    hi maarten

    thx for getting back to us :)

    unfortunately, as i said in my post earlier i never tried to delete using your script again. i'm really careful with my library so after what happened i was to afraid to mess something up again ;)
    maybe i'll have another brave moment and try again. i'll tell you whether it worked or not.

    cheers and keep it up!
    k1mo

Anonymous users may not post messages. Please log in or create an account to post in the forums.