<div dir="ltr"><div>Hi Phill,</div><div><br></div><div>I hope it is still relevant to answer this... I'm a bit slow...</div><div>There is no doubt that using a ":" as a data-delimiter in a string is somewhat hacky - I should know, since I introduced it...</div><div>I think using a DB would be the right approach, and it could help us in creating folders and stuff like that.</div><div><br></div><div>BR,</div><div>Tomas<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den fre. 14. jun. 2019 kl. 09.34 skrev Philip Ridout <<a href="mailto:phill.ridout@gmail.com">phill.ridout@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto">This email is mainly addressed to TRB143, I felt it was too long to post to IRC, and some feedback from others would be great, so I'm posting it here.</div><div dir="auto"><br></div><div dir="auto">I've been working on the way we store media items. (As in the media plugin media items rather than any other plugin 'media items')</div><div dir="auto"><br></div><div dir="auto">In 2.4 we stored the info in a string which was ok for standard media files, but it wasn't great for optical media.</div><div dir="auto"><br></div><div dir="auto">1: because we need to store more info than just the path</div><div dir="auto">2: to store the data we were encoding it in a string separated by ':'. This cause minor problems on windows where the path usually contains a ':' after the drive letter. Additionally we may have issues with the potential future(?) addition of streaming media capabilities.<br></div><div dir="auto"><br></div><div dir="auto">My is solution is to create a class which stores the extra info needed for media media items, and store that in a db. For storing in service files, we just need to subclass from the JSONMixin class I implemented recently. Doing so implements some nice features such a automatically serializing the media type enum and the path object which points to the media file / dvd drive, which also provides the benefits for which I initially started my path refractors (better portability for service files, settings and DBs, etc.)</div><div dir="auto"><br></div><div dir="auto">You guys on board with my idea?</div><div dir="auto"><br></div><div dir="auto"><br></div></div>
_______________________________________________<br>
openlp-dev mailing list<br>
<a href="mailto:openlp-dev@openlp.io" target="_blank">openlp-dev@openlp.io</a><br>
<a href="https://lists.openlp.io/mailman/listinfo/openlp-dev" rel="noreferrer" target="_blank">https://lists.openlp.io/mailman/listinfo/openlp-dev</a><br>
</blockquote></div>