Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 5 of 5
  1. #1
    Senior Member
    Join Date
    Dec 2009
    Location
    Oakville,Ontario,CA
    Posts
    207

    Classical Music tagging from Discogs - script offer

    I've spend some effort on a perl script to tag classical flac albums from Discogs. There is a large amount of high quality classical releases on Discogs, often for larger releases.
    See this for example

    I've tried tagging software on Linux - beets, picard, puddletag - there was always something missing to what I needed. So I've wrote my own script.

    Script has the following features:
    1. uses discogs release number (--get)
    2. works with album directory, including multi volume (--set)
    3. defaults to display mode, update needs to be forced (--update yes)
    4. populates a set of classical tags
      1. Composer
      2. Multi Artist
      3. Work
      4. Title
      5. Album
      6. Track no
      7. Year
      8. Label
      9. Label Catalog No.
      10. Discogsid
      11. Genre
    5. renames files using trackno.work-title
    6. handles index and headings for composition identification
    7. handles credits at index or credits section of discogs
    8. handles multi volume sets when tracks numbers are as per discogs spec, example 1-2, 1-2...5-1,5-2 etc.
    9. assigns custom roles if required, for example, piano role of Vladimir Ashkenazy is written as Ashkenazy Vladimir (pf)
    10. formats Artist names as Lastname Firstname, except for some roles as orchestra, chorus, ensemble


    There are number of limitations:
    1. processes only flac
    2. runs on linux, although should run with some changes on windows
    3. original tracks require 2 tags : track number and volume
    4. multi volume files need to be split into sub directories either named "CD number" or "VOL number"
    5. csv file to translate discogs roles to custom roles


    This script is by no means complete, it relies on standardised discogs releases. At times I found myself correctng discogs releases to get my script working, for example adding "composed by" credit (why would anybody miss that for classical music ?).
    I still use puddletag to finish the tagging, especially for Genre, Album Name and Opera (discogs standard for Opera is not what I use), but majority of time consuming tags are correct.

    Script is not modular as LMS perl is and is far, far from professional coding standards. It's mostly hard coded as I find it easier to adjust to ever changing discogs and my needs.

    If there is an interest, I can share the script with LMS community, especially classical users might find it useful, familiarity with perl is pretty much required.

    See attached zip file.

    Please start with

    ./get_discogs.pl -h
    Attached Files Attached Files
    Last edited by matka; 2021-09-08 at 05:02. Reason: typos
    George

    Touch->Denon AVRS530BT ->Triangle Celius
    Synology->Duet->Denon AVRS530BT->Paradigm Monitor 7
    2 Duets, 1 SB3, 1 Touch, Transporter, Chromecasts
    Zenphone -> NAD Viso, Sony WH1000XM3
    2 servers -> Ubuntu Linux, NUC and Synology 1 Bay

  2. #2
    Member
    Join Date
    Jun 2007
    Location
    Paris, France
    Posts
    92
    Quote Originally Posted by matka View Post
    I've spend some effort on a perl script to tag classical flac albums from Discogs.
    [...]
    If there is an interest, I can share the script with LMS community, especially classical users might find it useful, familiarity with perl is pretty much required.
    Definitely interesting! Please share it.

  3. #3
    Senior Member
    Join Date
    Aug 2009
    Posts
    395
    I'm interested, though in all these years I've never managed to learn enough Perl to debug a script.

    What about MusicBrainz as an additional source?

  4. #4
    Senior Member
    Join Date
    May 2005
    Location
    Huby, York, UK
    Posts
    223
    Did this script ever get shared? I'd be interested.

    Thanks,

    R.
    Net-UDAP is free software - you do not have to pay for it.
    However, if you found it useful, please consider donating:
    https://paypal.me/RobinBowes

  5. #5
    Senior Member
    Join Date
    Dec 2009
    Location
    Oakville,Ontario,CA
    Posts
    207

    Sorry I went away...

    I've got busy with other things and did not frequent the forum, sorry about that.

    I have moved away from using discogs as a source of metadata, with rare exceptions, as discogs schema does not support Classical Music plus Discogs is not curated in an effective way.
    I can't have multiple definitions of a Composer Work for example, each time with a different spelling, I need a database that is curated and has a schema that support complex data relationships.

    But musicbrainz.org does have it. I've learned a great deal about musicbrainz.org, did a lot of scripting and I'm happy with results.

    I will have a separate post where I offer a Tagging Service. See https://forums.slimdevices.com/showt...agging-Service

    I still have the discogs scripts, let me test them and package them in a zip and I will attach the file shortly.

    Posted the script in the top messages.
    Last edited by matka; 2021-09-08 at 05:05. Reason: updates re posted script
    George

    Touch->Denon AVRS530BT ->Triangle Celius
    Synology->Duet->Denon AVRS530BT->Paradigm Monitor 7
    2 Duets, 1 SB3, 1 Touch, Transporter, Chromecasts
    Zenphone -> NAD Viso, Sony WH1000XM3
    2 servers -> Ubuntu Linux, NUC and Synology 1 Bay

Posting Permissions

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