Registered Member
|
I have a new box that I've built with MythTV but it uses Amarok as music player. I use Amarok on my desktop too, and both run (different minor versions of) 1.4. I maintain my ratings on my desktop, but I'd like to use them on the living room box too, without running against the same database.
So, I hacked a little Perl script that takes the URLs and the ratings out of my desktop, which runs a Postgresql database, so I can connect to it directly from the living room box. Then it massages the URLs a bit, so that they correspond to the URLs used on the living room box. Now, my question is how I should run this script? I want to do it non-interactively, the living room box has an IR remote only. I can think of three ways: 1. Just INSERT the ratings in the SQLite database on the living room box using a cron job. Then the question is if Amarok will actually poll the database and use the ratings? 2. Send setRatingByPath() DCOP commands. But it seems like DCOP events need to run in the session of Amarok? Can this be done in a cron job? What if Amarok isn't running? 3. Some kind of Amarok script? I have no experience with writing such scripts, but if that is the right way, I'll learn it. Other options? PS: If anybody wants the script, let me know. |
Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, sandyvee, Sogou [Bot]