add possibility to choose license cca for Youtube

This commit is contained in:
LecygneNoir 2018-03-09 16:15:53 +01:00
parent ac91e9b918
commit c8efa820ff
5 changed files with 17 additions and 4 deletions

View file

@ -2,6 +2,7 @@
# coding: utf-8
### FOR CATEGORIE ###
YOUTUBE_CATEGORY = {
"music":10,
"films":1,
@ -42,6 +43,8 @@ PEERTUBE_CATEGORY = {
"animals":16
}
######################
def getCategory(category, type):
if type == "youtube":
return YOUTUBE_CATEGORY[category.lower()]