Issues using the Plex YouTube Video Service - There was a problem playing this item

Hi,

I’m working on adding trailer support for a metadata agent. I saw that Plex has their own Video URL Service for YouTube, and indeed if I add a trailer with a YouTube URL then the Video Service is invoked;

DEBUG (services/all_services_for_url:616) - Found a service matching 'https://www.youtube.com/watch?v=ByXuk9QqQkk' - YouTube (com.plexapp.plugins.youtube)

However, when I view the video, Plex Web fails with the error “There was a problem playing this item.” and Plex Media Player fails with “unrecognised file format”. Again looking at the agent’s log, the Video Service is invoked and a ‘true’ URL for the video is returned.

DEBUG (networking/load:166) - Requesting 'https://www.youtube.com/watch?v=ByXuk9QqQkk'
INFO (logkit/Info:16) - Available formats: [22, 43, 18, 36, 17]
INFO (logkit/Info:16) -  -> PICKED mp4 h264/aac 720
INFO (logkit/Info:16) - VIDEO URL (fmt=22): https://r5---sn-aiglln6l.googlevideo.com/videoplayback?requiressl=yes&expire=1483678096&upn=CmTP1jjqvmM&lmt=1472442665976800&pl=36&mime=video%2Fmp4&source=youtube&nh=IgpwcjAzLmxocjI1KhEyMDAxOjQ4NjA6MToxOjplOQ&key=yt6&sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cnh%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&itag=22&ei=MM1uWMKYF4WIWOG2ufAE&signature=8054F9ED4061FC9CE4B94186E7C05975EF1ABB0E.97C626C1064D4603C6C2AF667A437EA8A1010348&ratebypass=yes&ip=2a02%3A8010%3A9001%3A1%3A953c%3A9c42%3A2f16%3A25d1&mv=m&dur=146.494&mt=1483656403&ms=au&mn=sn-aiglln6l&ipbits=0&mm=31&id=o-AJdOAIIrw3x3GhalITL5N5CLarNly4gJ2Eovd2imMQOq&initcwndbps=875000

If I try and visit the URL directly in my browser, I get a 403 Forbidden error, however searching around this is to be expected - apparently the true URL is only valid for the requesting client?

I’ve had a look around in the Plex Media Server log file as well, but nothing really stood out. Is there anything special I need to do to use the YouTube Video Service to play back YouTube videos in Plex?

Edit: Issue logged.