beetbox / beets

music library manager and MusicBrainz tagger
http://beets.io/
MIT License
12.97k stars 1.83k forks source link

Re-import album track as singleton #2747

Open vijaymarupudi opened 7 years ago

vijaymarupudi commented 7 years ago

Problem

Running beet modify album::^$ singleton=<true/false> does not work. It always suggests to change to the value that it already was, ignoring user choice. I have tried all types of typing true and false, with capitals and quotes.

Also, running beet import -sq -L album::^$ does not important them as singletons.

Running this command in verbose (-vv) mode:

➜  $ beet -vv modify album::^$ singleton=false
user configuration: /home/ambientsinewave/.config/beets/config.yaml
data directory: /home/ambientsinewave/.config/beets
plugin paths:
Sending event: pluginload
library database: /chompsky/library/musiclibrary.db
library directory: /chompsky/library/files
Sending event: library_opened
Modifying 80 items.
009 Sound System -  - Dreamscape
  singleton: True
Aesop Rock -  - Daylight
  singleton: True
Afrojack -  - Ten Feet Tall (feat. Wrabel)
  singleton: True
Amon Amarth -  - Twilight Of The Thunder God
  singleton: True
Asura -  - Golgotha
  singleton: True
Ayla -  - Ayla (DJ Taucher Mix)
  singleton: True
Bill Withers -  - Ain't No Sunshine
  singleton: True
Black Lips -  - O Katrina!
  singleton: True
Bob Dylan -  - The Times They Are A-Changin'
  singleton: True
Buddy Miles -  - Them Changes
  singleton: True
Clams Casino -  - All I Need
  singleton: True
Clams Casino -  - I'm God
  singleton: True
Clams Casino -  - Numb
  singleton: True
deadmau5 -  - Polaris (Original Mix)
  singleton: True
deadmau5 -  - Snowcone
  singleton: True
Death Grips -  - The Fever (Aye Aye)
  singleton: True
Deep Purple -  - Smoke On The Water
  singleton: True
Eric Prydz -  - Opus
  singleton: True
Fleetwood Mac -  - The Chain
  singleton: True
Galantis -  - Kill ’Em With the Love
  singleton: True
Galantis -  - Runaway (U & I)
  singleton: True
Glenn Underground -  - City People
  singleton: True
Halou -  - Honeythief
  singleton: True
Halou -  - Stone Fruit
  singleton: True
Helvetic Nerds -  - Stormwatch (Chris Reece & Dinka Old Fashion Mix)
  singleton: True
Ibibio Sound Machine -  - Sunray (Eyio)
  singleton: True
Koda -  - Invitation to Love
  singleton: True
Koda -  - Leaving
  singleton: True
Koda -  - Staying
  singleton: True
Lana Del Rey -  - Summertime Sadness
  singleton: True
Macklemore & Ryan Lewis -  - Starting Over (feat. Ben Bridwell)
  singleton: True
Madvillain -  - Raid (ft. M.E.D.)
  singleton: True
Matt Lange -  - Sixty Six
  singleton: True
MF DOOM -  - Saffron
  singleton: True
Miss Peppermint -  - Let Me Hear The DJ
  singleton: True
Nathan Fake -  - Outhouse (Fluffy Mix)
  singleton: True
Nathan Fake -  - Outhouse (Original Mix)
  singleton: True
Of Monsters And Men -  - Dirty Paws
  singleton: True
Paul Oakenfold & Cassandra Fox -  - Touch Me (Perfecto Club Mix)
  singleton: True
Petter -  - All Together
  singleton: True
Ramin Djawadi -  - Light of the Seven
  singleton: True
Rihanna -  - We Found Love (feat. Calvin Harris)
  singleton: True
Safri Duo -  - Played-A-Live (The Bongo Song)
  singleton: True
Salt Tank -  - Pacific Diva
  singleton: True
Santana -  - Soul Sacrifice (live at Woodstock)
  singleton: True
Santana -  - Tales of Kilimanjaro
  singleton: True
