Hello, (Rewrited my post as I think previous was too complex to understand - and my english is not as detailled as required…)
Using mairlist DB app, I schedule automatically hourly playlists using templates. Each templates requests to execute a “postprocessing” script, right after the playlist is generated. This script modifies some cue points. These cue points are specifics to the generated playlist : they should be saved with the database playlist, but not with the item (cue points do keep with their original values for future schedules)
MairlistDB app show my modifications on the open playlist (“Playlist” tab), but saving the playlist doesn’t save modifications done by the script. When I open it again, no script modification had been kept.
Is it normal ? If yes, how can I save modifications done by the script into the database playlist ?
For information, I tried :
Instance.GetDatabases.GetItem(0).SavePlaylistItem(SweeperItem);
But it modifies the item directly and future schedule are wrong as cue points are not the original ones.
IDBConnection(Database(0)).SavePlaylist(EncodeDate(2016, 3, 13) + EncodeTime(13, 0, 0, 0), 0, pl);
But the “SavePlaylist” method seems to not exist anymore, and in MairlistDB app (“Playlist” tab), I don’t know how I can retrieve, with scripting code, the current time for this playlist…
You’re right but you speak about the previous topic I wrote where I request the database to retrieve this value. That’s only one use case in my context, and your proposal would certainly work for it (I will use it).
But the original StartNext-value is not only for “future processing” in script.
And I have others modifications in the playlist and this workaround can’t apply.
Anyway, whatever the modifications are in the playlist, I think (I hope) there is a way, in scripts, to save the playlist in database, without modifying the item itself…
As it is possible when using file (playlist modifications are only located in file, except you ask to propagate to the item itself).
If you don’t tell us about them, we are not able to get along.
Look, you like mAirList to save items in a certain way, which it doesn’t. You call it a bug (or a feature request), but you have to be aware that issues like these will most certainly not be dealt with in the near (and maybe middle) future. So the only way to get things going is working around the issue. I tried to put in some ideas how to handle these, but you turn up with new restrictions at any one time, so it seems (!) obvious that you are not interested in a solution at all. For those who try to help you, this is in no way enjoyable, if not annoying.
I don’t understand why you react like that… Really.
Previously, my request where too confusing and complex. So, I try to be more concise and to get to the point.
So, whatever modifications I do on the playlist item (for information: modifying segue/cue points & adding attributes values on the playlist item), my question is, I guess, quite simple : is it a way, in script, to save the playlist (in database) modified by a post processing scripts, without modifying the item itself in database ?
And you answer about a workaround you propose me previously on another topic (and I repeat : for this previous use case, I will use your proposal. But it’s not the same thing here !)
With file management, it’s possible (modifications are only located in the playlist). And I wonder if it’s possible with database management. No more.
You’re might be right. However, Mairlist allows us to define a post processing script after generating the playlist. And I see that modifications made by this script are not saved when we click on save (contrary to manual modifications we can do in this playlist and which are correctly saved with the playlist without being persisted in the item itself).
So, It’s normal to ask if it’s a bug or not, isn’t it ? I don’t see where I’m not “interested in a solution at all”.
If it’s not possible, ok. Just tell me “it’s not possible” and that’s it. Maybe someone will have a solution, maybe not. I’m not a noob with mairlist (I use/develop on it since v3), I will try to find another solution. There are lot of things I don’t know (as I don’t use them), but I think I have a good overview…
Sorry Tondose if you don’t like how I request help… Obviously, it’s not my objective as I easily recognize quality of community answers.
I’m just trying to go further and try to find solution.
Sorry if I wasted your time.
As I supposed nobody will answer from now, I will try others things by myself.
For all items that you wish to save modifications for, you must set the “customized” flag (indicated by orange icon in playlist). Otherwise only a link to the library is saved in the playlist (green icon).