https://bugs.gpodder.org/show_bug.cgi?id=1579

Joseph W. <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #704 is|0                           |1
           obsolete|                            |

--- Comment #2 from Joseph W. <[email protected]> 2012-05-20 19:44:03 
BST ---
Created attachment 710
  --> https://bugs.gpodder.org/attachment.cgi?id=710
Patch to add sync functionality, displaying progress via 'Downloads' tab

I switched to a 'one task per episode' approach and made some further progress.
I'm including a patch to add device sync to gpodder which uses the 'Downloads'
tab to show progress.

The synchronization process opens the device and creates a 'SyncTask' object
for each episode synchronized. The SyncTask object is derived from
DownloadTask, overriding the run() method. The task is then registered with the
download status model and added to the download queue, which then executes it
and updates the GUI in the same way as for downloads.

Presently the Device adds the Task objects to the queue, but when the tasks are
executed they call the add_track method on the device to actually copy the
files over. Probably not the cleanest way to do it, but this is still a
work-in-progress :) This is currently only implemented for a filesystem-based
mp3 player.

-- 
Configure bugmail: https://bugs.gpodder.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
gPodder-Bugs mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-bugs

Reply via email to