#beets

/

      • muchomoc_ joined the channel
      • muchomocos has quit
      • Kabouik has quit
      • ojdo has quit
      • ojdo joined the channel
      • Vacuity joined the channel
      • Vacuity_ has quit
      • samj1912 joined the channel
      • Miblo has quit
      • Miblo joined the channel
      • beat joined the channel
      • samj1912 joined the channel
      • Miblo_ joined the channel
      • Miblo has quit
      • Miblo_ is now known as Miblo
      • Vacuity_ joined the channel
      • Vacuity has quit
      • hrehf joined the channel
      • feee has quit
      • the-solipsist has quit
      • the-solipsist joined the channel
      • hrehf has quit
      • hrehf joined the channel
      • hrehf has quit
      • hrehf joined the channel
      • hrehf has quit
      • hrehf joined the channel
      • afics has quit
      • afics joined the channel
      • hrehf has quit
      • hrehf joined the channel
      • hrehf_ joined the channel
      • polemic is now known as bratmobile
      • bratmobile is now known as polemic
      • SuperSeriousCat
        Using the export plugin to write basic stuff like artist, album, catalog etc to a .txt file. Have not managed to get it to only output the info once. It seem to be same json data copy pasted per song
      • Anyone got any tip to only make it export the info once?
      • polemic
        | uniq -u?
      • SuperSeriousCat
        At the end?
      • polemic
        I have no idea if that will work
      • but piping to uniq -u should print only uniq lines
      • you might be better off getting the file with all the dupes
      • and then doing cat yourfile.txt | uniq -u
      • and see if it fixes it
      • SuperSeriousCat
        That did not fix it
      • polemic
        you did and then doing cat yourfile.txt | uniq -u ?
      • SuperSeriousCat
        Only did cat info.txt | uniq -u
      • polemic
        hmm
      • SuperSeriousCat
        The problem is I use it on album name. It cycles trough every song and get every info multiple times
      • polemic
        oh
      • did you try -a?
      • Freso
        SuperSeriousCat: Can you copy both 1) your `beet config` output, 2) the exact commands you're using, and 3) the output of the commands on a pastebin somewhere?
      • SuperSeriousCat
        -a did not work. Got an empty file
      • polemic
        I mean, you can do something dirty and quick like: touch file2.txt; cat file.txt | while read line; [[ $(grep -e "$line" file2.txt ]] || echo "$line" > file2.txt; done
      • whoops, there's already a ) bracket missing
      • and the > should be >>
      • polemic is bad at this
      • SuperSeriousCat
      • Beets only got controll on one album so went with artist name
      • Freso
        SuperSeriousCat: Right. You're querying over tracks, so it will give a result back for each track. You will want to query albums only.
      • SuperSeriousCat
        polemic, it is so long and messy :P
      • Ye. Imagine track name will give lots of dupes once everything is imported
      • polemic
        welcome to shell script, hon
      • Freso
        SuperSeriousCat: When you query beets like that, it doesn't know in advance that e.g., format, bitdepth, and samplerate aren't different for each track.
      • (Also, original_year may also be different per-track depending on implementation.)
      • SuperSeriousCat
        I use MB only. Is it a problem there? Thought it went with the release earliest registred on the group to get the year
      • Freso
        export doesn't seem to have an --album flag: https://beets.readthedocs.io/en/latest/plugins/...
      • SuperSeriousCat: It's not a problem. But there's at least a Picard plug-in in development to look up each Recording's earliest release date, and not just the Release's earlier release date.
      • I'm just noting that while you're seeing duplicate, that query has 3/4 fields that are not uniquely tied to their album/Release.
      • (The plugin might be useful for e.g., https://musicbrainz.org/release/2a6dc888-b5c2-4... which was originally/only released in 2011, but track 1 was first released in 2009 and almost all other tracks were also released years before the compilation.)
      • sec^nd has quit
      • SuperSeriousCat
        Happend to know what API call beets use to get original-year data? http://musicbrainz.org/ws/2/release-group/c1b58...
      • Can add after inc= with a + at the end before releases
      • Freso
        SuperSeriousCat: beets by default just gets the earlier release date in the Release Group.
      • *earliest
      • Getting the earliest date per-Recording requires a bunch of /ws/ calls.
      • But I'm hoping to port/have ported the Picard plugin for the Recording-earliest-date to beets.
      • SuperSeriousCat
        Ah. so this one first-release-date":"2011-05-16"
      • Are you working on Beets or is this a plugin you are working on?
      • Freso
        I'm not sure how to answer that. :)
      • I've made patches to beets before. I'm not related to the plugin, other than providing support for it on the MetaBrainz forums.
      • SuperSeriousCat
        Did not know MB had a forum. Edited a big(in my eyes) number of release there. Discogs dont get me the original year so use MB only
      • Mostly imports using a script I got on github. Or more detailed song info if I own the booklet
      • Freso
      • SuperSeriousCat
        Back to my question. Possible to export an album and only get the data once? :P Like the idea of a pipe to get it in a one-line
      • r
      • polemic
        did you pastebin the output?
      • SuperSeriousCat
      • polemic sighs
      • Output is in a file
      • polemic
        a pastebin which requires javascript
      • SuperSeriousCat
        :P
      • polemic
        next time use a not rubbish one like pate.debian.net
      • SuperSeriousCat
        I like this one. The data gets deleted after 1 day
      • polemic
        can choose a custom delete time on debian, and it doesn't require people to enable a potential route to get their system owned
      • SuperSeriousCat look at the side and notices all the pastes other made you can look at freely on the left side...
      • SuperSeriousCat
        You can enable JS per site if the plugin is any good
      • polemic
        you can choose to make a private paste on paste.debian.net
      • Freso
        SuperSeriousCat: You're assuming it's a plugin and not a browser setting. :)
      • SuperSeriousCat
        Ok. But lets not fight over paste/browser setting preferences
      • polemic
        if you've only got the one album
      • | head -13 ?
      • will give you the first 13 lines
      • simukis__ joined the channel
      • SuperSeriousCat
        Adding it to the end did not alter anything
      • simukis__ joined the channel
      • polemic
        your beet cmd && cat info.txt | head -13 > realinfo.txt
      • SuperSeriousCat
        It did its thing and gave me the info in the info.txt down to year in terminal. The file is untouched tough
      • Freso
        I would probably just feed it to some JSON parser and return/output the first entry.
      • SuperSeriousCat: But as I said before: :47:31 F<Freso> export doesn't seem to have an --album flag: https://beets.readthedocs.io/en/latest/plugins/...
      • So what you might want to do first is look through beets issues to see if there are any issues for adding such a flag. (I think there might be, but I haven't used export, so I also haven't had a lot of interest for issues with it. :))
      • If you can't find one, make one.
      • Then you can work on a workaround until that is fixed.
      • (There might even be one given in the issue comments.)
      • SuperSeriousCat
        Only know the basics of Python so cant do it myself
      • Freso
        I didn't tell you to.
      • simukis__ joined the channel
      • hrehf has quit
      • simukis_ joined the channel
      • SuperSeriousCat
        Maybe I should write an issue on the github if there i none there... And one for copyartfacts not being Python3 compatible on their github
      • simukis_ has quit
      • simukis_ joined the channel
      • Freso
        SuperSeriousCat: ... That's what I just asked you to do.
      • SuperSeriousCat
        Know...
      • Trauma joined the channel
      • stevejohnson joined the channel
      • Trauma has quit
      • Trauma joined the channel
      • sec^nd joined the channel
      • NOTICE: [beets] discopatrick opened issue #2506: Extend the query date parser with (optional) times [new feature] https://github.com/beetbox/beets/issues/2506
      • Trauma has quit
      • stevejohnson has quit
      • stevejohnson joined the channel
      • stevejohnson has quit
      • xarph
        offtopic: I was taking about beets in another channel and got the phrase "I'm kind of disturbed that I was more interested when I thought xarph was saying that a CS professor at Cornell was a hobbyist beet farmer."
      • sampsyo you need new business cards
      • Trauma joined the channel
      • stevejohnson joined the channel
      • sjk
        I have a whole bunch of .wma files in my music collection and they're causing playback trouble in some players
      • sjk ponders on converting to flac
      • hrehf_ has quit
      • hrehf joined the channel
      • albertus1 joined the channel
      • darwin
        ... converting... lossy... to.. flac..
      • sjk
        I realised that was a silly idea, so I'm experimenting converting to .ogg :)
      • albertus1 has quit
      • Trauma has quit
      • hrehf has quit
      • stevejohnson has quit
      • stevejohnson joined the channel