Science Department -  - Repercussion (Original Mix)
  singleton: True
Sex Bob-Omb -  - Garbage Truck
  singleton: True
Sex Bob-Omb -  - Summertime
  singleton: True
Sex Bob-Omb -  - Threshold
  singleton: True
Sex Bob-Omb -  - We Are Sex Bob-Omb
  singleton: True
Soulforge -  - Dreamfast (Original Laidback Mix)
  singleton: True
Subliminal Cuts -  - Le Voie Le Soleil (Way Out West Summer Of Love Remix)
  singleton: True
Sylvan Esso -  - Coffee
  singleton: True
Synthek -  - Disambiguation
  singleton: True
Talaboman -  - Loser's Hymn
  singleton: True
The Avalanches -  - Because I’m Me
  singleton: True
The Doors -  - Light My Fire
  singleton: True
The Magician -  - I Follow Rivers (Lykke Li)
  singleton: True
The MFA -  - The Difference It Makes (Original Mix)
  singleton: True
The Rolling Stones -  - Paint It, Black
  singleton: True
The Samuel Jackson Five -  - Coalesce
  singleton: True
Tiësto -  - Chasing Summers
  singleton: True
Tiësto -  - Pair of Dice
  singleton: True
Tiësto -  - Paradise (Coldplay)
  singleton: True
Tiësto -  - Ten Seconds Before Sunrise
  singleton: True
Tiësto -  - Young Blood (The Naked and Famous)
  singleton: True
Tom Day -  - All For You
  singleton: True
Tom Day -  - Crystal Beach
  singleton: True
Tom Day -  - Departures
  singleton: True
Tom Day -  - Going Home
  singleton: True
Tom Day -  - Goodbye Friends
  singleton: True
Tom Day -  - My Last Year
  singleton: True
Tom Day -  - Never Give Up (Remaster)
  singleton: True
Tom Day -  - Our World
  singleton: True
Tom Day -  - Out Of My Depth
  singleton: True
Tom Day -  - Reflections
  singleton: True
Valer den Bit -  - Meteor 15 (ArcHouse Remix)
  singleton: True
Vessel -  - Red Sex
  singleton: True
Yo La Tengo -  - Green Arrow
  singleton: True
Really modify, move and write tags? (Yes/no/select) no

Sending event: cli_exit

Setup

My configuration (output of beet config) is:


plugins: chroma fetchart edit convert web
directory: /chompsky/library/files
library: /chompsky/library/musiclibrary.db

paths:
    default: $albumartist - $album%if{$year, [$year]}/$disc-$track $artist - $title
    singleton: Tracks/$artist%if{$year, [$year]} - $title
    album::^$: Tracks/$artist%if{$year, [$year]} - $title
convert:
    formats:
        ogg: ffmpeg -i $source -y -vn -acodec libvorbis -aq 8 $dest
        aac:
            command: ffmpeg -i $source -y -vn -acodec aac -aq 1 $dest
            extension: m4a
        alac:
            command: ffmpeg -i $source -y -vn -acodec alac $dest
            extension: m4a
        flac: ffmpeg -i $source -y -vn -acodec flac $dest
        mp3: ffmpeg -i $source -y -vn -aq 2 $dest
        opus: ffmpeg -i $source -y -vn -acodec libopus -ab 96k $dest
        wma: ffmpeg -i $source -y -vn -acodec wmav2 -vn $dest
    dest: /chompsky/library/transcode
    format: ogg
    never_convert_lossy_files: yes
    pretend: no
    threads: 8
    max_bitrate: 500
    auto: no
    tmpdir:
    quiet: no
    embed: yes

    paths: {}
    copy_album_art: no
    album_art_maxwidth: 0
fetchart:
    auto: yes
    minwidth: 0
    maxwidth: 0
    enforce_ratio: no
    cautious: no
    cover_names:
    - cover
    - front
    - art
    - album
    - folder
    sources:
    - filesystem
    - coverart
    - itunes
    - amazon
    - albumart
    google_key: REDACTED
    google_engine: 001442825323518660753:hrh5ch1gjzm
    fanarttv_key: REDACTED
    store_source: no
