fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix video
[librarian.git]
/
librarian
/
__init__.py
diff --git
a/librarian/__init__.py
b/librarian/__init__.py
index
c9db26f
..
ec1d688
100644
(file)
--- a/
librarian/__init__.py
+++ b/
librarian/__init__.py
@@
-20,6
+20,10
@@
VIDEO_PROVIDERS = {
}
}
+def get_provider(provider_id):
+ return VIDEO_PROVIDERS.get(provider_id, VIDEO_PROVIDERS['youtube'])
+
+
class UnicodeException(Exception):
def __str__(self):
""" Dirty workaround for Python Unicode handling problems. """
class UnicodeException(Exception):
def __str__(self):
""" Dirty workaround for Python Unicode handling problems. """