Lydia : Some Progress

in programming •  6 years ago 


I spent most of the day trying to save my work from the Tasker setup, but at some point I think I will just move it all to DroidScript. The work was mostly about getting the list of songs sorted by Artist/Album/Track so that my AI could easily define which songs to play. Of course, once this was done I could just use the list, but I want to set it up to refresh the list whenever I add or subtract songs, so it needs to run at startup or after certain functions. So that can be easily done inside DroidScript, since the Player is in there anyway.

I am feeling the drive to program a little. It's like a puzzle I have to solve. Every little problem I fix is like a little jolt of endorphins. I remember this from years ago... I used to get caught up for days doing 3D art in PovRay, scripting animations.

So at this point I can read from the list of songs, in random order or sequentially, and pass the path to the player. It's not pretty but it works. Next, after cleaning up the code I already have, is adding my rating numbers to each song as I go. I'm afraid I will have to read the whole file, change the one line, then rewrite the whole file.

Either that or learn to make databases in DroidScript....

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Hello! Your post has been resteemed and upvoted by @ilovecoding because we love coding! Keep up good work! Consider upvoting this comment to support the @ilovecoding and increase your future rewards! ^_^ Steem On!

Reply !stop to disable the comment. Thanks!

Yay for regaining your love of puzzle solving! Refactoring can be a right pain but usually needs to be done XD So you can now do the things you wanted to do?

Yes. I needed access to the "next" and "previous" actions, which I didn't find in premade audio players or Tasker plugins. So I have to make my own audio player, which I can do with DroidScript. What I wanted was to upvalue a song by replaying it (causing it to be chosen in the playlist more often) and devalue one by skipping it. Which means I also need my own playlist function.

Unfortunately I still don't have access to the ID3 info, but I got around most of that already by structuring my directories by Artist/Album/Track