|
|
@ -1,3 +1,4 @@ |
|
|
|
#!/usr/bin/python |
|
|
|
# coding: utf-8 |
|
|
|
|
|
|
|
from ConfigParser import RawConfigParser, NoOptionError, NoSectionError |
|
|
@ -8,14 +9,10 @@ from subprocess import check_call, CalledProcessError, STDOUT |
|
|
|
import unidecode |
|
|
|
import logging |
|
|
|
from six.moves import configparser |
|
|
|
import six |
|
|
|
|
|
|
|
if six.PY2: |
|
|
|
ConfigParser = configparser.SafeConfigParser |
|
|
|
else: |
|
|
|
ConfigParser = configparser.ConfigParser |
|
|
|
ConfigParser = configparser.RawConfigParser |
|
|
|
|
|
|
|
### CATEGORIES ### |
|
|
|
# CATEGORIES # |
|
|
|
YOUTUBE_CATEGORY = { |
|
|
|
"music": 10, |
|
|
|
"films": 1, |
|
|
|