Fix is_live add to queue parsing, #build
This commit is contained in:
commit
c1d1355536
|
|
@ -15,6 +15,7 @@ body:
|
|||
options:
|
||||
- label: I'm running the latest version of Tube Archivist and have read the [release notes](https://github.com/tubearchivist/tubearchivist/releases/latest).
|
||||
required: true
|
||||
- label: I'm [beta testing](https://github.com/tubearchivist/tubearchivist/blob/master/CONTRIBUTING.md#beta-testing) and am running the latest unstable build.
|
||||
- label: I have read the [how to open an issue](https://github.com/tubearchivist/tubearchivist/blob/master/CONTRIBUTING.md#how-to-open-an-issue) guide, particularly the [bug report](https://github.com/tubearchivist/tubearchivist/blob/master/CONTRIBUTING.md#bug-report) section.
|
||||
required: true
|
||||
|
||||
|
|
|
|||
|
|
@ -297,7 +297,7 @@ class PendingList(PendingIndex):
|
|||
total=total,
|
||||
)
|
||||
|
||||
def _parse_video(self, url, vid_type):
|
||||
def _parse_video(self, url: str, vid_type) -> dict | None:
|
||||
"""parse video when not flat, fetch from YT"""
|
||||
video = YoutubeVideo(youtube_id=url)
|
||||
video.get_from_youtube()
|
||||
|
|
@ -319,6 +319,9 @@ class PendingList(PendingIndex):
|
|||
youtube_id=url,
|
||||
video_data=video.youtube_meta,
|
||||
)
|
||||
if not to_add:
|
||||
return None
|
||||
|
||||
ThumbManager(item_id=url).download_video_thumb(to_add["vid_thumb_url"])
|
||||
rand_sleep(self.config)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue