After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 557798 - Callbacks to plugins when add to playlist and copy location are pressed
Callbacks to plugins when add to playlist and copy location are pressed
Status: RESOLVED DUPLICATE of bug 557824
Product: totem
Classification: Core
Component: general
2.24.x
Other Linux
: Normal enhancement
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2008-10-24 18:23 UTC by Matthew Adams
Modified: 2008-10-25 14:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matthew Adams 2008-10-24 18:23:28 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
Comment 1 Bastien Nocera 2008-10-24 18:28:22 UTC
It just wouldn't work so well when the menu callback code needs to be sync, and fetching URIs would be async.
Comment 2 Philip Withnall 2008-10-24 20:15:34 UTC
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. :(
Comment 3 Philip Withnall 2008-10-25 14:13:19 UTC
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 ***