web:
    host: 127.0.0.1
    port: 8337
    cors: ''
    reverse_proxy: no
    include_paths: no
chroma:
    auto: yes
edit:
    albumfields: album albumartist
    itemfields: track title artist album
    ignore_fields: id path
sampsyo commented 7 years ago

Ah, yes, the singleton field is read-only. Perhaps it might work to change album_id directly?

vijaymarupudi commented 7 years ago

So what I am trying to achieve is to set my singles (Track with no album) to have their own path definition. From reading the documentation, singleton is the right category and it has it's own special path format filter in the configuration.

I guess I'm not sure why it is read only. I was able to change it to singleton by reimporting the files by path instead of library. This seems like odd behavior.

P.S. If this comes off as demanding, I'm sorry! I'm extremely grateful for beets!

sampsyo commented 7 years ago

It is odd! It’s for a technical reason: singleton is a computed field, a kind of pseudo-field, that is true when the album_id field for an item is null. The right solution here might be to somehow make a facility for modifying this field to true, but the odd thing is that it will of course be impossible to modify it to false (because we wouldn’t know which album to associate it with).

In general, we do need a way to associate singletons togehrer and disassociate them again, but it’s not 100% clear which interface would be the most logical.

vijaymarupudi commented 7 years ago

Hmm, I think that explanation about singleton really helped me out. Is there some part of the documentation that I should have read? I have noticed that singleton is mentioned occasionally but there's no section dedicated to it.

The interface decision is a hard one, but I think an explanation of why singleton can't be a good idea when a clueless user like me tries to change it, probably as an error message instead of the response it gives right now.

Wouldn't changing singleton to true be equal to reimporting with -qC and other relevant flags?

sampsyo commented 7 years ago

We don't actually have a complete discussion of this in the docs. That would be great to add! I'm not, however, completely sure where it should go. One option would be a new section in the "Advanced Awesomeness" page, which is sort of a cookbook for special use cases. I'd be open to ideas—we should certainly discuss the concept of singletons and how to use them in more detail.

Wouldn't changing singleton to true be equal to reimporting with -qC and other relevant flags?

The thing is that re-importing gives the system a chance to fetch new album-level metadata from MusicBrainz, etc. Just modifying the association—i.e., the album_id—wouldn't be able to do that.

It would, however, be nice if reimporting as a singleton had the effect you'd expect… maybe we can start with that as a remedy (and by documenting it as the recommended solution)?

vijaymarupudi commented 7 years ago

I think the inconsistency between beet import -sq -L album::^$ (which does not seem to work) and importing the same files by path when they are already in the library (which works) should be investigated. If this behavior is consistent, then you could just say "reimport as singletons".

sampsyo commented 7 years ago

Sounds good. I'm marking this as a feature request to do exactly that.

For completeness, what does re-importing in singleton mode do currently? My best guess is that it would successfully fetch new tags, but it wouldn't actually disassociate the item from the album.

vijaymarupudi commented 7 years ago

I have commented the commands I typed in the terminal. I hope this helps clarify what I mean.

