projects
/
living-lab-site.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
paper: Design Overview section completed; fragments from Implementation section completed
[living-lab-site.git]
/
cis
/
api
/
base.py
diff --git
a/cis/api/base.py
b/cis/api/base.py
index
36d490b
..
0b30bc9
100644
(file)
--- a/
cis/api/base.py
+++ b/
cis/api/base.py
@@
-85,10
+85,10
@@
class BaseTranscoder:
if a_codec is None and v_codec is None:
raise ValueError('No audio or video codec specified.')
if a_codec is None and v_codec is None:
raise ValueError('No audio or video codec specified.')
- if a_codec is not None and type(a_codec)
is not str
:
+ if a_codec is not None and type(a_codec)
not in [str, unicode]
:
raise TypeError('Audio codec must be string.')
raise TypeError('Audio codec must be string.')
- if v_codec is not None and type(v_codec)
is not str
:
+ if v_codec is not None and type(v_codec)
not in [str, unicode]
:
raise TypeError('Video codec must be string.')
if a_samplingrate is not None and type(a_samplingrate) is not int:
raise TypeError('Video codec must be string.')
if a_samplingrate is not None and type(a_samplingrate) is not int: