fix playlist sub parser

This commit is contained in:
simon 2023-04-27 22:06:41 +07:00
parent 77900f89e3
commit 06bbe2e400
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -175,10 +175,7 @@ class PlaylistSubscription:
def process_url_str(self, new_playlists, subscribed=True):
"""process playlist subscribe form url_str"""
data = {
"query": {"match_all": {}},
"sort": [{"published": {"order": "desc"}}],
}
data = {"query": {"match_all": {}}, "_source": ["youtube_id"]}
all_indexed = IndexPaginate("ta_video", data).get_results()
all_youtube_ids = [i["youtube_id"] for i in all_indexed]