I noticed this problem when a node title was longer than 60 characters, uploading a video using Media Mover would fail with an error code from Youtube refusing the upload because the title is too long.

/includes/media_youtube.media_mover.inc line 29 is the issue:

$title = check_plain($node->title);

The simple fix is to chop off the title 60 characters in:

$title = check_plain(substr($node->title, 0, 60));

But this isn't very elegant. A better solution might be to create a CCK field and allow the user to use that field for the video upload (a "video title" field).

Has anyone run into this issue? Are there more elegant solutions?

Comments

aaron’s picture

Status: Active » Needs work

there is a new optional 'title' element with emfield; we might consider using that. i'll have to take a look at the issue later.