force id to be a string
This commit is contained in:
parent
79231ee155
commit
c03d5edf44
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ __all__ = ['BaseVideo', 'ICapVideo']
|
|||
class BaseVideo(object):
|
||||
def __init__(self, _id, title=None, url=None, author=None, duration=0, date=None,
|
||||
rating=0.0, rating_max=0.0, thumbnail_url=None, nsfw=False):
|
||||
self.id = _id
|
||||
self.id = unicode(_id)
|
||||
self.title = title
|
||||
self.url = url
|
||||
self.author = author
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue