|
@@ -155,7 +155,7 @@ class VideoProducer(object):
|
|
|
item.add_video_info("user_id", user["uid"])
|
|
|
item.add_video_info("user_name", user["nick_name"])
|
|
|
item.add_video_info("video_id", video_obj['id'])
|
|
|
- item.add_video_info("video_title", trace_id)
|
|
|
+ item.add_video_info("video_title", video_obj.get('title', trace_id))
|
|
|
item.add_video_info("publish_time_stamp", publish_time_stamp)
|
|
|
item.add_video_info("video_url", video_obj["playurl"])
|
|
|
item.add_video_info("cover_url", video_obj["poster"])
|
|
@@ -185,7 +185,7 @@ class VideoProducer(object):
|
|
|
item.add_video_info("user_id", user["uid"])
|
|
|
item.add_video_info("user_name", user["nick_name"])
|
|
|
item.add_video_info("video_id", video_obj['video_id'])
|
|
|
- item.add_video_info("video_title", trace_id)
|
|
|
+ item.add_video_info("video_title", video_obj.get('video_title', trace_id))
|
|
|
item.add_video_info("publish_time_stamp", int(publish_time_stamp))
|
|
|
item.add_video_info("video_url", video_obj["video_url"])
|
|
|
item.add_video_info("cover_url", video_obj["cover_url"])
|
|
@@ -214,7 +214,7 @@ class VideoProducer(object):
|
|
|
item.add_video_info("user_id", user["uid"])
|
|
|
item.add_video_info("user_name", user["nick_name"])
|
|
|
item.add_video_info("video_id", video_obj['channel_content_id'])
|
|
|
- item.add_video_info("video_title", trace_id)
|
|
|
+ item.add_video_info("video_title", video_obj.get('title', trace_id))
|
|
|
item.add_video_info("publish_time_stamp", int(publish_time_stamp))
|
|
|
item.add_video_info("video_url", video_obj["video_url_list"][0]['video_url'])
|
|
|
item.add_video_info("cover_url", video_obj["image_url_list"][0]['image_url'])
|