Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Playlist retrieving problem with custom fields


Hi,

i have jwplatform account and i uploaded some videos and created some playlists.

for playlist i have created one custom field called as "author_id".

when i retrieve playlists by using this service call

$api->call("/channels/list", array("types_filter" => "manual","search:custom.author_id" => "1"));

based on the custom filed author_id it is showing all other playlists which matches atleast one char of author_id.

for example,

in the above query i want all playlists whos author_id is 1 but it is showing other playlists also whos author_id is 175 or 517 or 981 etc

i want only playlist whos author id is exactly equal to 1.how to do that?


Thanks
Praveen

5 Community Answers

Cooper Reid

JW Player Support Agent  
0 rated :

Hi Praveen,

The custom.field searching is a text search, so it won’t match exact integers as you may expect. The most accurate way to retrieve a record based on a custom field in this case, would be to set the value to
custom.author_id = ‘author_1’

This should match the records more accurately. If not, you may have to append a suffix to that value:
‘author_1_id’

Best Regards,
Cooper

michael.mccarthy

User  
0 rated :

As you said,

if i put
custom.author_id = ‘author_1’
custom.author_id = ‘author_1200’
custom.author_id = ‘author_1785’
custom.author_id = ‘author_2580’

if i search the records of author_1

it returns
custom.author_id = ‘author_1’
custom.author_id = ‘author_1200’
custom.author_id = ‘author_1785’

which is not correct.


How?

Cooper Reid

JW Player Support Agent  
0 rated :

Hi,

Ahh I see. The searching function of our API is a full text search that does partial matching. I recommend that you add a suffix `id` as I stated in the prior response:
‘author_13432_id’

This should make retrieval using the search more accurate. If this solution doesn’t appeal to you, you could simply loop over your result set and check the value of each of the records against the one you are looking for.

Best Regards,
Cooper

michael.mccarthy

User  
0 rated :

Thanks
Its solved my problem.

How to download my videos from JWplatform?
Is there any way to export the all video metadata through CSV File?
Am using Jwplayer in my website to play videos.which server consuming bandwidth for this.my website server or jwplayer?


Cooper Reid

JW Player Support Agent  
0 rated :

You can download your videos using these URL conventions and grabbing your content from those URLS:
http://apidocs.jwplayer.com/urls/videos.html

There is no ‘csv export’ functionality of the platform that will export all of your data.

Regarding bandwidth: Your website server is not using bandwidth if the video is coming from our platform.

-Cooper

This question has received the maximum number of answers.