WordPress.org

Ready to get started?Download WordPress

Forums

YouList - YouTube playlist shortcode
[resolved] Search within a channel (6 posts)

  1. nightskytech
    Member
    Posted 1 year ago #

    Hello

    I need the ability to filter youtube videos within my channel. For instance:

    [youlist uid="my channel" search="red widgets"] (showing all videos for my red widgets)
    [youlist uid="my channel" search="blue widgets"] (showing all videos for my blue widgets)
    [youlist uid="my channel" search="green widgets"] (showing all videos for my green widgets)

    I can't get this to work though. If I use uid it shows all the videos in the channel and does not use the search. Is there a way to do this?

    Thanks.
    Joe

    http://wordpress.org/extend/plugins/youlist/

  2. birgire
    Member
    Plugin Author

    Posted 1 year ago #

    @nightskytech (Joe)

    (short version)

    For the red widget, try (and so on)

    [youlist search="+red -blue -green, @yourchannelname"]

    (long version)

    By the way YouTube constructs the iframe api you can only use the attributes uid, pid and search separately.

    But perhaps you can achieve this by using the search attribute:

    [youlist search="..."]

    I think the YouTube search is checking:

    title
    description
    category
    tags

    Here is one search query that you might find useful:

    [youlist search="cool, @mismag822"]

    It searches for videos where the name of the channel is mismag822
    and contains the word cool

    [youlist search="+cool -beginner, @mismag822"]

    This query searches for videos where the name of the channel is mismag822 and contains the word cool but excludes the word beginner

    To restrict the search to videos published last year:

    [youlist search="+cool -beginner, @mismag822, last year"]

    we can also use: today, this week, this month, this year,...

    To search only for high definition videos:

    [youlist search="+cool -beginner, @mismag822, last year, hd"]

    Here are some other search keywords I could found:

    hd, webm, last week, this week, cc, long, partner, creativecommons, live, playlist, music, movie

    So in your case you could use something like

    [youlist search="+red -blue -green, @yourchannelname"]

    to use in the red widget and so on.

    Hope this helps.

  3. nightskytech
    Member
    Posted 1 year ago #

    Hi,

    Thanks for the reply. That was completely awesome and it worked perfectly! You're a life saver :-D

    Thanks again,
    Joe

  4. nightskytech
    Member
    Posted 1 year ago #

    Actually, maybe I spoke too soon.

    It works, but not consistently. For instance:

    [youlist search="Acoustic, @guitarsnjazz"] returns 17 results (many of which are not mine).

    Entering "Acoustic, @guitarsnjazz" in the youtube.com search box only returns 4 (which is correct).

    Could there be a bug somewhere or am I doing something wrong?

    Thanks,
    Joe

  5. birgire
    Member
    Plugin Author

    Posted 1 year ago #

    @nightskytech

    Thanks for reporting back

    I hope you don't mind that I used the above search example, to demonstrate the difference, in the YouTube API Forum:

    https://groups.google.com/d/topic/youtube-api-gdata/iG0AUcPr0P8/discussion

    cheers

  6. birgire
    Member
    Plugin Author

    Posted 1 year ago #

    YouTube has replied with this:

    https://groups.google.com/forum/#!topic/youtube-api-gdata/iG0AUcPr0P8/discussion

    i.e.

    "it's not something that we support in the API at this time."

    I then mark this thread as resolved, if there are no protests ;-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.