CC-3791: Media Monitor crash when there are media files with non-ascii name in watched folder

-add UTF-8 header everywhere...
This commit is contained in:
Martin Konecny 2012-05-14 16:09:49 -04:00
parent ea5c5c8586
commit 08c20cff10
13 changed files with 27 additions and 1 deletions

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
import os
import time
import pyinotify

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
import os
import hashlib
import mutagen

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
import json
import time
import os

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
import socket
import logging
import time
@ -217,7 +219,7 @@ class AirtimeProcessEvent(ProcessEvent):
#directory.
def process_IN_MOVED_FROM(self, event):
#we only care about files that have been moved away from imported/ or organize/ dir
#we don't care about files that have been moved from problem_directory
if event.path in self.config.problem_directory:
return

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
import sys
from configobj import ConfigObj

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
import os
import grp
import pwd

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
from mediaconfig import AirtimeMediaConfig
import traceback
import os

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
import time
import logging
import logging.config

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
import os
import sys
import time

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
from threading import Thread
from Queue import Empty
from configobj import ConfigObj

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
import logging
import logging.config
import sys

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
from datetime import datetime
from datetime import timedelta

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
import logging
import logging.config
import json