function scald_youtube_scald_add_form_fill() has code to "Prefill tags". However it does not import any tags over from Youtube to the Atom.
It is using Youtube's API to read the information about the video. But that API no longer provides information about tags, see: http://stackoverflow.com/questions/12501957/video-tags-no-longer-availab...
A possible workaround is to query the html that is sent to a user viewing a video, as this does still contain tags. eg if I look at
view-source:http://www.youtube.com/watch?v=JALnQvg_dUQ
I can see
<meta name="keywords" content="gwulo, old hong kong">
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 2188415-youtube-9.patch | 2.13 KB | jcisio |
| #5 | 2188415-youtube-5.patch | 5.4 KB | jcisio |
| #1 | scald-youtube_tags-2188415-1.patch | 1.09 KB | driki_ |
Comments
Comment #1
driki_ commentedhereby a proposed patch, parsing HTML from youtube. I'd rather use another method, but there seems no other available.
Comment #2
driki_ commentedchanging status :)
Comment #3
jcisio commentedI replace $id by $info->id in the patch and it works. However there are still thousands of PHP warning.
Comment #4
jcisio commentedI'm working on it.
Comment #5
jcisio commentedComment #6
jcisio commentedCommitted and pushed #5. Back to active because I'm working on tests.
Comment #9
jcisio commentedNow we have tests.
Comment #10
jcisio commentedCommitted and pushed #9.