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