+ Reply to Thread
Results 1 to 4 of 4

Thread: Xml import export video format

  1. #1

    Xml import export video format

    Hey,
    Cant find,
    How to store youtube videos urls in XML, to upload as youtube video via XML Import/Export plugin ?
    <youtube>https://youtu.be/xxxxxxxxxxx</youtube>

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    2,181
    Hello Alex,

    You should select Video from target field in mapping manager in front of your source field with youtube link

  3. #3
    Quote Originally Posted by Rudi View Post
    Hello Alex,

    You should select Video from target field in mapping manager in front of your source field with youtube link
    Hey Rudi,
    Looaking at FILE : RLXMLIMPORT.CLASS.PHP -> /plugins/xmlFeeds/rlXmlImport.class.php

    And see:

    elseif ($flynax_field == "video") {
    print("VIDEO:".$listing_id); // Empty
    print("LISTING_VIDEO:".$listing['video']); // Empty
    if ($listing[$xml_field]) { // $listing[$xml_field] -> my youtube url from XML
    $GLOBALS['rlListings']->uploadVideo('youtube', $listing['video'], $listing_id); // Looks like function "uploadVideo" is waiting for listingID, listingVIDEO, but is empty.
    }
    }



    Next print on image: "ID: SOURCE: TYPE: youtube"

    public function uploadVideo($type = false, $source = false, $listing_id = false)
    {
    global $rlHook, $l_player_file_types, $lang, $rlActions, $rlValid, $errors, $rlResize, $rlCrop, $config;
    echo "\n\n";
    print("ID: ".$listing_id); // Empty
    print("SOURCE: ".$source); // Empty
    print("TYPE: ".$type); // youtube
    echo "\n\n";
    if (!$type || !$listing_id) { // We have type: youtube, listing_id: empty.
    return false;
    }

    Can you check it ASAP ?
    Thanks.
    Attached Images Attached Images
    Last edited by Alex U; April 11, 2020 at 10:25 AM.

  4. #4
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    2,181
    can't connect to your sftp,

    you'd better create a ticket

+ Reply to Thread