• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

[8wayRun.Com] XenMedio (Media)

Status
Not open for further replies.
Okay... this shoudl work... repalce it with this:
Code:
isset($json['entry']['app$control']['yt$state']) && $json['entry']['app$control']['yt$state']['name'] != 'restricted' ? $json['entry']['app$control']['yt$state']['$t'] : null

This will maintain proper error checking... but also allow embedding on restrictions.
 
Yes... YouTube has a reference to this in their API:
http://code.google.com/apis/youtube/2.0/reference.html#youtube_data_api_tag_yt:state

As you can see, there is a large list of reasons on why an error would pop up. However, there are TWO reasons that we wish to ignore: "requesterRegion" and "limitedSyndication". However, "private" is also part of the same name block and we would still wish to produce an error in that case. Fortunately however, private videos on youtube don't have an XML/JSON response AT ALL! So the error for that case is produced automagically without any fixing required!
 
Will be installing. Would love the ability to be able to add my own video suppliers though. I use something similar right now and run about 20 different types.

That'd get expensive (and time consuming for you). Maybe do a branding/Branding Free version? Just thinking out loud.

Thanks for your hard work.
 
create a folder in /data/ called /media/ and CHMOD it 777... I forgot to add this step to the install procedure in the first version. Then delete and resubmit your videos. In the next version, there will be the option to manually upload thumbnails.

Jaxel.. i still have the same issue I have done everything as you instructed. I even re-installed the whole package. I am not using the default style. Could this be the issue?
 
Hi,
I can "retrieve information" for media URL without problem, but when i "Save Media" I have an error:

Server Error

Invalid image type given. Expects IMAGETYPE_XXX constant.
  1. XenForo_Image_Gd::createFromFileDirect()
  2. call_user_func() in XenForo/Image/Abstract.php at line 168
  3. XenForo_Image_Abstract::createFromFile() in EWRmedio/Model/Thumbs.php at line 10
  4. EWRmedio_Model_Thumbs->buildThumb() in EWRmedio/Model/Media.php at line 154
  5. EWRmedio_Model_Media->updateMedia() in EWRmedio/ControllerPublic/Media.php at line 954
  6. EWRmedio_ControllerPublic_Media->inputMediaUpdate() in EWRmedio/ControllerPublic/Media.php at line 307
  7. EWRmedio_ControllerPublic_Media->actionMediaSubmit() in XenForo/FrontController.php at line 303
  8. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  9. XenForo_FrontController->run() in /homepages/5/d219493295/htdocs/wsb4660973703/index.php at line 15
 
Hi,
I can "retrieve information" for media URL without problem, but when i "Save Media" I have an error:

Server Error

Invalid image type given. Expects IMAGETYPE_XXX constant.
  1. XenForo_Image_Gd::createFromFileDirect()
  2. call_user_func() in XenForo/Image/Abstract.php at line 168
  3. XenForo_Image_Abstract::createFromFile() in EWRmedio/Model/Thumbs.php at line 10
  4. EWRmedio_Model_Thumbs->buildThumb() in EWRmedio/Model/Media.php at line 154
  5. EWRmedio_Model_Media->updateMedia() in EWRmedio/ControllerPublic/Media.php at line 954
  6. EWRmedio_ControllerPublic_Media->inputMediaUpdate() in EWRmedio/ControllerPublic/Media.php at line 307
  7. EWRmedio_ControllerPublic_Media->actionMediaSubmit() in XenForo/FrontController.php at line 303
  8. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  9. XenForo_FrontController->run() in /homepages/5/d219493295/htdocs/wsb4660973703/index.php at line 15
What media?
 
Just after add media, i'am this error:
Template Errors: EWRmedio_MediaView

  1. Invalid argument supplied for foreach() in /home/xxxxxxxxxxx/public_html/forum/library/XenForo/Template/Abstract.php(241) : eval()'d code, line 360:
    359: '; 360: foreach ($playlistList AS $list) 361: {
 
Status
Not open for further replies.
Top Bottom