Giter Site home page Giter Site logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Why would you want to use dynamic play lists with random and consume modes set? 
The cantata-dynamic helper script already randomly selects tracks, and removes 
tracks so that there is only 10 tracks in the playqueue at any one time.

You could already do what you wish without needing any further dbus support, 
and even without cantata running.

You can obtain the list of dynamic play lists by looking in 
~/.config/cantata/dynamic
To 'load' a dynamic play list, all you need to do in symkink the one in the 
folder above to ~/.cache/cantata/dynamic/rules. Then you can start the helper 
by calling '/usr/lib/kde4/libexec/cantata-dynamic start'  (or first call 
'/usr/lib/kde4/libexec/cantata-dynamic stop' to stop any current play list)

Original comment by [email protected] on 11 May 2012 at 9:05

from cantata.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
I have never realized that cantata-dynamic script will remove tracks from 
playlist at some point. You are right - there is no need for consume mode.

As for random - that was due to another script that was running only when MPD 
was in random mode, and I wanted to run it also when Cantata dynamic mode is 
on. But I decided to just modify that script to be aware of cantata-dynamic 
process.

Thanks for the tips about CLI interface to cantata-dynamic!

But I think I have found bug. That's what I did:
1. create symlink in ~/.cache/cantata/dynamic/ to one of files in 
~/.config/cantata/dynamic/
2. run /usr/lib/kde4/libexec/cantata-dynamic start

Playlist was populated, but Cantata was unaware of dynamic playlist in use. All 
of them could be started and Cantata did not display "[dynamic]" notify in 
status bar, although cantata-dynamic script was obviously running. Cantata 
restart helped.

Maybe Cantata should periodically (each 10 seconds or anything) look for 
~/.cache/cantata/dynamic/lock file to check if cantata-dynamic script is in use?

Should I file another bug report for this?

Original comment by [email protected] on 14 May 2012 at 11:51

from cantata.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
If its ok, I'm going to close this bug report. Please re-open if you disagree 
with me. I'm closing because, as stated above, you can already do what you 
require manually. I've updated the help script so that it sends a dbus message 
to cantata when it is started/stopped. I've also updated the README to document 
the help scripts behaviour.

Original comment by [email protected] on 18 May 2012 at 5:01

  • Changed state: Fixed

from cantata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.