This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
switch (provider) { | |
case 'our-provider': { | |
// 'our-provider' code here | |
break; | |
} | |
... | |
} | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
const grantConfig = { | |
..., | |
'our-provider': { | |
// 'our-provider' configuration here | |
... | |
}, | |
... | |
} | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const jwt = require('@strapi/plugin-users-permissions/server/services/jwt'); | |
const providers = require('./providers'); | |
const user = require('@strapi/plugin-users-permissions/server/services/user'); | |
const role = require('@strapi/plugin-users-permissions/server/services/role'); | |
const usersPermissions = require('@strapi/plugin-users-permissions/server/services/users-permissions'); | |
module.exports = { | |
jwt, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Abhinay Omkar | |
# Youtube Downloader | |
# Modifier: Alex Gao | |
# Youtube now uses cookies to verify download | |
import sys | |
from urllib2 import urlopen, unquote | |
from urlparse import parse_qs, urlparse | |
import requests |
OlderNewer