GNOME Bugzilla – Bug 557798
Callbacks to plugins when add to playlist and copy location are pressed
Last modified: 2008-10-25 14:13:19 UTC
In order to speed up searching in the youtube video module to only generate the URI when it's requested-which requires downloading of the entire youtube webpage- could callbacks be added to plugins that request it when add to playlist and copy location are both pressed? Philip suggested: it's probably best to have a function in TotemVideoList which allows a callback function to be set. The callback would be used to get the URI for entries before they're added to the playlist or their location is copied. It would take the current URI, and return the new URI
It just wouldn't work so well when the menu callback code needs to be sync, and fetching URIs would be async.
I can't think of a way around that, other than leaving the code as it is and having the URIs resolved when the search is first performed. :(
Marking this as a dupe of bug #557824, since that's where Matthew's put a patch to the safe effect. *** This bug has been marked as a duplicate of 557824 ***