Import Videos Error

alt=
@andrusito
9 years ago
302 posts
Hello,

I want to import videos from my JR4 website.

Look at this video post on my JR4 website:

http://www.sermonescristianos.net/Jesus_Adrian_Romero/video_164.php

As you can see, the video is from Youtube. Users paste the embed code in a custom field I created.
For that site, I don't allow video file uploads. That's why users enter embed codes.

Well, I want to have the same feature on my new JR5 installation.
For this, I've selected only the "Import Videos" option on Import page. But the problem is it is not working..

Look at the attached image, it says ERROR: No video file. How can I fix it?

I've already created a custom field called "video_embed". This is the same name for the JR4 custom fields.

1. I want JR5 import video posts even if they don't have a file attached.
2. Also, want to import the custom field.

Any ideas?
Thanks!!
jpg
 •  109KB


updated by @andrusito: 05/08/15 03:17:06AM
paul
@paul
9 years ago
4,326 posts
Any JR4 custom fields will be imported into the datastore so if in JR4 you had 'video_embed', it will be imported to JR5 as 'video_jr4_embed' so that datastore field could be used in the JR5 video templates.

However, getting past the 'No File' error might be more difficult. You'll need to edit the jrImport/include/import_videos.php file.
Line 69 is the test for a video file so making that 'if(1)' will make it drop through that test, then the 'Get File' section starts at line 95. Removing that whole section through to line 125 might do the trick.
There might be other 'gotchyas'. Obviously, I haven't tried this!!


--
Paul Asher - JR Developer and System Import Specialist
alt=
@andrusito
9 years ago
302 posts
Thanks Paul, but unfortunately I could not make it work :(

One question: Should I replace "if" with "if(1)".. Is that ok?

I did it and also removed the Get File code, but the import process never started..

Thanks again.

Tags