➜  files beet list singleton:true # No singletons in library
➜  files beet import -qAs -L album::^$ # Trying to import those tracks as singletons
/chompsky/library/files/Tracks/009 Sound System [2009] - Dreamscape.flac
/chompsky/library/files/Tracks/Aesop Rock [2001] - Daylight.flac
/chompsky/library/files/Tracks/Afrojack [2014] - Ten Feet Tall (feat. Wrabel).flac
/chompsky/library/files/Tracks/Amon Amarth [2008] - Twilight Of The Thunder God.flac
/chompsky/library/files/Tracks/Asura [2007] - Golgotha.flac
/chompsky/library/files/Tracks/Ayla [1998] - Ayla (DJ Taucher Mix).flac
/chompsky/library/files/Tracks/Bill Withers [1971] - Ain't No Sunshine.flac
/chompsky/library/files/Tracks/Black Lips [2010] - O Katrina!.flac
/chompsky/library/files/Tracks/Bob Dylan [1964] - The Times They Are A-Changin'.flac
/chompsky/library/files/Tracks/Buddy Miles [1970] - Them Changes.flac
/chompsky/library/files/Tracks/Clams Casino [2011] - All I Need.flac
/chompsky/library/files/Tracks/Clams Casino [2011] - Numb.flac
/chompsky/library/files/Tracks/Clams Casino [2012] - I'm God.flac
/chompsky/library/files/Tracks/deadmau5 [2016] - Snowcone.flac
/chompsky/library/files/Tracks/deadmau5 [2017] - Polaris (Original Mix).flac
/chompsky/library/files/Tracks/Death Grips [2012] - The Fever (Aye Aye).flac
/chompsky/library/files/Tracks/Deep Purple [1994] - Smoke On The Water.flac
/chompsky/library/files/Tracks/Eric Prydz [2016] - Opus.flac
/chompsky/library/files/Tracks/Fleetwood Mac [2004] - The Chain.flac
/chompsky/library/files/Tracks/Galantis [2015] - Kill ’Em With the Love.flac
/chompsky/library/files/Tracks/Galantis [2015] - Runaway (U & I).flac
/chompsky/library/files/Tracks/Glenn Underground [2000] - City People.flac
/chompsky/library/files/Tracks/Halou [2006] - Honeythief.flac
/chompsky/library/files/Tracks/Halou [2006] - Stone Fruit.flac
/chompsky/library/files/Tracks/Helvetic Nerds [2014] - Stormwatch (Chris Reece & Dinka Old Fashion Mix).flac
/chompsky/library/files/Tracks/Ibibio Sound Machine [2017] - Sunray (Eyio).flac
/chompsky/library/files/Tracks/Koda [2013] - Leaving.flac
/chompsky/library/files/Tracks/Koda [2013] - Staying.flac
/chompsky/library/files/Tracks/Koda [2014] - Invitation to Love.flac
/chompsky/library/files/Tracks/Lana Del Rey [2012] - Summertime Sadness.flac
/chompsky/library/files/Tracks/Macklemore & Ryan Lewis [2012] - Starting Over (feat. Ben Bridwell).flac
/chompsky/library/files/Tracks/Madvillain [2004] - Raid (ft. M.E.D.).flac
/chompsky/library/files/Tracks/Matt Lange [2014] - Sixty Six.flac
/chompsky/library/files/Tracks/MF DOOM [2002] - Saffron.flac
/chompsky/library/files/Tracks/Miss Peppermint [1998] - Let Me Hear The DJ.flac
/chompsky/library/files/Tracks/Nathan Fake - Outhouse (Fluffy Mix).flac
/chompsky/library/files/Tracks/Nathan Fake - Outhouse (Original Mix).flac
/chompsky/library/files/Tracks/Of Monsters And Men [2013] - Dirty Paws.flac
/chompsky/library/files/Tracks/Paul Oakenfold & Cassandra Fox - Touch Me (Perfecto Club Mix).flac
/chompsky/library/files/Tracks/Petter - All Together.flac
/chompsky/library/files/Tracks/Ramin Djawadi [2016] - Light of the Seven.flac
/chompsky/library/files/Tracks/Rihanna [2011] - We Found Love (feat. Calvin Harris).flac
/chompsky/library/files/Tracks/Safri Duo [2001] - Played-A-Live (The Bongo Song).flac
/chompsky/library/files/Tracks/Salt Tank - Pacific Diva.flac
/chompsky/library/files/Tracks/Santana [1981] - Tales of Kilimanjaro.flac
/chompsky/library/files/Tracks/Santana [2004] - Soul Sacrifice (live at Woodstock).flac
/chompsky/library/files/Tracks/Science Department [2000] - Repercussion (Original Mix).flac
/chompsky/library/files/Tracks/Sex Bob-Omb [2010] - Garbage Truck.flac
/chompsky/library/files/Tracks/Sex Bob-Omb [2010] - Summertime.flac
/chompsky/library/files/Tracks/Sex Bob-Omb [2010] - Threshold.flac
/chompsky/library/files/Tracks/Sex Bob-Omb [2010] - We Are Sex Bob-Omb.flac
/chompsky/library/files/Tracks/Soulforge [2014] - Dreamfast (Original Laidback Mix).flac
/chompsky/library/files/Tracks/Subliminal Cuts [1994] - Le Voie Le Soleil (Way Out West Summer Of Love Remix).flac
/chompsky/library/files/Tracks/Sylvan Esso [2014] - Coffee.flac
/chompsky/library/files/Tracks/Synthek [2017] - Disambiguation.flac
/chompsky/library/files/Tracks/Talaboman [2017] - Loser's Hymn.flac
/chompsky/library/files/Tracks/The Avalanches [2016] - Because I’m Me.flac
/chompsky/library/files/Tracks/The Doors [1988] - Light My Fire.flac
/chompsky/library/files/Tracks/The Magician [2011] - I Follow Rivers (Lykke Li).flac
/chompsky/library/files/Tracks/The MFA - The Difference It Makes (Original Mix).flac
/chompsky/library/files/Tracks/The Rolling Stones [2005] - Paint It, Black.flac
/chompsky/library/files/Tracks/The Samuel Jackson Five [2014] - Coalesce.flac
/chompsky/library/files/Tracks/Tiësto [2007] - Ten Seconds Before Sunrise.flac
/chompsky/library/files/Tracks/Tiësto [2012] - Chasing Summers.flac
/chompsky/library/files/Tracks/Tiësto [2012] - Pair of Dice.flac
/chompsky/library/files/Tracks/Tiësto [2012] - Paradise (Coldplay).flac
/chompsky/library/files/Tracks/Tiësto [2012] - Young Blood (The Naked and Famous).flac
/chompsky/library/files/Tracks/Tom Day [2012] - Out Of My Depth.flac
/chompsky/library/files/Tracks/Tom Day [2013] - All For You.flac
/chompsky/library/files/Tracks/Tom Day [2013] - Crystal Beach.flac
/chompsky/library/files/Tracks/Tom Day [2013] - Departures.flac
/chompsky/library/files/Tracks/Tom Day [2013] - Going Home.flac
/chompsky/library/files/Tracks/Tom Day [2013] - Goodbye Friends.flac
/chompsky/library/files/Tracks/Tom Day [2013] - My Last Year.flac
/chompsky/library/files/Tracks/Tom Day [2013] - Our World.flac
/chompsky/library/files/Tracks/Tom Day [2013] - Reflections.flac
/chompsky/library/files/Tracks/Tom Day [2014] - Never Give Up (Remaster).flac
/chompsky/library/files/Tracks/Valer den Bit [2014] - Meteor 15 (ArcHouse Remix).flac
/chompsky/library/files/Tracks/Vessel [2014] - Red Sex.flac
/chompsky/library/files/Tracks/Yo La Tengo [1997] - Green Arrow.flac
➜  files beet list singleton:true # No singletons in library
➜  files # As you can see, no output
➜  files beet import -qAs Tracks/ # Trying to import those tracks as singletons, using path
/chompsky/library/files/Tracks/009 Sound System [2009] - Dreamscape.flac
/chompsky/library/files/Tracks/Aesop Rock [2001] - Daylight.flac
/chompsky/library/files/Tracks/Afrojack [2014] - Ten Feet Tall (feat. Wrabel).flac
/chompsky/library/files/Tracks/Amon Amarth [2008] - Twilight Of The Thunder God.flac
/chompsky/library/files/Tracks/Asura [2007] - Golgotha.flac
/chompsky/library/files/Tracks/Ayla [1998] - Ayla (DJ Taucher Mix).flac
/chompsky/library/files/Tracks/Bill Withers [1971] - Ain't No Sunshine.flac
/chompsky/library/files/Tracks/Black Lips [2010] - O Katrina!.flac
/chompsky/library/files/Tracks/Bob Dylan [1964] - The Times They Are A-Changin'.flac
/chompsky/library/files/Tracks/Buddy Miles [1970] - Them Changes.flac
/chompsky/library/files/Tracks/Clams Casino [2011] - All I Need.flac
/chompsky/library/files/Tracks/Clams Casino [2011] - Numb.flac
/chompsky/library/files/Tracks/Clams Casino [2012] - I'm God.flac
/chompsky/library/files/Tracks/deadmau5 [2016] - Snowcone.flac
/chompsky/library/files/Tracks/deadmau5 [2017] - Polaris (Original Mix).flac
/chompsky/library/files/Tracks/Death Grips [2012] - The Fever (Aye Aye).flac
/chompsky/library/files/Tracks/Deep Purple [1994] - Smoke On The Water.flac
/chompsky/library/files/Tracks/Eric Prydz [2016] - Opus.flac
/chompsky/library/files/Tracks/Fleetwood Mac [2004] - The Chain.flac
/chompsky/library/files/Tracks/Galantis [2015] - Kill ’Em With the Love.flac
/chompsky/library/files/Tracks/Galantis [2015] - Runaway (U & I).flac
/chompsky/library/files/Tracks/Glenn Underground [2000] - City People.flac
/chompsky/library/files/Tracks/Halou [2006] - Honeythief.flac
/chompsky/library/files/Tracks/Halou [2006] - Stone Fruit.flac
/chompsky/library/files/Tracks/Helvetic Nerds [2014] - Stormwatch (Chris Reece & Dinka Old Fashion Mix).flac
/chompsky/library/files/Tracks/Ibibio Sound Machine [2017] - Sunray (Eyio).flac
/chompsky/library/files/Tracks/Koda [2013] - Leaving.flac
/chompsky/library/files/Tracks/Koda [2013] - Staying.flac
/chompsky/library/files/Tracks/Koda [2014] - Invitation to Love.flac
/chompsky/library/files/Tracks/Lana Del Rey [2012] - Summertime Sadness.flac
/chompsky/library/files/Tracks/Macklemore & Ryan Lewis [2012] - Starting Over (feat. Ben Bridwell).flac
/chompsky/library/files/Tracks/Madvillain [2004] - Raid (ft. M.E.D.).flac
/chompsky/library/files/Tracks/Matt Lange [2014] - Sixty Six.flac
/chompsky/library/files/Tracks/MF DOOM [2002] - Saffron.flac
/chompsky/library/files/Tracks/Miss Peppermint [1998] - Let Me Hear The DJ.flac
/chompsky/library/files/Tracks/Nathan Fake - Outhouse (Fluffy Mix).flac
/chompsky/library/files/Tracks/Nathan Fake - Outhouse (Original Mix).flac
/chompsky/library/files/Tracks/Of Monsters And Men [2013] - Dirty Paws.flac
/chompsky/library/files/Tracks/Paul Oakenfold & Cassandra Fox - Touch Me (Perfecto Club Mix).flac
/chompsky/library/files/Tracks/Petter - All Together.flac
/chompsky/library/files/Tracks/Ramin Djawadi [2016] - Light of the Seven.flac
/chompsky/library/files/Tracks/Rihanna [2011] - We Found Love (feat. Calvin Harris).flac
/chompsky/library/files/Tracks/Safri Duo [2001] - Played-A-Live (The Bongo Song).flac
/chompsky/library/files/Tracks/Salt Tank - Pacific Diva.flac
/chompsky/library/files/Tracks/Santana [1981] - Tales of Kilimanjaro.flac
/chompsky/library/files/Tracks/Santana [2004] - Soul Sacrifice (live at Woodstock).flac
/chompsky/library/files/Tracks/Science Department [2000] - Repercussion (Original Mix).flac
/chompsky/library/files/Tracks/Sex Bob-Omb [2010] - Garbage Truck.flac
/chompsky/library/files/Tracks/Sex Bob-Omb [2010] - Summertime.flac
/chompsky/library/files/Tracks/Sex Bob-Omb [2010] - Threshold.flac
/chompsky/library/files/Tracks/Sex Bob-Omb [2010] - We Are Sex Bob-Omb.flac
/chompsky/library/files/Tracks/Soulforge [2014] - Dreamfast (Original Laidback Mix).flac
/chompsky/library/files/Tracks/Subliminal Cuts [1994] - Le Voie Le Soleil (Way Out West Summer Of Love Remix).flac
/chompsky/library/files/Tracks/Sylvan Esso [2014] - Coffee.flac
/chompsky/library/files/Tracks/Synthek [2017] - Disambiguation.flac
/chompsky/library/files/Tracks/Talaboman [2017] - Loser's Hymn.flac
/chompsky/library/files/Tracks/The Avalanches [2016] - Because I’m Me.flac
/chompsky/library/files/Tracks/The Doors [1988] - Light My Fire.flac
/chompsky/library/files/Tracks/The Magician [2011] - I Follow Rivers (Lykke Li).flac
/chompsky/library/files/Tracks/The MFA - The Difference It Makes (Original Mix).flac
/chompsky/library/files/Tracks/The Rolling Stones [2005] - Paint It, Black.flac
/chompsky/library/files/Tracks/The Samuel Jackson Five [2014] - Coalesce.flac
/chompsky/library/files/Tracks/Tiësto [2007] - Ten Seconds Before Sunrise.flac
/chompsky/library/files/Tracks/Tiësto [2012] - Chasing Summers.flac
/chompsky/library/files/Tracks/Tiësto [2012] - Pair of Dice.flac
/chompsky/library/files/Tracks/Tiësto [2012] - Paradise (Coldplay).flac
/chompsky/library/files/Tracks/Tiësto [2012] - Young Blood (The Naked and Famous).flac
/chompsky/library/files/Tracks/Tom Day [2012] - Out Of My Depth.flac
/chompsky/library/files/Tracks/Tom Day [2013] - All For You.flac
/chompsky/library/files/Tracks/Tom Day [2013] - Crystal Beach.flac
/chompsky/library/files/Tracks/Tom Day [2013] - Departures.flac
/chompsky/library/files/Tracks/Tom Day [2013] - Going Home.flac
/chompsky/library/files/Tracks/Tom Day [2013] - Goodbye Friends.flac
/chompsky/library/files/Tracks/Tom Day [2013] - My Last Year.flac
/chompsky/library/files/Tracks/Tom Day [2013] - Our World.flac
/chompsky/library/files/Tracks/Tom Day [2013] - Reflections.flac
/chompsky/library/files/Tracks/Tom Day [2014] - Never Give Up (Remaster).flac
/chompsky/library/files/Tracks/Valer den Bit [2014] - Meteor 15 (ArcHouse Remix).flac
/chompsky/library/files/Tracks/Vessel [2014] - Red Sex.flac
/chompsky/library/files/Tracks/Yo La Tengo [1997] - Green Arrow.flac
➜  files beet list singleton:true # Now they are marked as singletons in the library
009 Sound System -  - Dreamscape
Aesop Rock -  - Daylight
Afrojack -  - Ten Feet Tall (feat. Wrabel)
Amon Amarth -  - Twilight Of The Thunder God
Asura -  - Golgotha
Ayla -  - Ayla (DJ Taucher Mix)
Bill Withers -  - Ain't No Sunshine
Black Lips -  - O Katrina!
Bob Dylan -  - The Times They Are A-Changin'
Buddy Miles -  - Them Changes
Clams Casino -  - All I Need
Clams Casino -  - Numb
Clams Casino -  - I'm God
deadmau5 -  - Snowcone
deadmau5 -  - Polaris (Original Mix)
Death Grips -  - The Fever (Aye Aye)
Deep Purple -  - Smoke On The Water
Eric Prydz -  - Opus
Fleetwood Mac -  - The Chain
Galantis -  - Kill ’Em With the Love
Galantis -  - Runaway (U & I)
Glenn Underground -  - City People
Halou -  - Honeythief
Halou -  - Stone Fruit
Helvetic Nerds -  - Stormwatch (Chris Reece & Dinka Old Fashion Mix)
Ibibio Sound Machine -  - Sunray (Eyio)
Koda -  - Leaving
Koda -  - Staying
Koda -  - Invitation to Love
Lana Del Rey -  - Summertime Sadness
Macklemore & Ryan Lewis -  - Starting Over (feat. Ben Bridwell)
Madvillain -  - Raid (ft. M.E.D.)
Matt Lange -  - Sixty Six
MF DOOM -  - Saffron
Miss Peppermint -  - Let Me Hear The DJ
Nathan Fake -  - Outhouse (Fluffy Mix)
Nathan Fake -  - Outhouse (Original Mix)
Of Monsters And Men -  - Dirty Paws
Paul Oakenfold & Cassandra Fox -  - Touch Me (Perfecto Club Mix)
Petter -  - All Together
Ramin Djawadi -  - Light of the Seven
Rihanna -  - We Found Love (feat. Calvin Harris)
Safri Duo -  - Played-A-Live (The Bongo Song)
Salt Tank -  - Pacific Diva
Santana -  - Tales of Kilimanjaro
Santana -  - Soul Sacrifice (live at Woodstock)
Science Department -  - Repercussion (Original Mix)
Sex Bob-Omb -  - Garbage Truck
Sex Bob-Omb -  - Summertime
Sex Bob-Omb -  - Threshold
Sex Bob-Omb -  - We Are Sex Bob-Omb
Soulforge -  - Dreamfast (Original Laidback Mix)
Subliminal Cuts -  - Le Voie Le Soleil (Way Out West Summer Of Love Remix)
Sylvan Esso -  - Coffee
Synthek -  - Disambiguation
Talaboman -  - Loser's Hymn
The Avalanches -  - Because I’m Me
The Doors -  - Light My Fire
The Magician -  - I Follow Rivers (Lykke Li)
The MFA -  - The Difference It Makes (Original Mix)
The Rolling Stones -  - Paint It, Black
The Samuel Jackson Five -  - Coalesce
Tiësto -  - Ten Seconds Before Sunrise
Tiësto -  - Chasing Summers
Tiësto -  - Pair of Dice
Tiësto -  - Paradise (Coldplay)
Tiësto -  - Young Blood (The Naked and Famous)
Tom Day -  - Out Of My Depth
Tom Day -  - All For You
Tom Day -  - Crystal Beach
Tom Day -  - Departures
Tom Day -  - Going Home
Tom Day -  - Goodbye Friends
Tom Day -  - My Last Year
Tom Day -  - Our World
Tom Day -  - Reflections
Tom Day -  - Never Give Up (Remaster)
Valer den Bit -  - Meteor 15 (ArcHouse Remix)
Vessel -  - Red Sex
Yo La Tengo -  - Green Arrow
sampsyo commented 7 years ago

Yes it is; thanks!

Alch-Emi commented 6 years ago

To people coming to this issue from the future, who have a sizable number of tracks that they need to filter out and change to singletons, be careful when trying to do this, or you might end up corrupting your library or deleting chunks of it. The process as it stands right now is to remove the file from beets, but do not delete the file, and then reimport with the -s tag. The commands I used to do this were:

beet list album::^$ -f "\$path" > /tmp/singletons.txt
beet remove -f album::^$
cat /tmp/singletons.txt | parallel beet import -As

assuming you have GNU parallel installed. Hopefully this will save you from losing your library like I did.

rnkn commented 4 years ago

I think there is an easier way than what @Alch-Emi suggests, which is:

beet mod album::^$ album_id=

and voilà.

sampsyo commented 4 years ago

Awesome!