Forráskód Böngészése

change backup url

luojunhui 4 hónapja
szülő
commit
14321df25a
1 módosított fájl, 3 hozzáadás és 2 törlés
  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"])