cancel
Showing results for 
Search instead for 
Did you mean: 
DimSys
Level 7

Youtube block by category

Hi.

I've imported the rule "Youtube Block By Category" from online rule library.

I've see that it works only if clip have the only one category.

If the clip have few categories (even all of them is in the "Blocked List") it doesn't block.

How to block clips that categorized by few categories?

Message was edited by: DimSys on 7/24/12 12:58:49 PM ALMT
0 Kudos
33 Replies
asabban
Level 17

Re: Youtube block by category

Hello,

can you give me an example video? I have not come across videos with more than one category so far, so I never tested this.

Thank you,

Andre

0 Kudos
DimSys
Level 7

Re: Youtube block by category

Hi Andre,

For example:

http://www.youtube.com/watch?v=z_MaDgEx4JY&feature=fvsr

http://www.youtube.com/watch?v=slX1SGSsvQ8&feature=fvsr

Message was edited by: DimSys on 7/24/12 1:24:26 PM ALMT
0 Kudos
DimSys
Level 7

Re: Youtube block by category

FYI

I've see content of "UserDefined.YoutubeCategory".

If clip have the only one category, that I see this category name.

But if clip have few categories than in UserDefined I see the quantity.

For my previous example in UserDefined I see "3".

0 Kudos
asabban
Level 17

Re: Youtube block by category

Hello,

thank you for the examples. I had a look and it seems that the major category is "Shows", but as an uploader you can add additional "sub categories" which will show up when you browse there. We would basically detect "Shows" correctly, but there are several additional categoy tags returned which indicate some more detatils about regions and origin media of the video, which we incorrectly use as the category.

I will try to modify the rule set. I will see if I can also get access to the "sub categories", but it may be possible that we are restricted to the main category, which is "Shows" in this case.

I will let you know once I made progress.

Thank you for reporting the examples, that is very helpful.

Best,

Andre

0 Kudos
DimSys
Level 7

Re: Youtube block by category

Thanks Andre.

We will wait.

0 Kudos
DimSys
Level 7

Re: Youtube block by category

Andre,

FYI

On MWG Dahboard I see the Warning message: "Error during fetch from data source (Configuration: Youtube Categories (API)) (Origin: External Lists Filter)".

Dmitriy

0 Kudos

Re: Youtube block by category

I have also an example.

http://www.youtube.com/watch?v=0RmJr1l0Aks&list=ELDxB4vbZDPbI&index=2&feature=plpp_video

This should be blocked because i block the YouTube Category Games. But everyone can see this example video.

On the screenshot you can see the Categories of the posted video

youtube_categories.png

If you need more examplesfrom the same categories?

Follow this playlist on youtube http://www.youtube.com/playlist?list=ELDxB4vbZDPbI&feature=plcp

0 Kudos
eelsasser
Level 15

Re: Youtube block by category

If it does not block the category, it may be because of  2 things:

The category name is not the same as the display name on the page. you may have entered "Gaming" in the rule but the API uses the word "Games".

http://gdata.youtube.com/schemas/2007/categories.cat

Category in rulesDisplay name on page

Animals

Pets & Animals

Autos

Autos & Vehicles

Comedy

Comedy

Education

Education

Entertainment

Entertainment

Film

Film & Animation

Games

Gaming

Howto

Howto & Style

Movies

Movies

Movies_action_adventure

Action/Adventure

Movies_anime_animation

Anime/Animation

Movies_classics

Classics

Movies_comedy

Comedy

Movies_documentary

Documentary

Movies_drama

Drama

Movies_family

Family

Movies_foreign

Foreign

Movies_horror

Horror

Movies_sci_fi_fantasy

Sci-Fi/Fantasy

Movies_shorts

Shorts

Movies_thriller

Thriller

Music

Music

News

News & Politics

Nonprofit

Nonprofits & Activism

People

People & Blogs

Shortmov

Short Movies

Shows

Shows

Sports

Sports

Tech

Science & Technology

Trailers

Trailers

Travel

Travel & Events

Videoblog

Videoblogging

2) There appears to be a problem with the categorization from youtube's API.

I can't tell if it's because of the localization, but on mine the API claims it's in the "Shows" category;

http://gdata.youtube.com/feeds/api/videos/0RmJr1l0Aks?v=2

I also notice a bug in External List definition on mine.

By default, the XPath expression reads this:

//*[local-name() = 'category']/text()

But there are multiple category definitions sequentially and the last one is the one that takes for MWG.

Change the XPath to:

//*[local-name() = 'category' and @label]/text()

This should help MWG locate the right XML node.

But there still is a problem with the data that youTube is returning. It's under the category 'Shows'

However, why would you ever want to block anything about angry birds? It's awesome!

jsuboh
Level 7

Re: Youtube block by category

Hi,

I just got this working and it is working great. However, Youtube needs to add a category for sexual content because, can still search and find sexual content.

One more thing, the detected category does not work in my case (ISA Server Proxy Chaining > MWG). Is there something that I missed?

Thanks,

Jahad Suboh

Message was edited by: jsuboh on 7/24/12 5:47:09 PM CDT
0 Kudos