소스 검색

change backup url

luojunhui 4 달 전
부모
커밋
14321df25a
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      tasks/crawler_channel_account_videos.py

+ 3 - 2
tasks/crawler_channel_account_videos.py

@@ -65,8 +65,9 @@ class CrawlerChannelAccountVideos:
             return
 
         video_item = Item()
-        video_item.add("content_trace_id", "video{}".format(str_to_md5(video["id"])))
-        video_item.add("url_unique_md5", video["id"])
+        video_id = video["id"]
+        video_item.add("content_trace_id", "video{}".format(str_to_md5(str(video_id))))
+        video_item.add("url_unique_md5", video_id)
         video_item.add("article_title", title)
         video_item.add("out_account_id", video["username"])
         video_item.add("out_account_name", video["nickname"])