mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-12-22 18:00:17 +00:00
standardize parse_url_list to only return ids
This commit is contained in:
parent
3375cbc767
commit
caff9ce189
@ -55,12 +55,14 @@ class PendingList:
|
||||
if url_type == "video":
|
||||
missing_videos.append(url)
|
||||
elif url_type == "channel":
|
||||
youtube_ids = ChannelSubscription().get_last_youtube_videos(
|
||||
video_results = ChannelSubscription().get_last_youtube_videos(
|
||||
url, limit=False
|
||||
)
|
||||
youtube_ids = [i[0] for i in video_results]
|
||||
missing_videos = missing_videos + youtube_ids
|
||||
elif url_type == "playlist":
|
||||
youtube_ids = playlist_extractor(url)
|
||||
video_results = playlist_extractor(url)
|
||||
youtube_ids = [i[0] for i in video_results]
|
||||
missing_videos = missing_videos + youtube_ids
|
||||
|
||||
return missing_videos
|
||||
|
Loading…
Reference in New Issue
Block a user