make channel matching optional for reusability
This commit is contained in:
parent
cbb714c235
commit
231ac1e012
|
@ -269,9 +269,12 @@ class PendingList(PendingIndex):
|
||||||
"vid_thumb_url": vid["thumbnail"],
|
"vid_thumb_url": vid["thumbnail"],
|
||||||
"title": vid["title"],
|
"title": vid["title"],
|
||||||
"channel_id": vid["channel_id"],
|
"channel_id": vid["channel_id"],
|
||||||
"channel_indexed": vid["channel_id"] in self.all_channels,
|
|
||||||
"duration": duration_str,
|
"duration": duration_str,
|
||||||
"published": published,
|
"published": published,
|
||||||
"timestamp": int(datetime.now().strftime("%s")),
|
"timestamp": int(datetime.now().strftime("%s")),
|
||||||
}
|
}
|
||||||
|
if self.all_channels:
|
||||||
|
youtube_details.update(
|
||||||
|
{"channel_indexed": vid["channel_id"] in self.all_channels}
|
||||||
|
)
|
||||||
return youtube_details
|
return youtube_details
|
||||||
|
|
Loading…
Reference in New Issue