Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: [v2] Stop after album (Read 4399 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[v2] Stop after album

@marc2k3
I have a component request for foobar2000 v2: Stop after album.
Activate stop after current, if the condition TRACKNUMBER = TOTALTRACKS is fulfilled.
I retired my project.

Re: [v2] component request: Stop after album

Reply #1
Did it myself.

Component 64 bit:: foo_stopafteralbum 1.0

Main Menu command "Playback/Stop after album" (toggle)

Re: [v2] component request: Stop after album

Reply #2
32bit/64bit version of foo_stopafteralbum 1.0

Re: [v2] component request: Stop after album

Reply #3
Suggestions for improvements:

check an album tag is present
check tracknumber and totaltracks are numeric. (pfc::string_is_numeric)

Currently, tracks missing all those tags enable stop after current. You shouldn't have to toggle the component off before playing those tracks.

Re: [v2] component request: Stop after album

Reply #4
foo_stopafteralbum v1.1

Can't figure out, what the album tag has to do with it.

Last attachment: newest version


Re: [v2] Stop after album

Reply #6
The "stop after album" seems like a good idea and something I would use.  Thanks for making the component.

However, I sometimes am listening to untagged files.  (For example, I won't tag them because it would break the torrent.) 

These files are always organized in folders. It seems to me that, if there is no TOTALTRACKS tag, the fallback behavior could be: stop when the next track is in a different folder than the previous track.  


Re: [v2] Stop after album

Reply #8
Thank you for this component. However, it had some issues that I managed to fix myself regarding it not working for MP3s, and not taking disc numbers into consideration. I've attached the component and its source files. I've also renamed the component to Stop After Release (foo_stop_after_release). Feel free to use or modify it :)

Re: [v2] Stop after album

Reply #9
@muzeke

Thanks.
I checked the operation with mp3.
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

 

Re: [v2] Stop after album

Reply #10
I sadly don't know anything about how the coding on foobar2k, but if addons can read the playlist content, what's stopping it from reading the ALBUM tag for the next incoming track (Index+1), compare it to the ALBUM tag for the current track?

I'm just throwing it out as someone who does have *some* coding experience, but am fairly outdated.
Hardcore DJ