[wp-trac] [WordPress Trac] #26825: Add ability to generate metadata for audio / video files on-demand

WordPress Trac noreply at wordpress.org
Wed Jan 29 20:53:32 UTC 2014


#26825: Add ability to generate metadata for audio / video files on-demand
------------------------------------+------------------
 Reporter:  wonderboymusic          |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  3.9
Component:  Media                   |     Version:  3.6
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+------------------

Comment (by bradyvercher):

 Replying to [comment:4 wonderboymusic]:
 > Perhaps the postmeta key can be set to an empty value, so the only check
 will be if the key exists or not.

 Using the meta key itself for the flag sounds like a good idea. I wasn't
 sure if the key could exist with an empty value yet.

 Replying to [comment:5 wonderboymusic]:
 > If your library has 300 videos in it, all uploaded before 3.6 - the
 first time you kick open the media modal, it will attempt the parse all
 300 videos

 When does core ever load 300 attachments at a time? It seems like 40 would
 be the most and it'd be a one-time thing.

 Replying to [comment:6 helen]:
 > Can we regenerate on loading the edit media screen?

 I figured both places might be beneficial, but in the scenario where there
 are 300 videos without metadata, that'd require visiting each of those
 edit screens.

 As far as race conditions, what's the worst that could happen aside from a
 file being processed twice? Once the metadata key exists, the file
 wouldn't be processed again. Is there a more extreme side effect?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26825#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list