<div dir="ltr"><div>Hello Nitul,</div><div><br></div>I am not thoroughly familiar with the code but here is my suggestion:<div><br></div><div>The CollectionScanner should find files and represent them. So if it finds a track it represents it as such. You should have a one Track object representing a track and a new CueSheet (or similar) class object to represent a cue sheet.</div><div><br></div><div>But when these files are shown in the Database collection/playlist etc. in amarok they should be shown as completely different (according to the music file and cue sheet) files (i.e. different TrackPtr 's should be created for each).</div><div><br></div><div>The thing that I haven't figured out is that how will amarok "dissect" the <span style="font-family:arial,sans-serif;font-size:13px">CollectionScanner::Track if it is a cue-sheeted track. Can you place some link in the </span><span style="font-family:arial,sans-serif;font-size:13px">CollectionScanner::Track to the corresponding </span><span style="font-family:arial,sans-serif;font-size:13px">CollectionScanner::CueSheet without modifying it? Or when the </span><span style="font-family:arial,sans-serif;font-size:13px">CollectionScanner::CueSheet is accessed by Amarok, it should dissect the </span><span style="font-family:arial,sans-serif;font-size:13px">CollectionScanner::Track into many TrackPtr 's.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">It really depends on how the information fed by the collection scanner to amarok is parsed by amarok. Look into and figure it out.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Ask me again if needed.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">And, always 'cc' amarok-devel. Maybe someone would help you. Even if they don't, they will be glad to know how the amarok community is bonding and growing.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Regards,</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Vedant.</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 23, 2014 at 10:41 PM, Nitul Datt <span dir="ltr"><<a href="mailto:nitul1991@gmail.com" target="_blank">nitul1991@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey!<br>
<br>
I've run into a bit of a roadblock and require your guidance. How<br>
should I represent the individual tracks in a cue sheeted file? At<br>
present, the collection scanner does not include start and end times<br>
for regular tracks. The existing cue sheet related code creates<br>
timecode tracks for the individual songs in a cue sheeted file. That<br>
being said, should I thus create a new CollectionScanner::TimcodeTrack<br>
class or make changes to the existing CollectionScanner::Track class?<br>
<br>
--<br>
Regards,<br>
Nitul Datt<br>
</blockquote></div><br></div>