Repositories: Personal YouTube

Maintained by BoboRoberto Pinna
Moodle repository plugin used to browse personal YouTube channels in order to publish public, unlisted and private videos.
133 sites
16 fans
Current versions available: 2

Personal YouTube repository

Moodle repository plugin used to browse personal YouTube channels in order to publish public, unlisted and private videos.

This plugin take the starting idea from Justin Hunt's MyTube plugin, now outdated by YouTube updates.

The code is a mash up of Moodle Google Drive and Moodle YouTube repositories for easy maintenance.


  • YouTube API enabled in your Google API console
  • OAuth ClientID and secret for your moodle site as for Google Drive and Picasa repository plugin; see Google OAuth 2.0 setup in Moodle Docs for all details


  • Download zip file
  • Copy it in moodle/repository directory
  • Unzip it and remove zip file
  • Log in as administrator to your moodle site
  • Follow online installation procedure
  • Set as Enabled and Visible the Personal YouTube repository in Administration Block -> Site Administration -> Plugins -> Repositories -> Manage repositories
  • Fill Oauth ClientID and secret in configuration page.


Screenshot #0


Roberto Pinna (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Plugins bot
    Tue, Jan 24, 2017, 10:20 PM
    Approval issue created: CONTRIB-6720
  • Picture of Stephane Boucher
    Fri, Jun 9, 2017, 9:15 AM

    I need some help to really understand the purpose of this plugin because, it doesn't seem to work. I use this plugin to display YouTube private videos on Moodle. I use Moodle 3.3, version 3.3 of Personal Youtube, configured Oauth2 on Moodle with a system account and YouTube API enabled on Google Console. Whenever a want to display a private videos, Personal Youtube displays a list of all my videos. I choose one and save. Google Console shows requests on YouTube. Then, I disconnect from Moodle and try as a student. The video always shows as private. I thought that Personal Youtube was using OAuth2 to connect to system account and display private videos on YouTube for all students. Since it doesn't seem to work, I begin to wonder that I may have understood incorrectly the purpose of Personal Youtube. Am I wrong or is it incorrectly configured ? A bug maybe ? I would really appreciate some help.

    Thanks in advance,

  • Bobo
    Fri, Jun 9, 2017, 4:04 PM
    Personal Youtube is a repository plugin so it let you browse personal YouTube channel and publish link in moodle.
    Videos displaying in moodle pages is done from Multimedia filter plugin that replace links with the youtube player.
    The videos are just linked so access to them still managed from YouTube site, I don't think we can use OAuth2 system account to display video because seems that YouTube does not support it.
    For private videos you need to authorize every single user to view each video or, if your organization use GSuite, you can authorize all your organization users with a single click; otherwise you can set videos as unlisted.
    I still check if there is way to use system account for displaying videos.

  • Picture of Stephane Boucher
    Sat, Jun 10, 2017, 8:18 AM
    Thank you very much for these explanations Roberto. It is very appreciated.
  • Bobo
    Mon, Sep 11, 2017, 4:34 PM
    Sorry Tony but I was offline, on vacancy, and I miss the message.
    ClientID and Secret is used to define the moodle plugin as a Google Web Application but, as for any apps, when you need to access to private data, user authentication is need.
    This works as for any other Moodle plugin that take data from Google Services.

  • Picture of Cristina Paulon
    Fri, Aug 31, 2018, 11:36 PM

    I've just installed the plugin on a 3.5.1+ and everything worked just fine. However, it looks like the plugin is not GDPR compliant, as an alert is showing on the Plugin privacy compliance registry stating that the plugin "does not implement the Moodle privacy API". So I was wondering if you're going to fix it anytime soon as it does use personal data.

    Thank you
  • Bobo
    Wed, Sep 5, 2018, 5:12 PM
    Hello Cristina,
    I fixed it.

Please login to post comments